Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C catalog.genesys-pgr.org
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 13
    • Issues 13
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Genesys PGR
  • Genesys Catalog
  • catalog.genesys-pgr.org
  • Issues
  • #356

Closed
Open
Created Aug 22, 2018 by Matija Obreza@mobrezaOwner

Publishing things: new API calls

genesys-pgr/genesys-server!169 implements three API calls relevant to the publication process:

  • for-review: DRAFT -> REVIEWING, can be triggered by data owner or admin
  • reject: REVIEWING -> DRAFT, can be triggered by data owner or admin
  • approve: REVIEWING -> PUBLISHED, can only be triggered only by admin

These three calls replace the original publish(boolean published) API endpoint.

Updates

  1. Delete dataset.published from model/datasets and add dataset.state (see #355 (closed))
  2. Compiler warnings will show where code needs to be updated to use state -- displaying buttons, etc
  3. Implement new actions forReview, reject, approve in actions/.
  4. We now have "Publish" and "Unpublish" buttons. Update so that when in draft state, "Publish" is available, when in reviewing state "Edit" (calls reject) and "Approve" (calls approve, only admin) are available and in published state only "Unpublish" is available.

Then repeat for descriptor and descriptor list.

Edited Aug 22, 2018 by Matija Obreza
Assignee
Assign to
Time tracking