-
Notifications
You must be signed in to change notification settings - Fork 544
Record reasoning
and private_notes
separately in Content Decisions
#23419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
a095724
to
2490333
Compare
- `reasoning` is the comment sent to the content owner (or reporter for a reporter appeal). - `private_notes` are, as the name implies, private notes entered by the moderator, and not shared externally. For consistency and to keep existing data, since we had already shared existing `notes` externally, the `notes` field has been renamed to `reasoning` and a new `private_notes` field has been introduced. When private notes are entered for a decision that goes through ContentAction.log_action(), record a separate activity for it, mimic what we do in reviewer tools in that case.
66f163b
to
1408ff7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any occasions where we have both private_notes and reasoning 🤔
@@ -218,7 +218,9 @@ def handle_escalate_action(*, job_pk, from_2nd_level=False): | |||
old_job.target, resolved_in_reviewer_tools=True | |||
) | |||
job_id = entity_helper.workflow_recreate( | |||
notes=old_job.final_decision.notes, job=old_job, from_2nd_level=from_2nd_level | |||
reasoning=old_job.final_decision.reasoning, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe not worth addressing, because #23338 removes this function, but the reasoning here would be from private_notes
because it's via Cinder from taskus moderators.
I don't think it's possible at the moment, but in case that ever happens the code should handle it. |
With this change:
reasoning
is the comment sent to the content owner (or reporter for a reporter appeal).private_notes
are, as the name implies, private notes entered by the moderator, and not shared externally.That clear separation makes it possible for us to keep notes entered by moderators in Cinder private instead of exposing them as the reasoning.
For consistency and to keep existing data, since we had already shared existing
notes
externally, thenotes
field has been renamed toreasoning
and a newprivate_notes
field has been introduced.Fixes mozilla/addons#15554