You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the /token command to add a repo, if your repo isn't listed you need to click the create repo button. When you do this, there are 3 fields:
Projects, which is marked as optional
Project name, also marked as optional
Repo name, required
If you leave both "optional" fields blank, you receive an error:
[error] GenServer #PID<0.677.0> terminating
** (ArgumentError) errors were found at the given arguments:
* 1st argument: not a binary
:erlang.binary_to_integer(nil)
(slax 0.0.1) lib/slax_web/websockets/token.ex:80: SlaxWeb.Token.handle_payload/1
...
Filling in either of these optional fields allows the repo to be added. If you leave the Projects field blank and fill in the Project name field, that name appears in the "Projects" selector on future attempts.
It appears that this is an either/or option: either select an existing project or create a new project. However it is not clear from the UI that this is the case and it is also not clear what these project fields are referring to or how they are used.
Scenario: select existing project
Given I'm a user using the /token command to add a repo to Slax
When I select Create Repo in the Token Modal
Then I have the option to select an existing Project
And in the configuration modal I can select an existing Project from the Projects drop down
And I can enter the name of the repo where the Project exists
And once I submit I can select the added Repo in the Token Modal from the Repo drop down
Scenario: create new project
Given I'm a user using the /token command to add a repo to Slax
When I select Create Repo in the Token Modal
Then I have the option to create a new Project
And in the configuration modal I can enter a new Project name
And I can enter the name of the repo where the Project exists
And once I submit I can select the added Repo in the Token modal from the Repo drop down
The text was updated successfully, but these errors were encountered:
The optional tags are added by Slack, not part of the specified config. It implies both fields are optional, when it is actually an either/or situation. Probably need to rethink this UI.
Description
When using the /token command to add a repo, if your repo isn't listed you need to click the create repo button. When you do this, there are 3 fields:
If you leave both "optional" fields blank, you receive an error:
Filling in either of these optional fields allows the repo to be added. If you leave the Projects field blank and fill in the Project name field, that name appears in the "Projects" selector on future attempts.
It appears that this is an either/or option: either select an existing project or create a new project. However it is not clear from the UI that this is the case and it is also not clear what these project fields are referring to or how they are used.
Scenario: select existing project
Scenario: create new project
The text was updated successfully, but these errors were encountered: