You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in #2990 (comment), a user may copy a resource in HydroShare and want to edit in MMW. This requires we open someone else's project, copy it to the user's account, and associate it with the given resource.
Make an endpoint at /project/via/hydroshare/$resource_id/edit/ that does this
Workflow will be like:
Check if the resource is already associated with a project.
If so, check if the current user owns the project.
If so, open the project.
If not, copy the project to the user's account, and open the project
If not, fetch the resource's file list and look for project snapshot file.
If not found, show error.
If found, read the file and find the originating project
If that project is not found, 404.
If that project is found, check to see if the user owns it.
If so, open the project.
If not, copy the project to the user's account, associate it with the given resource, and open the project
As discussed in #2990 (comment), a user may copy a resource in HydroShare and want to edit in MMW. This requires we open someone else's project, copy it to the user's account, and associate it with the given resource.
/project/via/hydroshare/$resource_id/edit/
that does thisRequires #2999
Requires #3000
The text was updated successfully, but these errors were encountered: