| Commit message (Collapse) | Author | Age | Lines |
| |
|
| |
|
|
|
|
| |
Ignore case of config variable.
|
|
|
|
| |
The test fixes DateTime, which wouldn't affect direct database queries.
|
| |
|
|
|
|
|
|
|
| |
This makes it possible to display stats per area on /reports
Cobrands using this functionality should use the pre-dashboard
reports/index.html template and pass --areas when calling bin/update-all-reports
|
|\ |
|
| |
| |
| |
| |
| | |
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.
|
| |
|
|
|
|
|
| |
Add hook for post-title field content in report form.
Update translations.
|
|
|
|
|
|
| |
Month strings weren't escaped in data label, and would never
match database data (using month number). Also issues displaying
current day/month in graph.
|
|
|
|
| |
Questionnaire responses don't currently set problem_state.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Revert the behaviour from 36baff2d, so that everyone can use the 'action
scheduled' state, and instead if someone with report_instruct permission
has the state set to 'action scheduled', add an extra mandatory question
asking whether they want to raise a defect or not.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is a much broader summary page, plus a body name autocomplete.
This uses a cut down version of chart.js. [1]
[1] The full version was 149Kb (41Kb gzipped) plus you needed moment
(50Kb/17Kb), for a total of 199Kb/58Kb. By stripping out unused graphs
and code and config options, and switching to category axis rather than
time, it is now a total of 39Kb/13Kb.
|
|\ \ |
|
| | | |
|
| |/
|/| |
|
|/
|
|
|
| |
Both uses can be covered by existing modules.
This means we can drop FCGI also.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
When the category or state changes, the list of available templates
updates (previously it was frozen at what the category was on page
load, and didn't care about the state).
|
| |
| |
| |
| | |
Also include areas in auto-generated problems.
|
|/
|
|
| |
Fixes mysociety/fixmystreet-commercial#859
|
|
|
|
|
|
| |
Instead of checking if the list of bodies has changed at all, mark the
report for resending if there is a body in the new list not present in
the old.
|
|
|
|
|
| |
This now lets the response priority and defect type handling share the
same code.
|
| |
|
| |
|
|
|
|
| |
This means that the tests can be run in parallel.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Historically in UK cobrands, bodies have had IDs the same as the MapIt
area ID they cover. This can be confusing (if you are setting up a dev
environment, say) and should not be necessary. This commit removes the
requirement entirely, by switching any ID checks to either the name of
the body, or the actual area it covers.
One note: the body name in the test has to match so that we do not get
two bodies both covering 2237 created. This will not be necessary when
the tests are compartmentalized in the next commit.
|
| |
|
|
|
|
|
|
| |
Given a MapIt area ID, the script will create a body and categories,
users with different levels of permissions, and some random problems
and updates. It can optionally empty out the database first.
|
| |
|
|
|
|
| |
Add hook so that cobrands can change pin hover title.
|
| |
|
|
|
|
|
|
|
| |
Oxfordshire map pins now have icons on, and some use different colours,
to better communicate the status of reports.
Fixes mysociety/fixmystreetforcouncils#170
|
|
|
|
|
|
| |
Previously, a green marker would be used for reports as they were being
created. Now, cobrands can override `pin_new_report_colour` to show a
different pin image when users are creating a new report.
|
|
|
|
|
|
| |
This removes most of the FMS/mySociety branding, but uses the same logic
as the fixmystreet.com cobrand wrt problem restrictions, handling, etc.
Suitable for UK council demos.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
The Bromley update form needed to be updated to use the new <select> template.
This also fixes a situation where staff users (on all cobrands) wouldn't be able
to leave updates on problems with state 'fixed - user'.
|
|
|
|
| |
This lets it look the same as admin/inspect uses, with optgroups.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
If the longitude was very close to 0, it was being sent as e.g. 1e-6
in the request to MapIt. Mock out the Bing query so that this can be
tested (the closest.t tests were previously always being skipped).
|
|/ |
|
| |
|