Skip to content

Add TaskSkill model and endpoints #670

Closed
@begedin

Description

@begedin

Problem

To be able to match tasks with users, we need a TaskSkill model with associated endpoints, policies, etc.

Model

  • TaskSkill model
    • [:skill_id, :task_id]
    • create_changeset - requires both fields. uniqueness on that specific combination of fields

Endpoints

  • POST /task-skills to assign a skill to a project - creates record
  • DELETE /task-skills to remove a skill from a project - deletes record
  • GET /task-skills - to fetch all project skills (with coalesce support for hasMany)
  • GET /task-skills/:id

Policies (Authorization)

  • CREATE and DELETE should be task author, project admin or higher. Up for discussion. Possibly just a contributor might be enough.
  • SHOW and INDEX should be public

Authentication

  • CREATE and DELETE should require authentication
  • SHOW and INDEX should be public

Progress on: #668

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions