Skip to content

Bugfix the calculation of weighting based on static parts#2472

Merged
davidism merged 1 commit intopallets:2.2.xfrom
pgjones:2.2.x
Jul 27, 2022
Merged

Bugfix the calculation of weighting based on static parts#2472
davidism merged 1 commit intopallets:2.2.xfrom
pgjones:2.2.x

Conversation

@pgjones
Copy link
Member

@pgjones pgjones commented Jul 27, 2022

Closes #2471

Checklist:

  • Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
  • Add or update relevant docs, in the docs folder and in code.
  • Add an entry in CHANGES.rst summarizing the change and linking to the issue.
  • Add .. versionchanged:: entries in any relevant code docs.
  • Run pre-commit hooks and fix any issues.
  • Run pytest and tox, no tests failed.

Only static parts that are more than a `/` should count towards the
weighting, as they influence the part for matching. This prevents
`/<path:p>/<a>/<b>` matching before `/<path:p>/b` as only the latter
rule should have a static weighting as it is the only rule that has a
static part.
@davidism davidism added this to the 2.2.1 milestone Jul 27, 2022
@davidism davidism merged commit cdee5ce into pallets:2.2.x Jul 27, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants