-
Notifications
You must be signed in to change notification settings - Fork 37
refactor(metadatakeys): merge duplicate keys across datasets and track group references #2697
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
Open
Junjiequan
wants to merge
31
commits into
master
Choose a base branch
from
refactor-metadatakeys-service
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
52b13ae
refactor(metadatakeys): merge duplicate metadata keys across dataset…
Junjiequan 90cc22f
refactor(metadatakeys): merge duplicate keys across datasets and trac…
Junjiequan 7daa0c1
trim migration script comment and fix failing tests
Junjiequan af3fef7
fix typo and api test
Junjiequan 8320494
set ownerGroup as required with nonEmpty value
Junjiequan 386ccf0
update doc
Junjiequan 34e0a24
fix api test
Junjiequan 74851db
fix api test
Junjiequan e66ebac
fix api test
Junjiequan 125c507
fix api test
Junjiequan 9a41f76
address sourcer comment
Junjiequan 22e8a2f
remove unncessary request import
Junjiequan 352437d
add batch for scientificMetadata sync migration
Junjiequan 40a0c6d
address comment
Junjiequan b5446ed
minor fix
Junjiequan d51d069
Revert "set ownerGroup as required with nonEmpty value"
Junjiequan add29b3
Merge branch 'master' into refactor-metadatakeys-service
Junjiequan ff1a457
revert existingDataset in findByIdAndUpdate
Junjiequan 43ea114
remove unnecessary comment
Junjiequan 921d11b
add back existingDataset &
Junjiequan d90c3cd
fix migration pipe
Junjiequan d71cb40
Merge branch 'master' into refactor-metadatakeys-service
Junjiequan 1aee8bc
include MAX_USER_GROUPS_PER_METADATA_KEY logic for metdataKeys migrat…
Junjiequan c6905fa
update seed migration script
Junjiequan 0aeb977
Replace concat _id with compound filter (sourceType + key + humanRead…
Junjiequan 3b10fdc
improve migration script and
Junjiequan 32f9540
improve metadataKeys doc update logic and add unit tests based on com…
Junjiequan 665f392
set createdBy, updatedBy on insert and updatedAt on every upsert in M…
Junjiequan fb5dfb0
fix minor typescript import errors
Junjiequan 6ff971d
reorder imports
Junjiequan 1d4f99a
add shared createMetadataKeysInstance function to reduce duplication
Junjiequan 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
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.
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.
Could you explain in which cases this can happen that a user sees metadata keys they do not have permissions for?
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.
All the metadata keys returned from
/api/v3/datasets/metadataKeysare not filterd by permissionThere 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.
ok, but what does it mean, eg if
/api/v4/datasets/metadatakeysis used they will always be filtered by permissions? From your initial description I thought it can have to do with setting limits wrongly ?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.
The new endpoint
/api/v4/metadataKeys/findAll?{query}will always return filtered metadatakeys by permissions.I'm not sure I understand your second quesion