Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S sshoc-marketplace-backend
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • SSHOC
  • sshoc-marketplace-backend
  • Issues
  • #39
Closed
Open
Issue created Nov 14, 2020 by Stefan Probst@stefan.probstMaintainer

entity.contributors: should adding the same actor in different roles be allowed?

when adding entity contributors, the backend currently checks that actor.id is unique. this prevents adding the same actor in different roles, e.g. as both "contributor" and "author". this might be intentional, just want to make sure that we don't want to use a compound constraint of actor.id+role.code here?

example:

curl -X POST -d '{"label":"Label","description":"","contributors":[{"role":{"code":"contributor"},"actor":{"id":1}},{"role":{"code":"author"},"actor":{"id":1}}]}' -H "Content-Type: application/json" -H "Authorization: ..." "http://localhost:8080/api/datasets" | jq
Assignee
Assign to
Time tracking