Page MenuHomePhabricator

Treat Owners paths like "/src/backend" and "/src/backend/" identically
ClosedPublic

Authored by epriestley on Mar 7 2018, 4:14 AM.
Tags
None
Referenced Files
F18825905: D19184.id45946.diff
Fri, Oct 24, 12:58 AM
F18741597: D19184.id.diff
Oct 2 2025, 2:45 PM
F18739807: D19184.diff
Oct 1 2025, 11:01 PM
F18733755: D19184.id.diff
Sep 30 2025, 10:41 PM
F18672398: D19184.diff
Sep 25 2025, 7:27 AM
F18640959: D19184.diff
Sep 18 2025, 7:21 PM
F18640939: D19184.diff
Sep 18 2025, 7:15 PM
F18600545: D19184.diff
Sep 13 2025, 10:00 AM
Subscribers
None

Details

Summary

Depends on D19183. Ref T11015. Currently, adding a trailing slash works great and omitting it mysteriously doesn't work.

Store a normalized version with an unconditional trailing slash for the lookup logic to operate on, and a separate display version which tracks what the user actually typed.

Test Plan
  • Entered "/src/main.c", "/src/main.c/", saw them de-duplicate.
  • Entered "/src/main.c", saw it stay that way in the UI but appear as "/src/main.c/" internally.
  • Added a rule for "/src/applications/owners" (no slash), created a revision touching paths in that directory, saw Owners fire for it.
  • Changed the display value of a path only ("/src/main.c" to "/src/main.c/"), saw the update reflected in the UI without any beahvioral change.

Diff Detail

Repository
rP Phabricator
Branch
opath4
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19759
Build 26766: Run Core Tests
Build 26765: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Mar 7 2018, 4:31 AM
This revision was automatically updated to reflect the committed changes.