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

Ask for api key and secret when importing nodes from Ops Tools #1691

Merged
merged 1 commit into from
Dec 2, 2019

Conversation

lquintai
Copy link
Contributor

@lquintai lquintai commented Nov 26, 2019

closes #1684

User will be asked to provide a url, api key and api secret.

If unable to connect, user will be asked if they want to provide a CA certificate chain or to proceed insecurely.

Also fixes the orderer selection: if the user selects any orderer node, all orderer nodes will have hidden = false.

Signed-off-by: Leonor Quintais lquintai@uk.ibm.com

@lquintai lquintai changed the title Ask for api key and password when importing nodes from Ops Tools Ask for api key and secret when importing nodes from Ops Tools Nov 26, 2019
@lquintai lquintai force-pushed the OpsTtool-apiAndSecret branch 4 times, most recently from 368edde to 4da1eb8 Compare December 2, 2019 14:40
@lquintai lquintai self-assigned this Dec 2, 2019
@lquintai lquintai marked this pull request as ready for review December 2, 2019 15:27
Certificates: ['pem']
}
};
const certificatePath: vscode.Uri = await UserInputUtil.browse('Enter a file path to the collection configuration', quickPickItems, browseOptions, true) as vscode.Uri;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should change the message shown to the user (as they aren't entering a file path, but choosing a file instead?) to something like:
Select the certificate (pem) you wish to add

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted :)

import { FabricEnvironment } from '../fabric/FabricEnvironment';
import { ExtensionCommands } from '../../ExtensionCommands';
import { FileSystemUtil } from '../util/FileSystemUtil';
import Axios from 'axios';
import { ExtensionUtil } from '../util/ExtensionUtil';
import https = require('https');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be imported like other node modules

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed.

Signed-off-by: Leonor Quintais <lquintai@uk.ibm.com>
Copy link
Contributor

@cazfletch cazfletch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lquintai lquintai added this to the Sprint 22 milestone Dec 2, 2019
@lquintai lquintai merged commit 1415e11 into IBM-Blockchain:OpsTtool Dec 2, 2019
@lquintai lquintai deleted the OpsTtool-apiAndSecret branch December 2, 2019 16:42
au-shah pushed a commit that referenced this pull request Dec 3, 2019
* issue 1538 - add environment URL and Key (#1557)

Signed-off-by: Leonor Quintais <lquintai@uk.ibm.com>
Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>

* Added functionality to allow API keys & url to be stored along with relevant tests (#1618)

Signed-off-by: Akshat Shah <akshatshah@akshats-mbp.hursley.uk.ibm.com>
Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>

* Ask user to select which nodes should be imported from Ops Tool (#1651)

Signed-off-by: Leonor Quintais <lquintai@uk.ibm.com>
Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>

* Add 'hidden' field to FabricNode - write all nodes to file, but present only non-hidden nodes to user (#1680)

Signed-off-by: Leonor Quintais <lquintai@uk.ibm.com>
Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>

* Moved import method to addEnvironmentCommand & fixed broken tests (#1700)

Signed-off-by: Akshat Shah <akshatshah@akshats-mbp.hursley.uk.ibm.com>
Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>

* Ask for api key and secret when importing nodes from Ops Tools (#1691)

Signed-off-by: Leonor Quintais <lquintai@uk.ibm.com>
Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>

* Merge master into ops tools branch

Merge master and fix conflicts

Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>
cazfletch added a commit that referenced this pull request Feb 4, 2020
… relevant tests (#1618)

Signed-off-by: Akshat Shah <akshatshah@akshats-mbp.hursley.uk.ibm.com>
Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>

* Ask user to select which nodes should be imported from Ops Tool (#1651)

Signed-off-by: Leonor Quintais <lquintai@uk.ibm.com>
Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>

* Add 'hidden' field to FabricNode - write all nodes to file, but present only non-hidden nodes to user (#1680)

Signed-off-by: Leonor Quintais <lquintai@uk.ibm.com>
Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>

* Moved import method to addEnvironmentCommand & fixed broken tests (#1700)

Signed-off-by: Akshat Shah <akshatshah@akshats-mbp.hursley.uk.ibm.com>
Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>

* Ask for api key and secret when importing nodes from Ops Tools (#1691)

Signed-off-by: Leonor Quintais <lquintai@uk.ibm.com>
Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>
cazfletch added a commit that referenced this pull request Feb 14, 2020
… relevant tests (#1618)

Signed-off-by: Akshat Shah <akshatshah@akshats-mbp.hursley.uk.ibm.com>
Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>

* Ask user to select which nodes should be imported from Ops Tool (#1651)

Signed-off-by: Leonor Quintais <lquintai@uk.ibm.com>
Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>

* Add 'hidden' field to FabricNode - write all nodes to file, but present only non-hidden nodes to user (#1680)

Signed-off-by: Leonor Quintais <lquintai@uk.ibm.com>
Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>

* Moved import method to addEnvironmentCommand & fixed broken tests (#1700)

Signed-off-by: Akshat Shah <akshatshah@akshats-mbp.hursley.uk.ibm.com>
Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>

* Ask for api key and secret when importing nodes from Ops Tools (#1691)

Signed-off-by: Leonor Quintais <lquintai@uk.ibm.com>
Signed-off-by: Caroline Fletcher <cazfletch@gmail.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

Successfully merging this pull request may close these issues.

3 participants