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

Read the collection config in the deploy webview #2993

Conversation

james-wallis
Copy link
Contributor

@james-wallis james-wallis commented Mar 17, 2021

#2948 describes a bug where when using remote workspaces the collection file is being chosen on the users desktop but when the smart contract is deployed, we try to find it on the remote computer.

Reading the collection config file on the webview side should fix this issue (as opposed to passing its path to the extension and reading it there).

Signed-off-by: James Wallis j@wallis.dev

Cypress use ESNext lib inline with UI compiler

Signed-off-by: James Wallis <j@wallis.dev>
@james-wallis james-wallis force-pushed the 2948-read-collections-clientside-2 branch from f1d5e4f to 7f3c22f Compare March 18, 2021 14:58
@james-wallis james-wallis changed the title Read the collection config in the deploy webview 2 Read the collection config in the deploy webview Mar 18, 2021
@james-wallis
Copy link
Contributor Author

I've been able to test this using a private TypeScript smart contract generated before we moved to use implicit collections in generator-fabric. Everything looks good.
Actions tested (2 Org network):

  • Submit createMyPrivateAsset
  • Evaluate readMyPrivateAsset
  • Switch to org 2 and perform a verify it exists

I'll attach the contract here for the reviewer.
typescript-with-collection-file-2021.zip

@james-wallis james-wallis marked this pull request as ready for review March 19, 2021 14:16
@Jakeeyturner Jakeeyturner self-requested a review March 23, 2021 11:38
@sonarcloud
Copy link

sonarcloud bot commented Mar 23, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
6.3% 6.3% Duplication

@james-wallis james-wallis merged commit dcb363c into IBM-Blockchain:master Mar 23, 2021
@james-wallis james-wallis deleted the 2948-read-collections-clientside-2 branch March 23, 2021 17:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants