Skip to content

Add support for query parameters in path matching#13

Merged
stevekinney merged 3 commits intomainfrom
improve-path-matching
Jul 20, 2021
Merged

Add support for query parameters in path matching#13
stevekinney merged 3 commits intomainfrom
improve-path-matching

Conversation

@stevekinney
Copy link
Copy Markdown
Contributor

What was changed

Adds support for query parameters when determining if one path is a match or child of the other.

Why?

When we support query parameters for filtering, we're going to want to have our active links still work. This is probably an edge case, but an easy enough fix.

Comment thread src/lib/utilities/path-matches.test.ts Outdated
expect(pathMatches('/workflows?query=param', '/queries')).toBe(false);
});

it('should query params ignore do not match and the paths match', () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo?

Suggested change
it('should query params ignore do not match and the paths match', () => {
it('should ignore query params present in both paths and the paths match', () => {

Comment thread src/lib/utilities/path-matches.test.ts Outdated
);
});

it('should query params ignore do not match and the paths do not match', () => {
Copy link
Copy Markdown
Contributor

@feedmeapples feedmeapples Jul 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo?

@stevekinney stevekinney merged commit 44afb33 into main Jul 20, 2021
@stevekinney stevekinney deleted the improve-path-matching branch July 20, 2021 15:56
Alex-Tideman added a commit that referenced this pull request Apr 2, 2026
Implement Tier 1 detections from existing data (#9, #11, #13, #15, #19,
#23, #35) and Tier 2 detections from event history scanning (#8, #12,
#26, #27, #28, #29, #30). Adds detectEventHistoryErrors with single-pass
scanning and updates getApplicableCommonErrors to accept optional event
history. All 35 error definitions now have active detection logic.
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