Processing level - revised #327
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


Description of the PR - This is a pull request for code changes for
ProcessingLevel/ProcessingLevelDescription.ProcessingLevel/LevelDescription - We will provide a detailed description if the characters are less than 50 characters. The suggested recommendation is,
Processing Level Description:
If the processing level description field is missing, the following message should appear (BLUE/Info):
"Recommend providing a processing level description, using the EOSDIS processing level descriptions as guidance:
https://www.earthdata.nasa.gov/engage/open-data-services-and-software/data-information-policy/data-levels"
If a processing level description is provided but it has fewer than 50 characters, then the following message should appear (BLUE/Info):
"The description provided is under 50 characters. Recommend providing a more detailed processing level description, using the EOSDIS processing level descriptions as guidance:
https://www.earthdata.nasa.gov/engage/open-data-services-and-software/data-information-policy/data-levels"
Code changes: The code changes are included in the
check_messages_override.jsonandrules_override.json. Further, we updated the outdated files in thetest_downloader.pyandschema_validator.py. There was an outdated imports DraftValidator, and this has to be updated before every commit. The final code is test by running pytest, and the run was successful before committing the code changes.To Reproduce:
C1000000003-CDDIS --format umm-c - Processing level description.
C1000000018-CDDIS --format umm-c - Processing level description.
C2043197582-CDDIS --format umm-c - Processing level ID and description. (Processing level ID is addressed in #320)
C1602481912-CDDIS --format umm-c - Processing level description < 50 characters.
Expected output:
