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

Add validation for Settings sot_agg_query #445

Merged
merged 8 commits into from
Mar 15, 2023

Conversation

jmcgill298
Copy link
Contributor

This adds validation to the GoldenConfigSetting clean method for requiring sot_agg_query to have a value when the Plugin Config has SOTAGG_ENABLED set to True. This is to address the issue where the Golden Config home page has an SOTAGG icon with an invalid link.

This adds validation to the GoldenConfigSetting clean method for
requiring sot_agg_query to have a value when the Plugin Config has
SOTAGG_ENABLED set to True. This is to address the issue where the
Golden Config home page has an SOTAGG icon with an invalid link.
@jmcgill298
Copy link
Contributor Author

@itdependsnetworks @jeffkala is this a valid solution for #393 ? If so, I will work on adding a couple of test cases.

@jmcgill298 jmcgill298 linked an issue Mar 8, 2023 that may be closed by this pull request
@itdependsnetworks
Copy link
Contributor

I think so, @jeffkala any issues?

@jeffkala
Copy link
Contributor

jeffkala commented Mar 8, 2023

good on my end

@itdependsnetworks
Copy link
Contributor

Can you confirm that it works as expected in the ui

@jmcgill298
Copy link
Contributor Author

jmcgill298 commented Mar 10, 2023

@itdependsnetworks this now has best effort to prevent the case from #393 and then shows null when the config settings toggle SOTAGG_ENABLED between True and False

@jmcgill298
Copy link
Contributor Author

image

image

@jmcgill298
Copy link
Contributor Author

@itdependsnetworks I have updated the "error" message and added tests for the updates.

@jmcgill298 jmcgill298 merged commit 4016522 into develop Mar 15, 2023
@jmcgill298 jmcgill298 deleted the bugfix-393/icon-graphql branch March 15, 2023 14:05
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 this pull request may close these issues.

Config Intended SoT Agg icon when no saved graphql query
3 participants