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

Feature/issue 85 - Add units to db records #113

Merged
merged 8 commits into from
Mar 18, 2024
Merged

Conversation

torimcd
Copy link
Collaborator

@torimcd torimcd commented Mar 8, 2024

Github Issue: #85 Add variable units to API response

Description

Units for data measurements are not included in the standard shapefile fields. They are located in the shp.xml metadata file. We decided it was important to include the units as additional fields in each feature record.

Overview of work done

Modified parse_metadata_from_shpxml function introduced in #111 to also read the units from teh shp.xml file and add them as additional attributes on each feature as they are loaded into the database.

Overview of verification done

Updated unit tests to check for presence of units on and that they are the correct units for that field. Unit tests pass.

Overview of integration done

Deployed to SIT and loaded new granules into dynamodb. Verified that the units are now included in each database record.

PR checklist:

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

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

Copy link
Collaborator

@nikki-t nikki-t left a comment

Choose a reason for hiding this comment

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

Units modifications look good. Does it make sense for me work on adding units into the API response under this PR or merge this PR and work on adding units to the API response under a different issue? Scratch that - I see there is already an issue open for this: #85. I will work on this issue after this PR is merged.

Base automatically changed from feature/issue-13 to develop March 18, 2024 17:20
@frankinspace frankinspace merged commit 274b220 into develop Mar 18, 2024
1 check failed
@frankinspace frankinspace deleted the feature/issue-85 branch March 18, 2024 17:37
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