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

Bugfix/bento mdb#6/fix prop duplication #53

Merged
merged 4 commits into from
Aug 31, 2023

Conversation

nelsonwmoore
Copy link
Collaborator

Description

  • Update package version from 0.2.3 to 0.2.4
  • Edit make_model_changelog.py so that it generates nanoids for Edge & Property entities to prevent duplicate relationships between them and connected entities
  • Move functions shared by multiple changelog scripts to util/changelog.py from the individual scripts
  • Reset changeset id for changelog tests

Fixes bento-mdb#6

Add nanoid to Property entities in make_model_changlog.py script to prevent the below in generated changelogs:
- properties being "reused" by multiple parent nodes/edges
- duplicate relationships between the prop and connected value sets & parent entities

Also add "parent_handle" attribute to Property entity in bento_meta objects for the same reasons - should allow Property entities to contain all the info required to ensure they are added properly to MDB w/o requiring additional entities

See property uniqueness/distinctness conventions in https://cbiit.github.io/bento-meta/mdb-conventions.html
- Move functions shared by multiple changelog scripts to util/changelog.py from the individual scripts
- Reset changeset id for changelog tests
Add nanoid to Edge entities in make_model_changlog.py script to prevent duplicate relationships from edges with identical handles to src/dst Nodes
Bump version in pyproject.toml from v0.2.3 to v0.2.4
@nelsonwmoore nelsonwmoore added the bug Something isn't working label Aug 29, 2023
@nelsonwmoore nelsonwmoore merged commit 70a1376 into master Aug 31, 2023
15 checks passed
@nelsonwmoore nelsonwmoore deleted the bugfix/bento-mdb#6/fix-prop-duplication branch August 31, 2023 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant