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

Harmony 1999 #696

Merged
merged 4 commits into from
Feb 11, 2025
Merged

Harmony 1999 #696

merged 4 commits into from
Feb 11, 2025

Conversation

indiejames
Copy link
Contributor

Jira Issue ID

HARMONY-1999

Description

Adds warnings section to job status page.

Local Test Steps

  1. Add the following lines before lines 17 and 73 in harmony_service_example/transform.py
from harmony_service_lib.exceptions import NoDataException
raise NoDataException("Ain't got no data")
  1. Rebuild the harmony_service_example image
make build-image
  1. Use kubectl or k9s to delete the harmony_service_example pod in your local deployment. The pod should restart with your new image
  2. Run a harmony service example query
http://localhost:3000/C1233800302-EEDTEST/ogc-api-coverages/1.0.0/collections/red_var,blue_var,green_var/coverage/rangeset/?subset=lat(20%3A60)&subset=lon(-140%3A-50)&outputCrs=EPSG%3A31975&format=image%2Fpng&maxResults=1
  1. Open the workflow-ui and check to see the job status is failed (this will be changed in HARMONY-1995). Click on the job status link and verify that there is a warnings field with the warning from the work-item. The url is the url of the original granule and the message is the warning.

PR Acceptance Checklist

  • Acceptance criteria met
  • Tests added/updated (if needed) and passing
  • Documentation updated (if needed)
  • Harmony in a Box tested? (if changes made to microservices or new dependencies added)

Copy link
Contributor

@chris-durbin chris-durbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested successfully.


const timeStampRegex = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z/;

// const reprojectAndZarrQuery = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this should be deleted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Member

@ygliuvt ygliuvt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested successfully.

@indiejames indiejames merged commit 106f59a into main Feb 11, 2025
5 checks passed
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.

3 participants