Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to specify disallowed qualities in quality profiles is required #68

Open
francoiseger opened this issue Sep 5, 2023 · 4 comments · May be fixed by #69
Open

Ability to specify disallowed qualities in quality profiles is required #68

francoiseger opened this issue Sep 5, 2023 · 4 comments · May be fixed by #69

Comments

@francoiseger
Copy link

Sonarr/Sonarr#6005 means that it is necessary that all qualities are always specified in quality profiles, even if they are potentially disallowed. Missing qualities is not equivalent to them being disallowed.

More generally it would be nice if one did not have to specify the default values for all custom formats and quality profiles manually every time they are used but that the module would take care of that.

@Fuochi
Copy link
Collaborator

Fuochi commented Sep 5, 2023

This is really interesting. I genuinely thought that a missing quality would've been treated in the same way as a not allowed quality. But I hadn't look at the code, my bad.
This will require quite some changes, both here and in the TF providers. I could probably fetch the whole list from the /qualityprofile/schema endpoint, but it'll still become a bit challenging when the user is changing any quality group. Another option could be to fetch the list from /qualitydefinition, and then add all the missing ones both disallowed, and without group.
I'll put this in my backlog, but honestly, I don't know when I'll be able to address it. Probably not in September, sorry.

@francoiseger francoiseger linked a pull request Sep 6, 2023 that will close this issue
Fuochi added a commit that referenced this issue Oct 11, 2023
fix(#68): add all qualities and custom formats to profiles
@Fuochi
Copy link
Collaborator

Fuochi commented Oct 12, 2023

Hi @francoiseger,
this should be fixed in v1.1.1. Now all quality profiles are added, custom formats as well.
I'll still be open for improvement if you want to continue with #69, feel free to rebase. If you continue I'll check again the PR once the tests are green

@francoiseger
Copy link
Author

Hey, sorry about the radio silence, I was a little preoccupied. I'll continue to look into #69, but FYI 1.1.1 doesn't seem to have been published the galaxy properly yet? Might be that one of the workflows isn't doing what it should be.

@Fuochi
Copy link
Collaborator

Fuochi commented Nov 7, 2023

No problem, thanks for giving me the heads up on the published version. It seems I'm not the only one who encountered this problem ansible/galaxy#1980 It's probably related to Galaxy migration, I'll check as soon as I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants