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

Create new script for adjusting Pileup documents in MongoDB #11867

Closed
vkuznet opened this issue Jan 18, 2024 · 0 comments · Fixed by #11872
Closed

Create new script for adjusting Pileup documents in MongoDB #11867

vkuznet opened this issue Jan 18, 2024 · 0 comments · Fixed by #11872

Comments

@vkuznet
Copy link
Contributor

vkuznet commented Jan 18, 2024

Impact of the new feature
Simplify management of MSPileup records in MongoDB.

Is your feature request related to a problem? Please describe.
Due to implementation of partial data placement in #11807 we must adjust all pileup documents in MongoDB and add new transition record to them. To simplify this task we may create new script which will do just that.

Describe the solution you'd like
Create new script to adjust MongoDB records with the following logic:

  • get all documents from MongoDB
  • iterate through each document
  • for concrete document create new transition record based on example of the code presented in this PR for createPileup API
  • add new transition record
  • update document in MongoDB

Describe alternatives you've considered
Can be done manuall in MongoDB, but this process may be tedious and error prone.

Additional context
Sub-task of this meta-issue: #11537

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment