| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It was possible for _hardcoded_states to be reached with no locale
selected (e.g. bin/update-all-reports), causing an error trying to
translate Open/Closed. But translating those there wasn't correct,
because that would then be cached and returned even if a different
language was being used. Caching was ignored in testing, which did
not help.
We no longer translate the state names in their objects, only upon
display at the point that we will know the locale. We can't simply
return the translation of Open/Closed because there may be entries
in the translation table as well.
|
|
|
|
|
| |
Couple of missed strings for translation, and prevent a couple of
warnings in tests.
|
| |
|
| |
|
|
|
|
|
| |
And update the tests to avoid a random failure caused by inconsistent
ordering.
|
|
|
|
|
|
| |
Alert options on the /alert/list page are now in an order that is easier
to parse, with a slightly clearer message for users in two-tier
locations, and a more prominent email subscription CTA.
|
|
|
|
|
|
| |
This test assumed /reports would load, which it wouldn't if run in
parallel and the data hadn't been generated by reports.t. Test a
different page instead.
|
|
|
|
| |
Fixes mysociety/fixmystreetforcouncils#221
|
|
|
|
|
|
|
| |
Adds a Ward column to the council dashboard CSV export with the name of
the ward.
Fixes mysociety/fixmystreetforcouncils#220
|
| |
|
|\ |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
State display names are now got from the database wherever they are
displayed, including admin dropdowns, list filters, and update meta
statements. This also covers the open/closed/fixed 'groups'.
This also fixes a bug whereby if e.g. an update has problem_state
investigating, the next update has no problem_state, and the last
update has investigating again, it was previously showing a state
change to investigating on that third update.
|
| |
| |
| |
| |
| | |
We keep the internal states hardcoded, plus the core open (confirmed)
and closed ones, but the remainder are moved to the database.
|
| |
| |
| |
| | |
Allows easy display of Open311 field values for problems in templates
|
| | |
|
| |
| |
| |
| | |
If set to 1, this restricts all pages on the site to logged-in users.
|
|\| |
|
| | |
|
| | |
|
|/
|
|
| |
For mysociety/fixmystreetforcouncils#204
|
|
|
|
|
|
|
|
|
| |
If a staff user changed a problem’s state and an empty update was generated,
it was possible for alert emails to be sent with missing URLs because the
empty string in the update text was falsy and Alert.pm took the wrong path.
This fixes the problem by changing the test to defined() and includes a
regression test.
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Create a comment entry for all updates to reports regardless of whether
there is any text part. Also adds an entry to extra if a defect was
raised and includes that in the update status line.
Fixes mysociety/fixmystreetforcouncils#201
|
|\ \ |
|
| |/
| |
| |
| |
| |
| | |
Not just New/Fixed/Closed but the Investigating etc
Fixes #1790
|
|/ |
|
|
|
|
|
|
|
| |
- Also provides an editor for the extra Open311 fields on contacts.
- Adds .btn--small class for small buttons
Fixes #1743.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
This avoids the need to search the whole table to find a report's
duplicates. And is easier than constructing an index or upgrading
PostgreSQL.
|
| | |
|
|/
|
|
|
|
| |
uses the body user but flags the report as anonymous
Fixes #fixmystreetforcouncils/207
|
| |
|
|
|
|
|
|
| |
As category is used both for display and as a link between Problem and
Contact tables, add `category_display` for use whenever a category is
displayed.
|
| |
|
|
|
|
| |
Store a schema object on FixMyStreet::DB instead.
|
| |
|
|
|
|
|
|
|
|
| |
If a `success_url` parameter is provided along with the contact form
fields, the user will be redirected to that URL upon successful form
submission.
We use it for the first time on the (UK) FixMyStreet Pro marketing page.
|
|
|
|
|
|
|
|
| |
Replacing deleted text with [...] when moderating reports and comments
leads to very odd looking reports when correcting minor typos so just
leave the text as deleted.
Fixes #1774
|
|
|
|
|
|
|
| |
If a report’s category is changed to one with a different send_method to the
original category, the report needs to be resent.
Fixes mysociety/fixmystreetforcouncils#209
|
| |
|
|\ |
|
| |
| |
| |
| |
| | |
Inactive ones can still be used for e.g. list filtering,
but not when making a new report.
|
| |
| |
| |
| |
| | |
A new 'state' column replaces confirmed and deleted, allowing
categories to be unconfirmed, confirmed, deleted or inactive.
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is a much broader summary page, plus a body name autocomplete.
This was originally implemented for fixmystreet.com in 8a6a4ccb7.
It also adds '(no longer exists)' in the autocomplete next to
bodies not covering any areas.
You can supply the `--table` argument to `update-all-reports` to
generate the old-style data.
|
|/
|
|
|
|
| |
If an /about/homepage.html template exists in your cobrand, it
will be used as the front page, and the normal front page will
be available at /report.
|
|\ |
|