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/no ref/update diff changelog script #54

Merged
merged 3 commits into from
Nov 21, 2023

Conversation

nelsonwmoore
Copy link
Collaborator

Summary

  • bump version from 0.2.4 to 0.2.5
  • update make_diff_changelog.py to handle upated output from bento-mdf diff_models function, which has bento-meta objects in output directly rather than creating new ones in script and properly handling 'term container' object attribute changes such as value sets and concepts that need to reference their 'parent' entity to be matched properly in a cypher statement
  • add 'run always' to make_mapping_changelog changesets so that they can be re-run when included models updated
  • move escape_quotes_in_attr function from make_model_changelog.py to changelog utils
  • for old mdf in make_diff_changelog, don't include _commit because it would cause issues with matching those entities
  • reset entity counter for property graph nodes and relationships for each cypher statement to make them easier to test
  • handle generating match clauses for entities that rely on other entities for their uniqueness (props, edges, tags)
  • update dependency versions identified as security risks by dependabot

nelsonwmoore and others added 3 commits October 11, 2023 12:25
- changes to make_diff_changelog to handle altered output from latest bento-mdf diff_models including processing bento-meta objects in output directly rather than creating new ones in script and properly handling 'term container' object attribute changes such as value sets and concepts that need to reference their 'parent' entity to be matched properly in a cypher statement
- refactor make_diff_changelog diff splitting functions into an object that tracks the diff, statements, etc. internally and separate logic for different changes in diff output
- add docstrings for DiffSplitter methods
- DiffSplitter class now generates cypher statements directly rather than including intermediate step to 'segment' the changes
- prefix _ to parent_handle of Property object to indicate it's meant for internal use
- add 'run always' to make_mapping_changelog changesets so that they can be re-run when included models updated
- move escape_quotes_in_attr function from make_model_changelog.py to changelog utils
- for old mdf in make_diff_changelog, don't include _commit because it would cause issues with matching those entities
- add .vscode/* to gitignore
- reset entity counter for property graph nodes and relationships for each cypher statement to make them easier to test
- add _parent object attr to Tags
- handle generating match clauses for entities that rely on other entities for their uniqueness (props, edges, tags)
- add tests for diff changelog to test_014diff_changelog.py
- update versioning tests to turn entity versioning off at the end of test so it doesn't affect subsequent tests involving entities
- bump version from 0.2.4 to 0.2.5
- update dependency versions identified as security risks by dependabot
- update bento-mdf dependency
- remove extraneous print statements from diff changelog test
@nelsonwmoore nelsonwmoore added enhancement New feature or request dependencies Pull requests that update a dependency file refactoring Changes in the way the code works internally without changing the output produced labels Nov 21, 2023
@nelsonwmoore nelsonwmoore merged commit 4971cd3 into master Nov 21, 2023
10 checks passed
@nelsonwmoore nelsonwmoore deleted the feature/no-ref/update-diff-changelog-script branch November 21, 2023 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request refactoring Changes in the way the code works internally without changing the output produced
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant