Skip to content
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

[ENG-4438] Add Spam Reversal Metric Numbers #10352

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

Johnetordoff
Copy link
Contributor

@Johnetordoff Johnetordoff commented Mar 16, 2023

Purpose

Add more nuanced statistics indicating what spam flagging actions come from which services and are applied to which resource types.

Changes

  • adds new service specific queries to admin metrics report
    • adds total number of reversed flag and per-sevice for preprints, node, and registrations

QA Notes

Please make verification statements inspired by your code and what your code touches.

  • Verify statistics are correct after back-filling statisitics

What are the areas of risk?

Any concerns/considerations/questions that development raised?

Documentation

https://api.osf.io/_/metrics/reports/spam_summary/

Quick backfill script:

import datetime
from dateutil.relativedelta import relativedelta
from django.core.management import call_command


date = datetime.datetime(year=2014, month=1, day=1)
now = datetime.datetime.now()

while date < now:
    date += relativedelta(months=1)
    call_command('monthly_reporters_go', f'{date.year}-{date.month:0>2}')

Side Effects

Ticket

https://openscience.atlassian.net/browse/ENG-4438

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants