Open millerh1 opened 2 years ago
Static HTML page is replaced by SlackBot call. User is given only Accept button(By SlackBot) and will place a time tracking script (by CRUD), to check every 1-2 days if Assessment is not assigned any reviewer. Rough workflow
The deny_reviewer( )
was not included, else other utils
and api endpoints have been added.
Given the workflow as currently envisioned here, we need to develop a series of utility functions to facilitate communication with assigned reviewers on Slack. The basic workflow is:
app.utils.assign_reviewer()
app.utils.create_reviewer_link()
which creates a static HTML page with two links that contain HTTP calls to the/api/confirm-reviewer
endpoint. This is uploaded to AWS S3 for access by reviewer.app.utils.notify_reviewer_slack()
which calls the slack API and sends a notification to the member on Slack with the link to the HTML page on AWS where they can confirm or deny the review request.app.utils.confirm_reviewer()
which callsbot.reviewer_status()
andapp.crud.update_reviewer()
-- these actions lead to the reviewer being assigned on GitHub and in our database.app.utils.deny_reviewer()
which callsapp.utils.assign_reviewer()
again to repeat the process with a new reviewer.