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

Add script for populating attachments #14

Open
joelvdavies opened this issue Sep 25, 2024 · 1 comment · May be fixed by #43
Open

Add script for populating attachments #14

joelvdavies opened this issue Sep 25, 2024 · 1 comment · May be fixed by #43
Assignees
Labels
enhancement New feature or request

Comments

@joelvdavies
Copy link
Collaborator

joelvdavies commented Sep 25, 2024

Useful for development and testing. E.g. the db-import in https://github.com/ral-facilities/inventory-management-system-api/blob/develop/scripts/dev_cli.py.

While we could use the same method of creating a dump for preserving the MongoDB data, I don't believe it will be possible for MinIO. It will also need to link to entities on IMS, so we will need to obtain IDs from there to add them here and using dumps would not work as well as a result. Ideally future download requests would fail gracefully if the object was never uploaded, so arguably we may be able to avoid having actual files for each attachment created with the script.

@joelvdavies
Copy link
Collaborator Author

joelvdavies commented Oct 8, 2024

Probably worth having an option in the script to generate mock ones for a specific entity id so can be more targeted. Added ral-facilities/inventory-management-system-api#392 as a pre-requisite as I think it could be useful to reduce the total number anyway.

@joelvdavies joelvdavies self-assigned this Oct 14, 2024
@joelvdavies joelvdavies linked a pull request Oct 14, 2024 that will close this issue
3 tasks
joelvdavies added a commit that referenced this issue Oct 14, 2024
joelvdavies added a commit that referenced this issue Oct 14, 2024
joelvdavies added a commit that referenced this issue Oct 15, 2024
joelvdavies added a commit that referenced this issue Oct 15, 2024
joelvdavies added a commit that referenced this issue Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Review
Development

Successfully merging a pull request may close this issue.

1 participant