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

Close down last remaining API endpoints #1503

Open
mwinokan opened this issue Sep 5, 2024 · 2 comments
Open

Close down last remaining API endpoints #1503

mwinokan opened this issue Sep 5, 2024 · 2 comments
Assignees
Labels
2024-09-17 olive data curation big items (too big for mint) 2024-11-21 snapshots 1483, and things waiting for it

Comments

@mwinokan
Copy link
Collaborator

mwinokan commented Sep 5, 2024

from the last fixes to restore snapshot and download bugs @alanbchristie to talk to @boriskovar-m2ms to see how target/session information can be passed correctly to enable lockdown of relaxed endpoints

@mwinokan mwinokan added the 2024-06-14 mint Data dissemination 2 label Sep 5, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Fragalysis Sep 5, 2024
@mwinokan mwinokan moved this from Backlog to FragTech in Fragalysis Sep 5, 2024
@mwinokan
Copy link
Collaborator Author

mwinokan commented Sep 17, 2024

It is unclear whether f/e changes will be needed, @boriskovar-m2ms says it might get complicated regarding snapshots linking to proposals/sessions. In theory @matej-vavrek can help out, but there are likely to be conflicting changes with #1483. (@phraenquex says it is fine to wait)

@mwinokan mwinokan added 2024-11-21 snapshots 1483, and things waiting for it and removed 2024-06-14 mint Data dissemination 2 labels Nov 20, 2024
@boriskovar-m2ms
Copy link
Collaborator

I'm really not sure if I know what this is exactly about because it has been almost 3 months now BUT IIRC the main problem is that not logged in (but also logged in) user can share a snapshot for other user to see. The problem is that this snapshot must have a project so anonymous project is created and I THINK this is the reason why session-projects and snapshots api endpoints can be closed off.

For session-projects IIRC the idea was that not every snapshots needs to be a part of a session project. This is very hard, We would need some move/duplicate some information from session project to snapshot, redo a lot of functionality because when we know that we are working with a snapshot we also know that we have a project object and properties available, change saving snapshots and change how routing works. This is just from top of my head. We are talking about one week minimum and up to two weeks. But we would get finally rid of this fake session projects which you always need to remember to handle them differently and are causing problems (see #1578 ). Then there are some curious decisions to be made like currently there is a functionality that when you're logged in and you're working on a session project and you click Share button no snapshot is created but link to a current snapshot you have displayed is shared (without the unsaved changes) - in this case a copy of snapshot would be created and this copy would be marked as a public so it's doable but this is just one of many obscure details you need to be aware of.

For snapshots I'm not sure how to handle this. Maybe enforce ISPyB validation for snapshots that are not created as a part of a session project (new field in snapshots table)?

@mwinokan mwinokan added the 2024-09-17 olive data curation big items (too big for mint) label Nov 27, 2024
@mwinokan mwinokan moved this from Snapshots Refactor to olive in Fragalysis Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2024-09-17 olive data curation big items (too big for mint) 2024-11-21 snapshots 1483, and things waiting for it
Projects
Status: olive
Development

No branches or pull requests

3 participants