Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
S
sshoc-marketplace-backend
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • SSHOC
  • sshoc-marketplace-backend
  • Issues
  • #39

Closed
Open
Opened Nov 14, 2020 by serviceAcc.5d4bd64a607a0@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
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: sshoc/sshoc-marketplace-backend#39