Skip to content

Conversation

@cohosh
Copy link

@cohosh cohosh commented Aug 14, 2020

The Gitlab API provides a more intuitive way to fetch ticket information
and urls. This change allows developers to reference tickets from projects with
simply projectname#ticketnumber.

This has several advantages:

  • It's been a pain to have to type of e.g. 'tpo/anti-censorship/pluggable-transports/snowflake#40001' to reference new snowflake tickets. This allows developers to just type out 'snowflake#40001'. If there is (for some reason) a name collision, it will raise an IndexError, forcing the developer to specify a more specific path

  • The Gitlab API is a more sustainable way of determining ticket titles, status, and urls. If, for some reason, Gitlab changes their WebUI we don't have to update the ticketbot.

  • This fixes another current issue where a user will specify an invalied path+ticket number and ticketbot just returns the Gitlab sign in page.

Note: typing tor#ticketnumber now triggers only the new gitlab provider, and not the legacy provider. IMO this is okay, because most people don't use that layout to refer to non core/tor tickets. If this is a problem, we can revert the default_re for the legacy provider and the bot will list both links.

The Gitlab API provides a more intuitive way to fetch ticket information
and urls. This change allows developers to reference tickets from projects with
simply projectname#ticketnumber.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant