-
Notifications
You must be signed in to change notification settings - Fork 21
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
load projects and samples #114
Merged
+104
−6
Merged
Changes from 3 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
54733d8
redoing the ticket
StefanBabukov 3c25dbc
fix
StefanBabukov b76dcf8
fixes
StefanBabukov 5e8cf39
fixes
StefanBabukov c151211
fixes
StefanBabukov eb7eec6
comment fixe
StefanBabukov c660595
fixes
StefanBabukov 2abca9e
move to inside function
StefanBabukov 1e189e2
change
StefanBabukov f2cb9a1
Refactor code to work better with async/await
marcellp 25bf06f
Make sure keys returned to getProjectsFromIds are unqiue.
marcellp 43c4734
Convert projectIds into an Array
marcellp 158ba33
Fix conversion error between keys
marcellp 69a3ab4
Add array spreading to other reference to projectIds
marcellp 997d8a7
Add array spreading to other references to projectIds
marcellp e0c8eb6
Make module to filter out orphaned experiments more explicit
marcellp adbbc4d
Remove based on items
marcellp 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 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 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 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 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
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.
This scan will need to be over the experiments table (and only getting
projectId
), then with the projectIds you find there you'll need ot get the projects from projects table (some of the experiments won't haveprojectId
s so you could deal with that by adding aFilterExpression
withattribute_exists
in theparams
).For loading projects based on the projectIds you got from experiments you could use
BatchGetItem
https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html#batchGetItem-property,also keep in mind that the experiments table has
projectId
field while projects table hasprojectUuid
, so there's a decision here, either usingprojectId
and changing the projects and samples tables orprojectUuid
and changing the experiments table. (or just doing a_.transform()
between the result of theexperiments
scan and theprojects
batch get to changeprojectId
->projectUuid
and leave this matter for some future refactoring) .