NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io



async validateContainerParts(containerParts) {
runInAction(() => {
this.appState.isFetching = true;
});
try {
let data;
const params = {
containerParts,
revisionCode: this.revision.value
};
if (this.isValidatingByFeed) {
data = (await api.validateContainerPartsByFeed(params)).data;
} else {
const formData = new FormData();
formData.append('file', this.file);
data = (await api.validateContainerPartsByFile(params, formData)).data;
}
runInAction(() => {
this.originalTableData = data;
});
const {summary, revision, validations} = data;
const summaryStatistics = map(summary, (item, key) => ({
key: key,
title: Constants.rocSetupStatus[key]?.label,
value: item
}))
.filter(ite => ite.key !== 'totalContainerCount')
.sort((a, b) => Constants.rocSetupStatus[b.key]?.ranking - Constants.rocSetupStatus[a.key]?.ranking);

const tableFilterOptions = validations.reduce(
(res, val) => {
val.levels.forEach(level => {
res.status.add(level.status);
if (level.level) res.level.add(level.level);
});
return res;
},
{
status: new Set(),
level: new Set()
}
);
data.push({
summary: {
noConflict: 1,
warning: 1,
error: 15,
totalContainerCount: 3
},
revision: {
revisioncode: 'R20230825',
title: 'QAKBWRevision1',
description: 'Revision for KBW',
timestamp: 1693030980000,
sourceDC: 'aws.us-west-2',
isCompleted: false,
isProdVersion: false,
isApproved: false,
isInProgress: false,
isRevisionLocked: false
},
validations: [
{
name: 'ROC container for No conflicts',
number: 'QA_ROC_NOCONFLICT',
sapContainerPartNumber: 'C0101',
levels: [
{
status: 'No Conflict'
}
]
},
{
name: 'ROC validation for different error messages',
number: 'QA_ROC_IPADVAL3',
sapContainerPartNumber: 'C0101',
levels: [
{
status: 'Error',
level: 'Retail Online Container',
entity: 'IsGroupAnchor',
validationMessage:
'isGroupAnchor has not been set on any Option Group in the ROContainer. This setting is required on an Option Group in the ROContainer. Anchor Group From KDM/KAM Source Data: G000000011'
},
{
status: 'Error',
level: 'Retail Online Container',
entity: 'SapGroupId',
validationMessage:
'Expected SAP Group ID missing from RO Container. Missing SAP Group IDs: [G000000012, G000000013, G000000011]'
},
{
status: 'Warning',
level: 'Option Group',
entity: 'SapGroupId',
validationMessage:
'sapGroupID has not been set on Option Group [qa_roc__ipadcable1]. Check to ensure this is intentional.'
},
{
status: 'Error',
level: 'Option Group',
entity: 'SapGroupId',
validationMessage:
'SapGroupID set on Option Group [qa_roc_ipad, qa_roc_ipadcover, qa_roc_ipadcable] does not exist or does not match mapping in KDM/KAM Source Data.'
},
{
status: 'Error',
level: 'Option Value',
entity: 'OptionValue',
validationMessage:
'Option Values(s) set in Option Group [qa_roc_ipad] do not match mapping in KDM/KAM Source Data. Mismatched Option Values: [QA2N3, QA2K3]'
},
{
status: 'Error',
level: 'Option Value',
entity: 'OptionValue',
validationMessage:
'Option Values(s) set in Option Group [qa_roc_ipadcover] do not match mapping in KDM/KAM Source Data. Mismatched Option Values: [ME2R1, ME1D1]'
},
{
status: 'Error',
level: 'Option Value',
entity: 'OptionValue',
validationMessage:
'Option Values(s) set in Option Group [qa_roc_ipadcable] do not match mapping in KDM/KAM Source Data. Mismatched Option Values: [QR2C1, QR2B1]'
},
{
status: 'Error',
level: 'Option Value',
entity: 'OptionValue',
validationMessage:
'Option Values(s) set in Option Group [qa_roc__ipadcable1] do not match mapping in KDM/KAM Source Data. Mismatched Option Values: [ME2R1, ME2S1]'
},
{
status: 'Error',
level: 'Option Value',
entity: 'OptionValue',
validationMessage:
'Option Value(s) is duplicated across multiple Option Groups [qa_roc_ipadcover, qa_roc__ipadcable1] in the same RO Container. Duplicated Option Values: [ME2R1]'
}
]
},
{
name: 'ROC validation for IsAnchorGroup',
number: 'QA_ROC_IPADVAL4',
sapContainerPartNumber: 'C0101',
levels: [
{
status: 'Error',
level: 'Retail Online Container',
entity: 'IsGroupAnchor',
validationMessage:
'isGroupAnchor has been set on more than one Option Group [qa_roc_ipad1, qa_roc_ipadcable2] in the ROContainer.'
},
{
status: 'Error',
level: 'Retail Online Container',
entity: 'IsGroupAnchor',
validationMessage:
'isGroupAnchor has been set on a different Option Group [qa_roc_ipadcable2] in the ROContainer than specified in KDM/KAM Source Data. Anchor Group From KDM/KAM Source Data: G000000011'
},
{
status: 'Error',
level: 'Option Group',
entity: 'OptionValue',
validationMessage:
'Expected Option Value(s) [QA2N3, QA2K3] missing from Option Group [qa_roc_ipad1] in the ROContainer.'
},
{
status: 'Error',
level: 'Option Group',
entity: 'OptionValue',
validationMessage:
'Expected Option Value(s) [ME2R1, ME2S1, ME1D1] missing from Option Group [qa_roc_ipadcover1] in the ROContainer.'
},
{
status: 'Error',
level: 'Option Group',
entity: 'OptionValue',
validationMessage:
'Expected Option Value(s) [ME2R1, ME1D1] missing from Option Group [qa_roc_ipadcover2] in the ROContainer.'
},
{
status: 'Error',
level: 'Option Group',
entity: 'OptionValue',
validationMessage:
'Expected Option Value(s) [QR2C1, QR2B1] missing from Option Group [qa_roc_ipadcable2] in the ROContainer.'
},
{
status: 'Error',
level: 'Option Group',
entity: 'SapGroupId',
validationMessage:
'sapGroupId [G000000012] is duplicated across multiple Option Groups in the same RO Container. Duplicated Option Groups: [qa_roc_ipadcover1, qa_roc_ipadcover2]'
}
]
}
]
});

runInAction(() => {
this.summary = {...summary, summaryStatistics, revision};
this.tableData = validations;
this.tableFilterOptions = tableFilterOptions;
this.displaySummary = true;
this.appState.isFetching = false;
});
} catch (error) {
this.appState.handleNotification({
error,
message: 'Data import failed. Please retry.'
});
runInAction(() => {
this.appState.isFetching = false;
});
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.