-
Notifications
You must be signed in to change notification settings - Fork 2
Replace UUIDS with unique_names #18
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
Merged
Merged
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
9f26eb4
removed UUIDS from Graph in borg
damskii9992 5bb1f7f
replace convert_id calls with .name
damskii9992 7779d58
NameConverter class removed, move name assignment
damskii9992 0d59e9a
remove get_key
damskii9992 74dcb28
Add check if object name is already taken
damskii9992 3bedcee
add default name generation to BasedBase and Descriptor
damskii9992 048fdb7
borg _clear method
damskii9992 62b06a6
change id from name to unique_name
damskii9992 b57a136
more .name changes
damskii9992 ece545e
reorder name and value
damskii9992 982b3ca
more .name replacements and test fixes
damskii9992 3d5a65b
Fix tests
damskii9992 09ac66b
Ruff
damskii9992 2305785
tox fix
damskii9992 c6a7224
fix tox errors
damskii9992 473a844
Update map on unique_name change + code cleanup
damskii9992 0453369
Clear graph unittest
damskii9992 9b8f7f3
test_add_vertex
damskii9992 8d39a97
Rename borg to global_object
damskii9992 0be9d52
Restructure sourcecode tree
damskii9992 0e13ac2
restructure test folder
damskii9992 9073e49
more tests
damskii9992 64f0d39
test for identical unique names
damskii9992 f2fa102
removed UUIDS from Graph in borg
damskii9992 287c6de
replace convert_id calls with .name
damskii9992 34d609d
NameConverter class removed, move name assignment
damskii9992 b7617f3
remove get_key
damskii9992 7575d19
Add check if object name is already taken
damskii9992 c3e917d
add default name generation to BasedBase and Descriptor
damskii9992 82c75e7
borg _clear method
damskii9992 2edab45
change id from name to unique_name
damskii9992 4c18ded
more .name changes
damskii9992 e170e88
reorder name and value
damskii9992 d56a111
more .name replacements and test fixes
damskii9992 b4766a2
Fix tests
damskii9992 77131e6
Ruff
damskii9992 c24f40a
tox fix
damskii9992 1b5230d
Update map on unique_name change + code cleanup
damskii9992 d2e7edf
Clear graph unittest
damskii9992 d84cb52
test_add_vertex
damskii9992 f0a94cf
Rename borg to global_object
damskii9992 3d5e8c3
Restructure sourcecode tree
damskii9992 3b35911
restructure test folder
damskii9992 d68fc7c
more tests
damskii9992 7c64c6f
test for identical unique names
damskii9992 0b625a6
more tests
damskii9992 ed6ec28
Merge branch 'replace_UUIDS' of https://github.com/EasyScience/EasySc…
damskii9992 663c08e
Rebase on develop
damskii9992 574a654
fix dict tests
damskii9992 eff8f4b
fix __copy__ method
damskii9992 ad53055
fix tests
damskii9992 93964d0
fix remaining tests
damskii9992 80305db
ruff & test syntax
damskii9992 501230b
add final unique_name tests
damskii9992 3ff376b
add borg alias for global_object for backwards compatibility
damskii9992 da3dc61
According to PR
damskii9992 50791c2
fix mistake
damskii9992 0021efe
possible fix of test_star
damskii9992 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so we are not able to reuse the unique names then?
why not delete (prune) the vertex? Leaving old mapping seems wasteful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are, but only once the old object using the unique_name has been deleted and garbage collection has run and thus removed its entries from the map.
Alternatively the user can manually prune the old unique_name from the map. The prune method is not "hidden".
We want to encourage users to not reuse unique_names, as that makes them not really "unique".
But maybe this discussion belongs in the ADR Suggestion #16.