Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TaskSkill model and endpoints #670

Closed
9 tasks done
begedin opened this issue Jan 31, 2017 · 0 comments
Closed
9 tasks done

Add TaskSkill model and endpoints #670

begedin opened this issue Jan 31, 2017 · 0 comments
Assignees

Comments

@begedin
Copy link
Contributor

begedin commented Jan 31, 2017

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

@begedin begedin added this to the Assign users to tasks milestone Jan 31, 2017
@begedin begedin self-assigned this Jan 31, 2017
@begedin begedin changed the title Add TaskSkill model and endpoints Add TaskSkill model and endpoints Feb 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant