Skip to content

Change action from 'None' to 'Error' for rules AA0073 and AA0237#7402

Draft
SBalslev wants to merge 13 commits intomainfrom
private/sbalslev/reinstanteAA0073+AA0237
Draft

Change action from 'None' to 'Error' for rules AA0073 and AA0237#7402
SBalslev wants to merge 13 commits intomainfrom
private/sbalslev/reinstanteAA0073+AA0237

Conversation

@SBalslev
Copy link
Copy Markdown
Contributor

@SBalslev SBalslev commented Mar 26, 2026

Reinstate AA0073 and AA0237 after platform uptake

Fixes AB#626125

… variables

- Updated test procedures in SecurityGroupsTest.Codeunit.al to replace instances of "SecurityGroupBuffer" with "TempSecurityGroupBuffer" for clarity and consistency.
- Modified test procedures in SecurityGroupsUpgradeTest.Codeunit.al to utilize "TempSecurityGroupBuffer" instead of "SecurityGroupBuffer" for improved readability.
- Refactored translation tests in TranslationTests.Codeunit.al to use "TempTranslationBuffer" in place of "TranslationBuffer" for better variable management.
- Adjusted user settings tests in UserSettingsTests.Codeunit.al to implement "TempUserSettingsRec" instead of "UserSettingsRec" for enhanced code clarity.
…ed codeunits for clarity

- Changed variable names from `FileShareAccount`, `Account`, `AFSDirectoryContent`, `SharePointFile`, etc. to `TempFileShareAccount`, `TempAccount`, `TempAFSDirectoryContent`, `TempSharePointFile`, etc. across various pages and codeunits in Azure File Service, SFTP, SharePoint, and Document Attachments modules.
- Updated procedures to use temporary records for better readability and to avoid potential conflicts.
- Ensured consistent naming conventions for temporary variables to enhance code maintainability.
@github-actions github-actions bot added the AL: Apps (W1) Add-on apps for W1 label Mar 26, 2026
SBalslev and others added 9 commits March 26, 2026 19:51
…th Temp prefix

- EDocE2ETest: EDocImportParameters->TempEDocImportParameters, EDocImportParams->TempEDocImportParams
- EDocEmailTests: Account->TempAccount (Email Account global var)
- EDocLinkToExistingTest: EDocImportParameters->TempEDocImportParameters
- EDocProcessTest: EDocImportParameters->TempEDocImportParameters, EDocImportParams->TempEDocImportParams
- EDocumentStructuredTests: EDocImportParameters->TempEDocImportParameters
- NoSeriesCopilotAccuTests: NoSeriesGeneration->TempNoSeriesGeneration, NoSeriesGenerationDetail->TempNoSeriesGenerationDetail

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…SubscriptionBilling

- ErrorMessageExtensibilityTests: ErrorHandlingParameters->TempErrorHandlingParameters
- TrialBalanceExcelReports: EXRTrialBalanceBuffer->TempEXRTrialBalanceBuffer, TrialBalanceData->TempTrialBalanceData (7 procedures, 102 references)
- ServiceCommitmentTest: OverdueServiceCommitments->TempOverdueServiceCommitments

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- ShpfyFilterMgtTest: TestFields->TempTestFields
- ShpfyJsonHelperTest: TestFields->TempTestFields, TestFields2->TempTestFields2 (2 procedures)
- ShpfySuggestPaymentTest: SuggestPayment->TempSuggestPayment (4 procedures)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…leanup

Commit 7a2cc4e removed UnpublishExtension from the test cleanup, leaving
CRM Sync Designer published (but uninstalled) after each test. On subsequent
test runs, CommitGeneration() fails with AL0155 because the previously
published extension already defines the same fields in MS_CRM_Mock ProxyExt.

Fix: add UnpublishExtension() back using Published Application (the correct
record for published-but-possibly-uninstalled extensions) and call it from
Initialize() to ensure clean state before each test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…n Initialize()

UninstallExtension() only removes extensions from the installed apps list but
leaves them published. When CommitGeneration() runs in a subsequent test (or
pipeline re-run on a non-fresh environment), SaveCRMDesigner() creates a new
package alongside the still-published old one, and AL0155 fires because both
define the same fields in MS_CRM_Mock ProxyExt.

Fix: in Initialize(), after uninstalling, also unpublish all CRM Sync Designer
extensions using Published Application (the correct table for published but
possibly-uninstalled extensions) before calling ClearGeneration(). This ensures
a truly clean slate regardless of prior test run state.

This is distinct from the previously removed UnpublishExtension() procedure:
- Uses Published Application (not NAV App Installed App after uninstall)
- Inline in Initialize() rather than a separate procedure
- Placed before ClearGeneration() so the state is clean when it runs

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant