добавить owner_user_id преподавателям

Open
#90 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start by locating the lecturer model and the GET/PATCH/POST /lecturer handlers in timetable_api, then trace how auth-api identifies the current session user. Done means lecturers can expose and update owner_user_id, and updates are permitted only when it matches the token's session.user_id.

Written by the indexing model from the issue text.

Description

good first issue :baby: new feature :new:
  • Добавить связь между преподавателем в timetable_api и пользователем auth-api
  • Разрешить менять страницу преподавателя при условии совпадения owner_user_id лектора и session.user_id токена, с которым пользователь пришел в сервис
  • GET/PATCH/POST /lecturer позволяют получать/изменять owner_user_id

Issue open by Roman Dyakov via telegram message.

Dominant language
Python
Stars
17
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from profcomff/timetable-api

All issues in profcomff/timetable-api

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.