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 4 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

 into add-more-spam-metrics

* 'develop' of https://github.com/CenterForOpenScience/osf.io: (173 commits)
  Hotfixes for: double-encoded urls + dep upgrades
  fixed docker-compose requirements for local setups with venv inside project root (CenterForOpenScience#10697)
  use correct version of module for metrics
  update Dockerfile for recent lints
  remove deprecated version stanza from docker-composes
  update reqs to pull from github commit shas
  correct body location for api.ia POST requests
  update dataverse dep revision to get changes
  Update CHANGELOG, bump version
  [CR][ENG-5681] Great Big Python Upgrade (CenterForOpenScience#10648)
  Revert "[ENG-3685] Add permissions for withdrawn registration files (CenterForOpenScience#10650)" (CenterForOpenScience#10666)
  Check Registration READ perms on the Registration - Do not record download metrics for renders
  Fix signature
  Allow DOI metadata updates to be queued
  [ENG-3685] Add permissions for withdrawn registration files (CenterForOpenScience#10650)
  Update CHANGELOG, bump version
  [ENG-5030] Preprints Phase 2 - BE (CenterForOpenScience#10617)
  Update CHANGELOG, bump version
  Ensure Assumed-HAM users do not get autobanned
  [ENG-5762] Get GV set up in osf docker configs (CenterForOpenScience#10643)
  ...
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.

2 participants