Page MenuHomePhabricator

Fix an issue where entering the same Owners path for two repositories would incorrectly de-dupe the path
ClosedPublic

Authored by epriestley on May 1 2018, 1:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 12:52 AM
Unknown Object (File)
Mon, Nov 18, 12:44 PM
Unknown Object (File)
Wed, Nov 13, 7:20 PM
Unknown Object (File)
Sat, Nov 9, 9:27 PM
Unknown Object (File)
Wed, Nov 6, 3:51 AM
Unknown Object (File)
Oct 25 2024, 2:41 PM
Unknown Object (File)
Oct 21 2024, 1:46 AM
Unknown Object (File)
Oct 20 2024, 10:54 AM
Subscribers
None

Details

Summary

Ref T13130. See https://discourse.phabricator-community.org/t/unable-to-create-owners-package-with-same-path-in-multiple-repositories/1400/1.

When you edit paths in Owners, we deduplicate similar paths, like /x/y and /x/y/. However, this logic currently only examines the paths, and incorrectly deduplicates the same path in different repositories.

Instead, consider the repository before deduplicating.

Test Plan
  • Edited an Owners package and added the path "/" in two different repositories.
  • Before: only one surived the edit.
  • After: both survived.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable