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
Unknown Object (File)
Sat, Dec 14, 2:43 PM
Unknown Object (File)
Sat, Dec 7, 10:10 PM
Unknown Object (File)
Fri, Dec 6, 7:04 AM
Unknown Object (File)
Wed, Dec 4, 12:36 AM
Unknown Object (File)
Sat, Nov 30, 6:51 AM
Unknown Object (File)
Thu, Nov 28, 4:48 PM
Unknown Object (File)
Tue, Nov 26, 12:58 PM
Unknown Object (File)
Mon, Nov 25, 7:57 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
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.