Open mrsbluerose opened 1 month ago
Notes from meeting 9/26:
Current AttributesAPIController logic flow:
POST: applyPhraseToUser
if phraseService.isPhraseValid (checks if missing verb/noun,
any word previously rejected, phrase previously rejected)
yes:
if phraseService.applyPhraseToUser
yes:
if isPreviouslyReviewed (and approved)
(checks if phrase has already been approved)
yes:
add to user, return true
no:
add user and phrase to toBeReviewed
**** default return false
no:
send notification, returns false
no:
sends notification, returns false
Current ToBeReviewed checker service:
gets all phrases "ungroomed"
processes them for parts of speech
if it matches, they are updated as "groomed"
if it does not match, they are added to rejected phrases and deleted from the toBeReviewed repo
[ ] ToDos: send notification to user(s) if the checker rejects a phrase. (ticket)
Current ToBeReviewd logic:
get next phrase to be reviewed
reviewer approves or rejects the phrase
[ ] ToDos:
verify the review process is complete (phrase saved where needed) (ticket if needed)
notify user when phrase is approved or rejected (ticket)
The attributes functionality isn't complete yet. For instance, in ReviewDecisionService::saveReviewDecision(), we save the decision of the phrase reviewer (Accepted, Nonsense, Vulgar), but we don't do anything with it. We should be updating the tables that associate the phrase with the user if it is valid, and add it to the rejected_* tables if not.
Ensure the entire Create Attribute process works:
Review the work to be done and create issues. Consult in meetings for help breaking the work down.