whole-tale / ngx-dashboard

WholeTale Dashboard rewritten in Angular
MIT License
0 stars 3 forks source link

feat: add version dropdown to publish modal #315

Closed bodom0015 closed 1 year ago

bodom0015 commented 1 year ago

Problem

UI does not offer a way to Publish a specific Version of a Tale

Fixes #314

Approach

Screen Shot 2022-12-19 at 12 23 07 PM Screen Shot 2022-12-19 at 12 23 13 PM

How to Test

Prerequisites: at least one Tale created, at least one provider configured in User Settings, at least one Version created

  1. Checkout this branch locally, rebuild the dashboard
  2. Login to the WholeTale Dashboard
  3. Expand the dropdown at the very top-right and choose User Settings
  4. Verify that at least one provider for either DataONE or Zenodo has been configured (e.g. sandbox.zenodo.org)
  5. Select a Tale that you own and click View
    • You should be redirected to the Run Tale view for this Tale
  6. Create a new version for this Tale (if you haven't already)
  7. Make a local modification in your Tale Workspace (e.g. upload a new file)
  8. Expand the Dropdown beside the "Run Tale" and "Close" buttons at the top-right, and choose Publish Tale
    • You should see the Tale Publish modal appear
    • You should see two dropdowns: one for version and one for repository
    • You should see placeholder messages on each of these dropdowns
  9. Select a repository only
    • The Publish button should now be clickable
  10. Choose a version as well
    • The Publish button should still be clickable
  11. Click the Publish button
    • You should see a progress bar appear
  12. Wait for publish to complete, then examine published artifacts
    • You should see the version that you published does not include your local modification
    • You should see that the selected version has instead been published to the chosen repository provider