Repository navigation
[Extensibility Request] issue 29518: make document logo position extensible - #10540
Marko Aleksandric (AleksandricMarko) wants to merge 7 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Copilot it is necessary to check all places where field is used and to determine if it is needed to update usage |
Co-authored-by: AleksandricMarko <133204513+AleksandricMarko@users.noreply.github.com>
Added a new |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7fd29cf0-bf3b-4d3b-98f6-c1a286323ca8
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 693efd27-6751-4014-aa11-5b769c0c5f41
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 693efd27-6751-4014-aa11-5b769c0c5f41
Good Sense Reviewer - Round 1Recommendation: AcceptWhat this PR doesThis change converts the sales document logo-position setup from a fixed option to an extensible enum in W1 and the existing country-layer copies. It preserves the four stored ordinals and keeps the existing option-based The changed report callers either resolve to the new enum overload or convert to an integer only where the report dataset already stores the position as an integer. The conversion paths keep the existing behavior for the built-in values and allow extensions to add new enum values without replacing the setup field. Problem-solution fitFit: Strong The requested behavior is an extensible setup value for additional logo positions. The field type, enum extensibility, persisted value mapping, and main call sites are updated together without removing the existing public option overload. SuggestionsNone. Risk assessment and necessityRisk: This changes a persisted table field type across several application layers, so upgrade and extension compatibility are the main risks. Matching enum ordinals, assignment compatibility, and the retained option overload limit that risk; no report layout binary or rendered layout is changed. Necessity: The change is needed so extensions can define additional company-logo positions instead of being limited to four fixed option members. The scope is focused on the setup field and its direct consumers.
|
Predrag Maricic (PredragMaricic)
left a comment
There was a problem hiding this comment.
The persisted enum values retain the original option ordinals, all Sales & Receivables Setup layer definitions are converted consistently, and compatibility is preserved through AssignmentCompatibility plus the retained option overload. Explicit conversions cover integer report datasets and RapidStart assignments. No blocking correctness issues found.
|
The enum conversion looks sound, but two missed consumer updates introduce
These are small CI-blocking fixes, not demonstrated runtime defects. Please update these consumers and rerun the affected builds; no replacement field or redesign is needed. |
Use the logo position enum in local APAC test helpers and explicitly convert the Czech report dataset value to Integer. Existing event signatures remain unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 206c3a8e-61b7-42ba-8b98-dba77dc957f2
Good Sense Reviewer - Round 2Recommendation: AcceptWhat this PR doesThe latest commit updates the remaining consumers of the converted logo-position field. The APAC test helpers now use the enum directly, and the Czech report explicitly converts the enum to the integer type already used by its dataset column. These changes remove the implicit enum-to-option/integer conversions without changing the existing report behavior or event signatures. Status of previous suggestionsNone were raised in round 1. New observations (commits since round 1)None. The new changes are consistent with the field conversion and introduce no additional review findings. Risk assessment and necessityRisk: The latest changes are limited to type alignment. The APAC edits are in test helpers, and the Czech report keeps the same integer dataset value by using AsInteger(). Current checks pass, with only expected skipped jobs. Necessity: These updates are needed to remove the remaining conversion warnings after changing the setup field from an option to an extensible enum.
|
|
Summary
Extensions need to support additional company logo placements on sales documents, but the current setup field is a fixed option. This PR converts the field to an extensible, assignment-compatible enum while retaining the existing values and persisted ordinals.
Source issue repository: microsoft/AlAppExtensions; issue number: 29518
Changes Made
Logo Position on Documents- added an extensible enum with the existing logo positions and assignment compatibility.Sales & Receivables Setup.Logo Position on Documents- changed the field from Option to the new enum in W1 and all existing layer counterparts.Fixes AB#616632