Skip to content

Commit

Permalink
feat: update make_diff_changelog.py
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
nelsonwmoore committed Oct 11, 2023
1 parent 70a1376 commit 055aad5
Show file tree
Hide file tree
Showing 6 changed files with 449 additions and 279 deletions.
2 changes: 1 addition & 1 deletion python/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,4 @@ About

# other
.idea/

.vscode/*
Loading

0 comments on commit 055aad5

Please sign in to comment.