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

Get concept ID from the cmrLink attribute in CMA input #66

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

frankinspace
Copy link
Member

Github Issue: #65

Description

Fixed bug when input CMA message does not contain cmrConceptId by parsing the concept ID from the cmrLink instead.

Overview of work done

Parse the url in cmrLink to extract the last element of the path and use that for cmr concept id if cmrConceptId does not exist in the input.

Overview of verification done

Tested the one line of code in python console:

>>> urllib.parse.urlparse("https://cmr.uat.earthdata.nasa.gov/search/concepts/G1273138331-LPCLOUDSB.umm_json").path.rstrip('/').split('/')[-1].split('.')[0]

'G1273138331-LPCLOUDSB'

Overview of integration done

N/A

PR checklist:

  • Linted
  • Updated unit tests
  • Updated changelog
  • Integration testing

See Pull Request Review Checklist for pointers on reviewing this pull request

…arsing the concept ID from the `cmrLink` instead.
…arsing the concept ID from the `cmrLink` instead.
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.

1 participant