Skip to content

Allow validation severity to be overridden with url params - #8243

Merged
mbrzakovic merged 2 commits into
developfrom
validation_queryparams
Jul 6, 2021
Merged

mbrzakovic merged 2 commits into
developfrom
validation_queryparams

Conversation

@bhousel

@bhousel bhousel commented Dec 10, 2020

Copy link
Copy Markdown
Member

This PR adds support for URL parameters that can be used to override the default severity levels of the iD or RapiD validators.

Parameters

  • validationDisable - The issues identified by these types/subtypes will be disabled.
 (Issues will not be shown at all.)
  • validationWarning - The issues identified by these types/subtypes will be treated as warnings.
 (Issues will be surfaced to the user but not block changeset upload)
  • validationError - The issues identified by these types/subtypes will be treated as errors.
 (Issues will be surfaced to the user but will block changeset upload)

Each parameter value should contain a urlencoded, comma-separated list of type/subtype match rules.
An asterisk * may be used as a wildcard.

Examples:

These validation rules are normally treated as warnings, but we can override them to be save-blocking errors for this user's editing session:
&validationError=disconnected_way/*
&validationError=disconnected_way/highway
&validationError=crossing_ways/highway*
&validationError=crossing_ways/highway*,crossing_ways/tunnel*

Screen Shot 2020-12-10 at 3 10 38 PM

@mbrzakovic
mbrzakovic self-requested a review July 6, 2021 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants