Skip to content

Commit

Permalink
Merge pull request #747 from ckpaliwal/issue-6113
Browse files Browse the repository at this point in the history
Certificate expire warning issue fix for imported component
  • Loading branch information
ckpaliwal authored Jun 18, 2024
2 parents 4a291ff + 7935ffa commit bee8220
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,10 @@ class ImportPeerModal extends React.Component {
{
name: 'location',
required: false,
},,
{
name: 'node_ou',
required: false,
},
]}
onChange={this.onChange}
Expand Down
3 changes: 3 additions & 0 deletions packages/apollo/src/rest/PeerRestApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@ class PeerRestApi {
if (!_.get(exportedPeer, 'msp.tlsca.root_certs')) {
_.set(exportedPeer, 'msp.tlsca.root_certs', [some_peer_record.tls_ca_root_cert || some_peer_record.pem]);
}
if(some_peer_record.node_ou) {
exportedPeer.node_ou = some_peer_record.node_ou;
}
return NodeRestApi.importComponent(exportedPeer);
});
return Promise.all(all);
Expand Down
5 changes: 5 additions & 0 deletions packages/apollo/src/utils/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@ const Helper = {
tls_cert: _.get(node, 'msp.component.tls_cert'),
tls_ca_root_cert: _.get(node, 'msp.tlsca.root_certs[0]'),
};

if(node.node_ou) {
exportNode.node_ou = node.node_ou;
}

if (zipExport) {
exportNode.id = node.id;
exportNode.associatedIdentityName = node.associatedIdentityName;
Expand Down
2 changes: 2 additions & 0 deletions packages/athena/json_docs/json_validation/ibp_openapi_v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9389,6 +9389,8 @@ components:
$ref: '#/components/schemas/operations_url_peer'
tags:
$ref: '#/components/schemas/tags'
node_ou:
$ref: '#/components/schemas/node_ou'

msp_crypto_field:
type: object
Expand Down

Large diffs are not rendered by default.

0 comments on commit bee8220

Please sign in to comment.