Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug - prevent adding duplicate repos #416

Open
4 tasks
texastoast opened this issue May 21, 2024 · 0 comments
Open
4 tasks

Bug - prevent adding duplicate repos #416

texastoast opened this issue May 21, 2024 · 0 comments
Labels

Comments

@texastoast
Copy link
Contributor

texastoast commented May 21, 2024

Background

When attempting to add a new token to the IFP channel, I added a new repo with the same org_name and repo_name as a previously existing entry. The capitalization of the org name was different, but that was all (eg InFieldPro/infield_pro vs infieldpro/infield_pro). This caused Slax to stop working in the channel.

Need to prevent adding two repos with the same name, possibly only if they have the same project ID, but this should be tested, as I'm not sure the project ID is being used anymore?

Steps to reproduce:

  • Using /token, add or find a repo with an expired or invalid token.
  • Using /token, add another new repo with the same org/repo_name with a valid token.
  • Slax stops responding to requests for that org/repo_name.

Scenario: receive an error when adding a new repo with the same name

  • Given I'm a user adding a repo to Slax using the /token command
  • When I enter a new repo with the same org/repo name and a valid token as an existing repo
  • Then I receive an error that I have added a duplicate
  • And I'm not able to add the duplicate
@texastoast texastoast added the bug label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant