Closed Bug 1210875 Opened 10 years ago Closed 7 years ago

Please enable linking filtered Community Hub view for all locales

Categories

(support.mozilla.org :: Users and Groups, task, P3)

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mdziewonski, Unassigned)

Details

(Whiteboard: u=contributor r=?)

It looks like Django is trying to parse the dates using localized formats instead of the expected formats when the initial load has both a non-en-US locale and dates in the URL. Errormill: https://errormill.mozilla.org/support/support/group/398729/ Stacktrace:: ValidationError: [u'Date has wrong format. Use one of these formats instead: YYYY[-MM[-DD]]'] Stacktrace (most recent call last): File "django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "newrelic/hooks/framework_django.py", line 497, in wrapper return wrapped(*args, **kwargs) File "kitsune/community/views.py", line 200, in top_contributors_new contributors = api_endpoint().get_data(request) File "kitsune/community/api.py", line 312, in get_data base_filters = self.get_filters() File "kitsune/community/api.py", line 57, in get_filters f &= filter_method(value) File "kitsune/community/api.py", line 105, in filter_startdate date = fields.DateField().from_native(value) File "rest_framework/fields.py", line 665, in from_native raise ValidationError(msg) msg is [u'Date has wrong format. Use one of these formats instead: YYYY[-MM[-DD]]']
Whiteboard: u=contributor
Michal, would you mind ranking this on your backlog?
Flags: needinfo?(mdziewonski)
Whiteboard: u=contributor → u=contributor r=?
Prioritized. Thanks!
Flags: needinfo?(mdziewonski)
Priority: -- → P3
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.