| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
If a category has hardcoded set to 1 in it's extra metadata then prevent
the name being edited in the admin. This is to avoid issues where the
name of the category is used in e.g. layers or other configuration and
changing it breaks things.
Also includes admin interface for setting this that is restricted to
super users only.
Fixes mysociety/fixmystreet-commercial#1992
|
|
|
|
|
|
|
| |
Bulk option to remove body, roles and permisions, and disable login in
admin for users.
Fixes mysociety/fixmystreet-commercial#2025
|
| |
|
|
|
|
|
| |
As the contents of the service worker vary depending on if the user is
logged in don't cache it.
|
|
|
|
|
|
|
|
| |
A report's confirmation timestamp uses current_timestamp, and so
includes microseconds. An initial update text, to fit in with the
Open311 handling of updates, uses a DateTime object, which does not.
This means if a report is created when logged in, the initial update
can have a timestamp earlier than the report, and so is not alerted on.
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| | |
If a category’s send method is Open311, only strip spaces from the
ends of the code. We are aware of active Open311 servers that have
codes with spaces in the middle.
|
|\ \ |
|
| |/ |
|
|/ |
|
|\ |
|
| |
| |
| |
| | |
This also extends to response templates.
|
|\ \ |
|
| | | |
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The stopper checking code is triggered using the category_change event
which, by default also calls the duplicate check code. This meant that
when an extra question dropdown with an associated stopper was updated
the duplicate check re-ran and the duplicate reports panel was re-shown.
The invocation of category_change on the extra questions now includes
the skip_duplicates parameter to avoid this.
Fixes mysociety/fixmystreet-commercial#2007
|
|/
|
|
|
|
|
|
|
| |
UK cobrands now display UK-specific postcode/address search tips, when
the geocoder returns no results. This should hopefully help people
tweak their search, to return a better result next time.
The tips are based on findings from a study we ran on geocoder misses
across all UK cobrands over March, April, May, and June 2020.
|
|
|
|
|
|
| |
Provide a stopper per disable message, rather than per question.
Previously there was one stopper per dropdown so only the last message
encountered was used.
|
|
|
|
|
|
| |
Otherwise, if you switch category and the new asset layer is added
before the old is removed, the old (still visible) layer asset found
would fire but change the meta message of the new layer.
|
|
|
|
| |
Not on StreetView/OpenMap Local based, which are not available.
|
|
|
|
|
| |
This hopefully copes with assets displayed by category or by group,
and updates the button to show/hide on category change.
|
|
|
|
|
| |
Include a status page, the option for access token requests to use this
system, and a script for manual generation.
|
|
|
|
|
| |
This adds the code for photo uploads from the regular update form to the
inspector form, and adds details to the documentation.
|
| |
|
|\ |
|
| |
| |
| |
| | |
If both are specified, we want to treat it as an AND, not an OR.
|
| |
| |
| |
| |
| |
| | |
A hash lookup in a template is escaping the key used, meaning the lookup
is failing anywhere we are using a category containing an ampersand as a
key. A continuation of the changes made in 527d763b.
|
|/ |
|
|
|
|
|
|
|
|
|
| |
Your site user may not have access to sudo, and your admin user may
cause permission issues if used to do the git checkout, or the Perl
module installation. Document the separate script to install system
packages instead.
Co-authored-by: Sam Pearson <sam@mysociety.org>
|
|
|
|
|
|
| |
Given the user, we can infer the name if not provided, and the extra
data if a staff user. We can also provide defaults for various other
fields. Always have superuser take precedence over from_body.
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
If switched on, sends first five letters of the SHA1 hash of the entered
password to HIBP's API, which then returns all matching hashes in their
database of breached passwords. If we find a match, tell the user they
need to pick a different password.
|
|\ \ |
|
| |/
| |
| |
| |
| | |
This is a current full list of extra keys that could be set on a report
that could confuse the moderation diff display.
|
|/
|
|
|
| |
Sort the table when showing search results, and show users
without name at the bottom, rather than at the top.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
If we create one category_meta_message for each category, removing when
not relevant, then duplicat suggestion showing leads to duplicate
messages because the layer is still relevant, just not visible, and so
the old layer message is not removed. Instead, repurpose the ID of any
existing category_meta_message, so there is only ever one in existence.
|
|/
|
|
|
| |
Make GetUpdates and GetServiceRequestUpdates share a common base;
spot all visible states.
|
| |
|
|
|
|
|
|
|
| |
- Cobrand config can now specify custom scope and other params
e.g. G Suite supports per-domain customisation and the ‘prompt’ param
to always ask the user to select the account they want to login with.
- Token may have an ‘name’ claim instead of needing to concat given_/family_name claims
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We use Dropzone (the photo upload library) to shrink photos client-side
before uploading in the background and display thumbnails. For the
resized upload, Dropzone restores the original Exif data, including
orientation, so it can be correctly oriented server-side; for a
thumbnail, it orients the image itself for immediate display.
Recently, browsers have started honouring Exif orientation much more
widely (Chrome 81+ and Firefox 77+ both now do it by default). This
means the data Dropzone gets from a resize has already been oriented
according to the Exif orientation data. Then Dropzone either looks at
the orientation to correct for display (thumbnail), or adds back the
Exif orientation data (upload) – in both cases, this leads to a double
implementation of the orientation, and an incorrect display.
To fix this, if we detect we are on a modern browser, we do not try and
fix orientation ourself [1], and in all cases we do not add any Exif
data back in (we only strip it server-side anyway). Conversely, that
means on a non-modern browser, we always perform a manual orientation
because no Exif data will be being sent server-side.
Also includes a fix to the orientation code [2] which wouldn't be
noticed in thumbnail generation as they are square, but could be now we
may be orienting full size photos.
[1] https://gitlab.com/meno/dropzone/-/merge_requests/80
[2] https://gitlab.com/meno/dropzone/-/merge_requests/45
|
|
|
|
| |
In my Firefox on Windows, .jpeg files are not otherwise shown.
|
| |
|
|
|
|
|
| |
Add a couple of parameters to hopefully improve results, and make
sure the returned locality is included in the summary address.
|
| |
|
| |
|
| |
|
|\ |
|