stevebrownlee / learn-ops-client

Learning Platform client application for students and instructors. Tracks student data as they progress through their core and technical learning objectives.
1 stars 8 forks source link

Team Maker: Automatically add active instruction team #19

Closed stevebrownlee closed 1 year ago

stevebrownlee commented 2 years ago

Module: views/slack.py

When the Slack channel is created, and the students are all invited, automatically add the 2/3 active instructors for the cohort.

This will require the following work.

  1. Allow user to mark self as an active instructor of a cohort
  2. Allow user to mark self as an inactive instructor of a cohort
  3. Client needs to send cohort id in the request (get from localStorage)
  4. When Slack channel is created, filter NssUserCohort where user__is_staff is False and cohort is for id passed from client
  5. Once that queryset is retrieved, iterate and add to comma-delimited list of Slack member ids sent in the request to Slack Web API