You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@allura.apache.org by Dave Brondsema <da...@brondsema.net> on 2015/06/01 23:23:05 UTC
[allura:tickets] #7886 Config options to limit ticket & wiki page creation
---
** [tickets:#7886] Config options to limit ticket & wiki page creation**
**Status:** open
**Milestone:** unreleased
**Labels:** sf-current
**Created:** Mon Jun 01, 2015 09:23 PM UTC by Dave Brondsema
**Last Updated:** Mon Jun 01, 2015 09:23 PM UTC
**Owner:** nobody
It would be useful to have `.ini` settings to limit abuse of creating too many tickets or wiki pages. This should be enforced in controllers (including API controller), not in the models (since that could cause trouble for project imports or other server-side scripts or tasks).
Configuration and functionality could be similar to `project.rate_limits`. E.g.
forgewiki.rate_limits = {"3600": 100, "172800": 10000}
forgetracker.rate_limits = {"3600": 100, "172800": 10000}
Make sure to include a comment like the `project.rate_limits` comment in the `.ini` sections for these new settings, since it can be a little confusing to know what the numbers are for.
Helper function(s) should be created to check to see if a limit is reached for the given artifact type. Consider factoring out a general purpose rate_limit utility method from `plugin.py`'s `rate_limit` too.
Use `ProjectRegistrationProvider.get().registration_date()` for the start date you're comparing to for these cases. To count the number of artifacts, a simple query with `app_config_id = c.app.config._id` should be fine (don't need to consider any other tools in the same project)
If an error occurs, show a flash message or API error (HTTP 429) as appropriate, instead of creating the artifact instance. Log a warning.
---
Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/
To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
[allura:tickets] #7886 Config options to limit ticket & wiki page creation
Posted by Igor Bondarenko <je...@gmail.com>.
- **labels**: sf-current --> sf-current, 42cc
- **status**: open --> in-progress
- **assigned_to**: Igor Bondarenko
---
** [tickets:#7886] Config options to limit ticket & wiki page creation**
**Status:** in-progress
**Milestone:** unreleased
**Labels:** sf-current 42cc
**Created:** Mon Jun 01, 2015 09:23 PM UTC by Dave Brondsema
**Last Updated:** Mon Jun 01, 2015 09:23 PM UTC
**Owner:** Igor Bondarenko
It would be useful to have `.ini` settings to limit abuse of creating too many tickets or wiki pages. This should be enforced in controllers (including API controller), not in the models (since that could cause trouble for project imports or other server-side scripts or tasks).
Configuration and functionality could be similar to `project.rate_limits`. E.g.
forgewiki.rate_limits = {"3600": 100, "172800": 10000}
forgetracker.rate_limits = {"3600": 100, "172800": 10000}
Make sure to include a comment like the `project.rate_limits` comment in the `.ini` sections for these new settings, since it can be a little confusing to know what the numbers are for.
Helper function(s) should be created to check to see if a limit is reached for the given artifact type. Consider factoring out a general purpose rate_limit utility method from `plugin.py`'s `rate_limit` too.
Use `ProjectRegistrationProvider.get().registration_date()` for the start date you're comparing to for these cases. To count the number of artifacts, a simple query with `app_config_id = c.app.config._id` should be fine (don't need to consider any other tools in the same project)
If an error occurs, show a flash message or API error (HTTP 429) as appropriate, instead of creating the artifact instance. Log a warning.
---
Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/
To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
[allura:tickets] #7886 Config options to limit ticket & wiki page creation
Posted by Dave Brondsema <da...@brondsema.net>.
- **labels**: sf-current, 42cc --> sf-current, 42cc, sf-2
- **status**: review --> closed
- **Reviewer**: Dave Brondsema
---
** [tickets:#7886] Config options to limit ticket & wiki page creation**
**Status:** closed
**Milestone:** unreleased
**Labels:** sf-current 42cc sf-2
**Created:** Mon Jun 01, 2015 09:23 PM UTC by Dave Brondsema
**Last Updated:** Wed Jun 10, 2015 10:19 AM UTC
**Owner:** Igor Bondarenko
It would be useful to have `.ini` settings to limit abuse of creating too many tickets or wiki pages. This should be enforced in controllers (including API controller), not in the models (since that could cause trouble for project imports or other server-side scripts or tasks).
Configuration and functionality could be similar to `project.rate_limits`. E.g.
forgewiki.rate_limits = {"3600": 100, "172800": 10000}
forgetracker.rate_limits = {"3600": 100, "172800": 10000}
Make sure to include a comment like the `project.rate_limits` comment in the `.ini` sections for these new settings, since it can be a little confusing to know what the numbers are for.
Helper function(s) should be created to check to see if a limit is reached for the given artifact type. Consider factoring out a general purpose rate_limit utility method from `plugin.py`'s `rate_limit` too.
Use `ProjectRegistrationProvider.get().registration_date()` for the start date you're comparing to for these cases. To count the number of artifacts, a simple query with `app_config_id = c.app.config._id` should be fine (don't need to consider any other tools in the same project)
If an error occurs, show a flash message or API error (HTTP 429) as appropriate, instead of creating the artifact instance. Log a warning.
---
Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/
To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
[allura:tickets] #7886 Config options to limit ticket & wiki page creation
Posted by Dave Brondsema <da...@brondsema.net>.
- **labels**: sf-current, 42cc, sf-2 --> 42cc, sf-2
---
** [tickets:#7886] Config options to limit ticket & wiki page creation**
**Status:** closed
**Milestone:** unreleased
**Labels:** 42cc sf-2
**Created:** Mon Jun 01, 2015 09:23 PM UTC by Dave Brondsema
**Last Updated:** Fri Jun 12, 2015 07:38 PM UTC
**Owner:** Igor Bondarenko
It would be useful to have `.ini` settings to limit abuse of creating too many tickets or wiki pages. This should be enforced in controllers (including API controller), not in the models (since that could cause trouble for project imports or other server-side scripts or tasks).
Configuration and functionality could be similar to `project.rate_limits`. E.g.
forgewiki.rate_limits = {"3600": 100, "172800": 10000}
forgetracker.rate_limits = {"3600": 100, "172800": 10000}
Make sure to include a comment like the `project.rate_limits` comment in the `.ini` sections for these new settings, since it can be a little confusing to know what the numbers are for.
Helper function(s) should be created to check to see if a limit is reached for the given artifact type. Consider factoring out a general purpose rate_limit utility method from `plugin.py`'s `rate_limit` too.
Use `ProjectRegistrationProvider.get().registration_date()` for the start date you're comparing to for these cases. To count the number of artifacts, a simple query with `app_config_id = c.app.config._id` should be fine (don't need to consider any other tools in the same project)
If an error occurs, show a flash message or API error (HTTP 429) as appropriate, instead of creating the artifact instance. Log a warning.
---
Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/
To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
[allura:tickets] #7886 Config options to limit ticket & wiki page creation
Posted by Igor Bondarenko <je...@gmail.com>.
- **status**: in-progress --> review
- **Comment**:
Closed #789. `ib/7886`
---
** [tickets:#7886] Config options to limit ticket & wiki page creation**
**Status:** review
**Milestone:** unreleased
**Labels:** sf-current 42cc
**Created:** Mon Jun 01, 2015 09:23 PM UTC by Dave Brondsema
**Last Updated:** Wed Jun 03, 2015 03:23 PM UTC
**Owner:** Igor Bondarenko
It would be useful to have `.ini` settings to limit abuse of creating too many tickets or wiki pages. This should be enforced in controllers (including API controller), not in the models (since that could cause trouble for project imports or other server-side scripts or tasks).
Configuration and functionality could be similar to `project.rate_limits`. E.g.
forgewiki.rate_limits = {"3600": 100, "172800": 10000}
forgetracker.rate_limits = {"3600": 100, "172800": 10000}
Make sure to include a comment like the `project.rate_limits` comment in the `.ini` sections for these new settings, since it can be a little confusing to know what the numbers are for.
Helper function(s) should be created to check to see if a limit is reached for the given artifact type. Consider factoring out a general purpose rate_limit utility method from `plugin.py`'s `rate_limit` too.
Use `ProjectRegistrationProvider.get().registration_date()` for the start date you're comparing to for these cases. To count the number of artifacts, a simple query with `app_config_id = c.app.config._id` should be fine (don't need to consider any other tools in the same project)
If an error occurs, show a flash message or API error (HTTP 429) as appropriate, instead of creating the artifact instance. Log a warning.
---
Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/
To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.