The patch: https://gerrit.wikimedia.org/r/#/c/166283/
The requirements:
- Single ticket URLs to map:
- /bugzilla.wikimedia.org/23223
- /bugzilla.wikimedia.org/show_bug.cgi?id=23223
- /bugs.wikimedia.org/23223
- /bugs.wikimedia.org/show_bug.cgi?id=23223
- Links that should go to the Phabricator homepage https://phabricator.wikimedia.org/ :
- //(bugs|bugzilla).wikimedia.org/enter_bug.cgi (which can have additional URL parameters to ignore)
- //(bugs|bugzilla).wikimedia.org/index.cgi
- //(bugs|bugzilla).wikimedia.org/query.cgi (which can have additional URL parameters to ignore)
- //(bugs|bugzilla).wikimedia.org/reports.cgi (which can have additional URL parameters to ignore)
- //(bugs|bugzilla).wikimedia.org/report.cgi (which can have additional URL parameters to ignore)
- //(bugs|bugzilla).wikimedia.org/chart.cgi (which can have additional URL parameters to ignore)
- //(bugs|bugzilla).wikimedia.org/describecomponents.cgi (which can have additional URL parameters to ignore)
- //(bugs|bugzilla).wikimedia.org/attachment.cgi?id=12345 (rather uncommon plus we won't keep the numbering scheme. Still possible to query for the attachment ID manually in Phabricator though.)
- //bug-attachment.wikimedia.org/attachment.cgi (which can have additional URL parameters to ignore)
- //(bugs|bugzilla).wikimedia.org/buglist.cgi (always with additional URL parameters) will redirect to https://bugzilla.wikimedia.org/buglist.cgi while keeping its URL parameters intact. The banner (T1234) will tell people that what they see is outdated. More info, just for the records: Such URLs can have dozens of URL parameters, e.g. using buglist.cgi with a bug_id parameter plus a number of bug IDs with commata inbetween (to get a static list of tickets listed). Queries for a specific status (open tickets) in some specific products/components are common but we won't have a mapping between Bugzilla products and components and Phab projects somewhere publicly stored, as URL parameters are fundamentally different in Phabricator. This also applies to Bugzilla's "saved searches" functionality - people will still be able to see and edit their search parameters in old-bugzilla and try to convert them manually into Phabricator.