diff options
author | 2020-12-10 15:05:24 +0100 | |
---|---|---|
committer | 2020-12-15 14:22:48 +0000 | |
commit | f528d75ebe61acdfc241cb970e95589a54c1caff (patch) | |
tree | 6e247d47701e342c221656436e72708db561d79c /catalog-ui/src/app/ng2/pages/workspace/disribution/distribution.service.ts | |
parent | fee368fe8b658496968f4cdb5024b56217248402 (diff) |
Add artifact status notification message
- Added column Message in consumer's artifacts view with shorten errorReason
- Added full errorReason to artifacts's statuses view
Signed-off-by: Michal Banka <michal.banka@nokia.com>
Issue-ID: SDC-3401
Change-Id: I6d29ad67838010fc2896bb97fa72af07e912ebb2
Diffstat (limited to 'catalog-ui/src/app/ng2/pages/workspace/disribution/distribution.service.ts')
-rw-r--r-- | catalog-ui/src/app/ng2/pages/workspace/disribution/distribution.service.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/catalog-ui/src/app/ng2/pages/workspace/disribution/distribution.service.ts b/catalog-ui/src/app/ng2/pages/workspace/disribution/distribution.service.ts index ed6791c5c1..5cfe8f5e60 100644 --- a/catalog-ui/src/app/ng2/pages/workspace/disribution/distribution.service.ts +++ b/catalog-ui/src/app/ng2/pages/workspace/disribution/distribution.service.ts @@ -101,7 +101,8 @@ export class DistributionService { const artifactObj = { url: artifact.artifactUrl, name: artifact.artifactName, - statuses: artifact.statuses + statuses: artifact.statuses, + errorReason: artifact.errorReason }; artifacts.push(artifactObj); }); @@ -161,6 +162,7 @@ export class DistributionService { url: distributionStatus['url'], time: distributionStatus['timestamp'], status: distributionStatus['status'], + errorReason: distributionStatus['errorReason'] }; @@ -190,7 +192,8 @@ export class DistributionService { // Case where there is a url -> should add its status component.artifacts[artifactPosition].statuses.push({ timeStamp: detailedArtifactStatus.time, - status: detailedArtifactStatus.status + status: detailedArtifactStatus.status, + errorReason: detailedArtifactStatus.errorReason }); } else { // Should update the Component -> status from MSO |