dart-lang / pub-dev

The pub.dev website
https://pub.dev
BSD 3-Clause "New" or "Revised" License
775 stars 145 forks source link

New moderation and report processing flow #7535

Open jonasfj opened 6 months ago

jonasfj commented 6 months ago

The things we have to do are:


Implementation details of isModerated/moderatedAt

To ensure that we reverse moderation decisions, we're going to add properties:

We are adding these properties to the following entities:

With the effect that being moderated means that:

We'll default to deleting entities and related resources 3 years after moderatedAt.

When setting isModerated on Publisher or User this can cause packages that are solely owned by said entity to be marked as isDiscontinued. When clearing isModerated we do not change this back, it's simply too much information to track.

jonasfj commented 1 week ago

@isoos can we implement:

Periodic task to delete entities and associated resources if now() - moderatedAt > 3 years (users are still just user.isDeleted = true with Likes being deleted).

Ideally, next week.