Page MenuHomePhabricator

Fix project hashtag bugs: duplicate tags, uppercase tags
ClosedPublic

Authored by epriestley on Dec 24 2015, 12:07 PM.
Tags
None
Referenced Files
F18888115: D14870.id35946.diff
Fri, Nov 7, 7:00 AM
F18866765: D14870.diff
Mon, Nov 3, 7:13 PM
F18754423: D14870.id.diff
Oct 4 2025, 10:59 PM
F18748458: D14870.diff
Oct 3 2025, 10:44 PM
F18704012: D14870.id35946.diff
Sep 28 2025, 5:55 AM
F18618223: D14870.diff
Sep 14 2025, 11:28 PM
F18499696: D14870.diff
Sep 4 2025, 8:01 PM
F18087059: D14870.id35946.diff
Aug 6 2025, 2:07 AM
Subscribers
None

Details

Summary

Ref T8509. This fixes three issues:

  • Adding a slug like UPPERCASE would not give you a normalized slug. (Now: normalizes as uppercase.)
  • Adding a slug like UPPERCASE would allow you to give two different projects the different tags UPPERCASE and uppercase (and UpPeRcAsE, etc). (Now: second tag is rejected as a duplicate.)
  • Adding multiple identical or similar slugs would produce a duplicate key exception. (Now: ignores the duplicates.)
Test Plan
  • Added test coverage.
  • Made tests pass.
  • Hit these cases in the UI.

Diff Detail

Repository
rP Phabricator
Branch
slug1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 9765
Build 11733: Run Core Tests
Build 11732: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Fix project hashtag bugs: duplicate tags, uppercase tags.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Dec 24 2015, 3:30 PM
This revision was automatically updated to reflect the committed changes.