Skip to content

feat: [bb-5610] discourse api integration

Navin Karkera requested to merge navin/bb-5610-discourse into master

Creates a post on cell forum with link to recording in google drive uploaded from zoom.

Below screenshot of post created from API.

image

Testing instructions:

  1. Setup DISCOURSE_* env variables as mentioned in sprintcraft/config/settings/base.py file.
  2. Open django shell
  3. Create a variable for example:
recordings = [{"web_view_link": "https://drive.google.com/file/d/1XXXXX/preview",
"cell_name": "test_cell",
"topic": "Sprint retrospective",
"sprint_number": 269}]
# Run `retrospective_recording_posts` from `sprintcraft/sprintcraft/dashboard/libs/discourse.py` 
from sprintcraft.dashboard.libs.discourse import retrospective_recording_posts
retrospective_recording_posts(recordings)
  1. Verify that post is created in the correct topic.
Edited by Navin Karkera

Merge request reports