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

[ch29016] Added custom json Validator based on jsonschema lib #1744

Merged
merged 3 commits into from
Jul 18, 2022

Conversation

emaciupe
Copy link
Contributor

[ch29016]

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #29016: Indicator Data Validator.

@emaciupe emaciupe force-pushed the 29016-indicator-data-validator branch from d536eaf to 247a6a2 Compare April 18, 2022 17:58
@emaciupe emaciupe requested a review from domdinicola April 19, 2022 07:47
@emaciupe
Copy link
Contributor Author

@domdinicola i didn't mark it as ready, please take a look and give an earlier input from your side on the approach. Thanks!

@domdinicola
Copy link
Contributor

@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
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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...

@emaciupe
Copy link
Contributor Author

@emaciupe looks good to me! what else is missing here?

@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.

@domdinicola
Copy link
Contributor

yep... we should write a script to clean the values and/or flag the results that need to be fixed manually

@domdinicola
Copy link
Contributor

@emaciupe we should do this also in eTools, but let's check it with @robertavram first

@emaciupe emaciupe changed the title [ch29016] Added custom JSONField with jsonschema validation: JSONSchemaField [ch29016] Added custom json Validator based on jsonschema lib Apr 20, 2022
@emaciupe emaciupe added the Ready label Apr 29, 2022
@robertavram robertavram merged commit 29efbf3 into develop Jul 18, 2022
@robertavram robertavram deleted the 29016-indicator-data-validator branch July 18, 2022 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants