-
Notifications
You must be signed in to change notification settings - Fork 687
GP - Post migration validation feature #29395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
GP - Post migration validation feature #29395
Conversation
|
Issue #579005 is not valid. Please make sure you link an issue that exists, is open and is approved. |
Apps/US/HybridGP_US/app/src/Codeunits/GPUSMigrationValidator.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/US/HybridGP_US/app/src/Codeunits/GPUSMigrationValidator.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/US/HybridGP_US/app/src/Codeunits/GPUSMigrationValidator.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/US/HybridGP_US/app/src/Codeunits/GPUSMigrationValidator.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/US/HybridGP_US/app/src/Codeunits/GPUSMigrationValidator.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/US/HybridGP_US/app/src/Codeunits/GPUSMigrationValidator.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/pages/CompanyMigrationStatus.Page.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/pages/CompanyMigrationStatus.Page.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/pages/IntelligentCloudStatFactbox.Page.al
Show resolved
Hide resolved
Apps/W1/HybridGP/app/src/codeunits/GPMigrationValidator.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridGP/app/src/codeunits/GPMigrationValidator.Codeunit.al
Outdated
Show resolved
Hide resolved
…Product Type lookup. Updated Codeunit Id.
Apps/W1/HybridBaseDeployment/app/src/codeunits/HybridCloudManagement.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/codeunits/HybridCloudManagement.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/tables/MigrationValidationBuffer.Table.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/tables/MigrationValidationBuffer.Table.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridGP/app/src/pages/IntelligentCloudExtension.PageExt.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/codeunits/MigrationValidatorWarning.Codeunit.al
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/codeunits/MigrationValidation.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/pages/CompanyMigrationStatus.Page.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/tables/CompanyValidationProgress.Table.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/test/src/DummyMigrationValidator.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/codeunits/HybridCloudManagement.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/codeunits/HybridCloudManagement.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/codeunits/HybridCloudManagement.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/codeunits/MigrationValidation.Codeunit.al
Outdated
Show resolved
Hide resolved
| Clear(CloudMigrationWarning); | ||
| CloudMigrationWarning."Entry No." := 0; | ||
| CloudMigrationWarning."Warning Type" := CloudMigrationWarning."Warning Type"::"Migration Validator"; | ||
| CloudMigrationWarning.Message := CopyStr(StrSubstNo(CloudMigrationWarningErr, MigrationValidatorRegistry."Validator Code", GetLastErrorText()), 1, MaxStrLen(CloudMigrationWarning.Message)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we list these as errors if the codeunit has failed running?
We may need a callstack too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know. I just wanted to reuse the existing Cloud Migration Warning functionality to show a failed validator at least somewhere.
Apps/W1/HybridBaseDeployment/app/src/codeunits/MigrationValidation.Codeunit.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/codeunits/MigrationValidation.Codeunit.al
Outdated
Show resolved
Hide resolved
| // The issue should be reported. | ||
| end; | ||
|
|
||
| procedure ShowWarning(var CloudMigrationWarning: Record "Cloud Migration Warning"): Text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit - The method is not showing the warning it is returning text, the name should be udpated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is part of the interface, I'm conforming to it. Is there a better way to implement it?
Apps/W1/HybridBaseDeployment/app/src/codeunits/MigrationValidatorWarning.Codeunit.al
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/pages/MigrationValidationErrors.Page.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/tables/MigrationValidationError.Table.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/tables/MigrationValidationError.Table.al
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/tables/MigrationValidationTest.Table.al
Outdated
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/tables/ValidationSuiteLine.Table.al
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/tables/ValidationSuiteLine.Table.al
Show resolved
Hide resolved
Apps/W1/HybridBaseDeployment/app/src/tables/MigrationValidationTest.Table.al
Outdated
Show resolved
Hide resolved
nikolakukrika
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left feedback
| end; | ||
|
|
||
| // Normally initialized by this event, but called directly for testing. | ||
| //[EventSubscriber(ObjectType::Codeunit, Codeunit::"Hybrid Cloud Management", OnPrepareMigrationValidation, '', false, false)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented out?
Fixes #579005