feat: [bb-5610] discourse api integration
Creates a post on cell forum with link to recording in google drive uploaded from zoom.
Below screenshot of post created from API.
Testing instructions:
- Setup
DISCOURSE_*
env variables as mentioned insprintcraft/config/settings/base.py
file. - Open
django shell
- 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)
- Verify that post is created in the correct topic.
Edited by Navin Karkera