feat: process rfc-editor queue notifications from purple#10857
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10857 +/- ##
========================================
Coverage 88.49% 88.49%
========================================
Files 332 332
Lines 44851 44973 +122
========================================
+ Hits 39690 39801 +111
- Misses 5161 5172 +11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This comment was marked as spam.
This comment was marked as spam.
jennifer-richards
left a comment
There was a problem hiding this comment.
Looks generally good. A couple nits (one just an aesthetic suggestion, disregard if you prefer). A couple questions about tests, including several about a state that I don't think is valid in the queue json input.
| [ | ||
| { | ||
| "name": draft.name, | ||
| "assignment_set": [{"role": "blocked", "state": "blocked"}], |
There was a problem hiding this comment.
Again the "state": "blocked"
jennifer-richards
left a comment
There was a problem hiding this comment.
Looks good. The tests are a little oddly organized / named but they cover the necessary cases.
|
Waiting for compatibility testing with purple's side of the API before merging |
This adds an endpoint that accepts a post of the queue json and passes it to a celery task which updates all of the documents in the queue (and those that had been in the queue but no longer are) accordingly.
It follows similar logic to the old queue processor, but changes things so that only two new
draft-rfceditorstates are used:in_progressandblocked. It adds a newDocEventderivativeRpcAssignmentDocEventthat captures, in text form, roughly what the new queue site shows in itsStatuscolumn.Note well that the first time the new queue is processed, any documents with old
draft-rfceditorstates will be updated to the new states and the new status values will be added as anRpcAssignmentDocEvent, leading to a pair of email messages to each subscriber using the community tool to watch for changes to the document. At the time of development slightly more than 4000 messages would have been emitted.Claude was used heavily in the creation of this PR.