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

If a site is deleted, and there are mappings in a harvest, the harvest is no longer valid and cannot be used #673

Open
atruskie opened this issue Apr 4, 2024 · 0 comments

Comments

@atruskie
Copy link
Member

atruskie commented Apr 4, 2024

Steps:

  1. Create a project, regions, and site
  2. Create an upload in the project
  3. Delete the site
  4. Now observe the upload cannot be transitioned (e.g. from uploading to scanning) because it is invalid because it contains an invalid mapping.
    image

Possible solutions:

  • delete mappings from harvests when a site is deleted?
  • have the model automatically normalize mappings on transition to remove deleted mappings (the validation can remain the same)?
  • Have the client expose a way to edit the mappings in the upload screen? Why get the user to fix this though, we already should have

Related to #672

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

No branches or pull requests

1 participant