-
Notifications
You must be signed in to change notification settings - Fork 11
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
[ch29016] Added custom json Validator based on jsonschema lib #1744
Conversation
This pull request has been linked to Shortcut Story #29016: Indicator Data Validator. |
d536eaf
to
247a6a2
Compare
@domdinicola i didn't mark it as ready, please take a look and give an earlier input from your side on the approach. Thanks! |
@emaciupe looks good to me! what else is missing here? |
|
||
class AddIndicatorObjectTypeValidator: | ||
|
||
def __call__(self, value): | ||
from etools_prp.apps.cluster.models import ClusterActivity, ClusterObjective |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why have these been moved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@domdinicola Because circular import happened
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird.... code changes should not have impacted that...
@domdinicola test changes were committed, so i'd say nothing left out from this PR now. There's another separate card to clean up the indicator data. |
yep... we should write a script to clean the values and/or flag the results that need to be fixed manually |
@emaciupe we should do this also in eTools, but let's check it with @robertavram first |
[ch29016]