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

fix: refresh values list if empty on param value creation #136

Merged
merged 2 commits into from
Jun 15, 2022

Conversation

h1dden-da3m0n
Copy link
Contributor

Description

This PR aims to rectify a logic issue in this plugins code that was not taken into account when initially creating it.
Basically, other plugins such as the Parameterized Scheduler only call the createValue method and would run into issues unless the parameter where to be initialized first from a previous call. This is due to the values list currently only initializing and filling when getValues gets called (i.e. when attempting to trigger a new job with the parameter).

Is this an ideal solution? No, however, in lack of a better workaround this basically ensures that the valid values list is not empty when createValue gets called.

Changes

  • ensures there are values when attempting to create a ParameterValue and checking its validity

Issues

@h1dden-da3m0n h1dden-da3m0n added the bugfix This PR fixes a bug label Jun 14, 2022
@h1dden-da3m0n h1dden-da3m0n requested a review from a team as a code owner June 14, 2022 13:12
prevents odd caching behaviour in certain situations
@h1dden-da3m0n h1dden-da3m0n merged commit 9979512 into main Jun 15, 2022
@h1dden-da3m0n h1dden-da3m0n deleted the fix/135-validation-error branch June 15, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Odd invalid value behaviour when used in combination with the Parametrized Scheduler plugin
1 participant