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

HydroShare Copying: Edit Project via Snapshot #3002

Closed
2 tasks
rajadain opened this issue Oct 17, 2018 · 0 comments
Closed
2 tasks

HydroShare Copying: Edit Project via Snapshot #3002

rajadain opened this issue Oct 17, 2018 · 0 comments
Assignees
Labels
HydroShare Export WPF Funding Source: William Penn Foundation
Milestone

Comments

@rajadain
Copy link
Member

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

Requires #2999
Requires #3000

@rajadain rajadain added WPF Funding Source: William Penn Foundation HydroShare Export labels Oct 17, 2018
@rajadain rajadain added the 1 label Oct 17, 2018
@rajadain rajadain added this to the 1.24 milestone Oct 18, 2018
@rajadain rajadain self-assigned this Oct 22, 2018
rajadain added a commit that referenced this issue Oct 24, 2018
…t-via-snapshot

HydroShare Copying: Edit via Snapshot

Connects #3002
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HydroShare Export WPF Funding Source: William Penn Foundation
Projects
None yet
Development

No branches or pull requests

2 participants