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
F14058296: D19184.diff
Sun, Nov 17, 10:46 AM
F13999568: D19184.diff
Thu, Oct 24, 3:39 PM
Unknown Object (File)
Oct 9 2024, 9:07 AM
Unknown Object (File)
Oct 6 2024, 4:31 PM
Unknown Object (File)
Oct 6 2024, 12:39 PM
Unknown Object (File)
Sep 6 2024, 2:42 AM
Unknown Object (File)
Sep 5 2024, 5:59 AM
Unknown Object (File)
Aug 29 2024, 3:04 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.