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/pdct 1419 map family metadata to metadata key in family json structure #13

Conversation

odrakes-cpr
Copy link
Contributor

What's changed?

Add functionality to the GCF data mapper tool; mapping family metadata from the source file to json output suitable for the bulk import tool

Proposed version

Please select the option below that is most relevant from the list below. This
will be used to generate the next tag version name during auto-tagging.

  • Skip auto-tagging
  • Patch
  • Minor version
  • Major version

Visit the Semver website to understand the
difference between MAJOR, MINOR, and PATCH versions.

Notes:

  • If none of these options are selected, auto-tagging will fail
  • Where multiple options are selected, the most senior option ticked will be
    used -- e.g. Major > Minor > Patch
  • If you are selecting the version in the list above using the textbox, make
    sure your selected option is marked [x] with no spaces in between the
    brackets and the x

Osneil Drakes and others added 11 commits September 3, 2024 18:40
checks if row has any required columns with empty values, checks if required columns from a row are missing
will revisit to try and fix pyright typing errors
 - add function to check for value and key existence in nested objects
 - add private methods
 - doc string tidy ups
 - tidy up function that gets budget information
it can be used more widely across the codebase
@odrakes-cpr odrakes-cpr requested a review from a team as a code owner September 5, 2024 10:59
Copy link

linear bot commented Sep 5, 2024

Osneil Drakes and others added 8 commits September 5, 2024 12:48
instead of raising and stopping the tool from running we can just stdout the error
- remove the function that checks for values in nested objects
- we don't want the tool to stop running for malformed data, only when a
  key is missing.
- so we have updated the helper function to check for false/empty values
  in a list and just echo it out and then take it to the client
- We have gone back to pythons normal way of accessing keys in a dict,
  where a key error will be raised if we try access something that is
  not there
Copy link
Collaborator

@katybaulch katybaulch left a comment

Choose a reason for hiding this comment

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

Great work! Just some small changes

Copy link
Collaborator

@katybaulch katybaulch left a comment

Choose a reason for hiding this comment

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

nice work!!

@odrakes-cpr odrakes-cpr merged commit 4665dd9 into main Sep 9, 2024
2 checks passed
@odrakes-cpr odrakes-cpr deleted the feature/pdct-1419-map-family-metadata-to-metadata-key-in-family-json-structure branch September 9, 2024 14:02
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.

2 participants