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)
support.mozilla.org
Users and Groups
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: mdziewonski, Unassigned)
Details
(Whiteboard: u=contributor r=?)
If you go directly to a filtered view of the Community Hub user list, you get an error.
Example links:
https://support.mozilla.org/pl/community/top-contributors/l10n/new?startdate=2015-09-19&enddate=2015-09-25
https://support.mozilla.org/el/community/top-contributors/l10n/new?startdate=2015-09-19&enddate=2015-09-25
https://support.mozilla.org/fr/community/top-contributors/l10n/new?startdate=2015-09-19&enddate=2015-09-25
This does not happen for English US:
https://support.mozilla.org/en-US/community/top-contributors/l10n/new?startdate=2015-09-19&enddate=2015-09-25
FWIW:
A non-filtered view works for all locales:
https://support.mozilla.org/pl/community/top-contributors/l10n/new
https://support.mozilla.org/el/community/top-contributors/l10n/new
https://support.mozilla.org/fr/community/top-contributors/l10n/new
Using filters from that page works as expected, too.
Comment 1•10 years ago
|
||
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
Comment 2•10 years ago
|
||
Michal, would you mind ranking this on your backlog?
Flags: needinfo?(mdziewonski)
Whiteboard: u=contributor → u=contributor r=?
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.
Description
•