Skip to content

Comments

[26.x] Insert Retention Policy Allowed Tables when open page instead#4280

Merged
haoranpb merged 2 commits intoreleases/26.xfrom
bugs/593445-26x
Jul 31, 2025
Merged

[26.x] Insert Retention Policy Allowed Tables when open page instead#4280
haoranpb merged 2 commits intoreleases/26.xfrom
bugs/593445-26x

Conversation

@haoranpb
Copy link
Contributor

@haoranpb haoranpb commented Jul 30, 2025

Summary

Backporting ##4178 and #4236 , this is causing more problems in PROD

Work Item(s)

Fixes AB#593448 AB#593445 AB#593713

haoranpb added 2 commits July 30, 2025 13:06
#### Summary <!-- Provide a general summary of your changes -->

Subscribing to the `OnAfterLogin` trigger is causing problems for newly
created companies. Moving the Allowed Tables insertion to OnOpenPage of
`RetentionPolicySetupList.Page.al` instead.

Decided to throw the event `OnRefreshAllowedTables` because we have to
force install allowed tables anyway. Currently, we use upgrade tag to
check if it's InitialSetup, but that won't help us anymore because all
upgrade tags will be set after company initialization.

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#581650](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/581650)
#### Summary <!-- Provide a general summary of your changes -->

Set upgrade tags for newly created companies. Previously, this was not
an issue because the records are inserted during `OnAfterLogin`, but
that is no longer the case after #4178

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#592991](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/592991)
@haoranpb haoranpb requested a review from a team as a code owner July 30, 2025 11:08
@github-actions github-actions bot added this to the Version 26.5 milestone Jul 30, 2025
@haoranpb haoranpb merged commit 330ffe0 into releases/26.x Jul 31, 2025
28 checks passed
@haoranpb haoranpb deleted the bugs/593445-26x branch July 31, 2025 06:40
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.

3 participants