Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Improve Fabric Envrionment option to "Add an IBM Blockchain Platform network" URL handling #1980

Closed
m-g-k opened this issue Feb 24, 2020 · 0 comments
Assignees
Milestone

Comments

@m-g-k
Copy link

m-g-k commented Feb 24, 2020

The new create a Fabric Envrionment option to "Add an IBM Blockchain Platform network" currently requires a user to enter a console URL, such as:

https://ibp2-ibpconsole-console.ocp-cluster-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-0000.xx-xx.containers.appdomain.cloud

However it is actually not easy to be on a screen where this is a full url that can be cut and pasted directly. For instance there will usually be a /nodes or /wallets or /users path suffix etc.

Currently if you use a URL with any path suffix the environment fails to be created. Therefore, the user has to know to delete the "path" suffix from the URL and the error message is not helpful here and this does not appear to be mentioned in the readme either that I could see.

There are 3 error messages in this case (with a path):
1: "Failed to add a new environment: data.filter is not a function"
2: "Error filtering nodes: data.filter is not a function"
3: "Failed to acquire nodes from https://ibp2-ibpconsole-console.ocp-cluster-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-0000.xx-xx.containers.appdomain.cloud/channels, with error data.filter is not a function"

Therefore, it would be better if VS Code could automatically remove any path in the URL before trying to connect to the console to prevent silly errors and give a better experience.

@cazfletch cazfletch added this to the Sprint 27 milestone Mar 5, 2020
@cazfletch cazfletch added the next label Mar 5, 2020
lquintai added a commit to lquintai/blockchain-vscode-extension that referenced this issue Mar 9, 2020


Signed-off-by: Leonor Quintais <lquintai@uk.ibm.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants