Validator for publishing rate
Proposal:
If you've published more than 5 versions over the past 30 days, then publishing validations throw an error.
This can be ignored with --skio-validation.
We can fetch versions from the API, which has a published date-time.
It's a simple way to limit publishing without making a hard limit. Also we can put in a message pointing to dart.dev/go/publishing-frequency. Then we can document guidelines for publishing rate, and document out limits.
Let's start by writing dart.dev/go/publishing-frequency. It will add value on its own
We should probably make this a warning only...
We should probably make this a warning only...
I'd be down for having two rate-limits:
- Error at:
- 20 publications past week (20 versions/week)
- 32 publications past month (~ 8 versions/week)
- 50 publications past 3 months (~ 4 versions/week)
- 100 publications past year (~ 2 versions/week)
- Warning at:
- 15 publications past week (18 versions/week)
- 24 publications past month (~ 6 versions/week)
- 60 publications past 3 months (~ 5 versions/week)
- 75 publications past year (~ 1.5 versions/week)
Credits to istvans proposed rates in https://github.com/dart-lang/pub-dev/pull/8063