fact-check-manager: Maintenance tasks
Due to the nature of Fact Check Manager there are some tasks we need available to us for various forms of maintenance either for security or process reasons.
Revoke edition preview access for SMEs
Due to security requirements we need to manually reset the request's auth_bypass_id to invalidate preview links for any SMEs. We can do this by supplying a comma separated list of request IDs or a source app followed by source IDs to the associated rake task.
For example:
fact_check:revoke_preview_link_by_request_ids[request_id1,request_id2]
or fact_check:revoke_preview_links_by_source_ids[publisher,source_id1,source_id2]
Source IDs are only unique within a source app, so the source app comes first. Revoking by source ID revokes every request for that source, not just the latest one. The task revokes everything it finds, then fails and lists any IDs it could not find.
Note: You cannot mix source IDs and request IDs in the same rake task. Pick the one you need for your job!