Conversation
- Remove unused 'Do Not Validate' field from Transfer Header table extension - Delete redundant page customizations for Prod. Order Components and Routing Lines - Remove duplicate Routing Link Code visibility override from Routing Lines page extension - Update Subcontracting Manager profile to remove references to deleted customizations Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
There was a problem hiding this comment.
AL Documentation Audit
Documentation gaps were detected in the following apps:
- Subcontracting: 36% documentation coverage
To generate documentation, run /al-docs init or /al-docs update using GitHub Copilot CLI or Claude Code.
This review is for awareness to help keep documentation in sync with code changes. It is okay to dismiss this request.
There was a problem hiding this comment.
Pull request overview
This PR addresses two subcontracting bugs by tightening security around permissions and user-facing errors, and by removing unused profile customizations/fields to reduce maintenance surface in the Subcontracting app.
Changes:
- Removes a legacy, overly broad, publicly assignable permission set and deletes unused page customizations and a redundant pageextension layout override.
- Removes an unused field from the Subcontracting Transfer Header table extension and updates the Subcontracting Manager profile to avoid dangling customization references.
- Adjusts the error label text used when a work center’s subcontractor vendor record cannot be found.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/Apps/W1/Subcontracting/App/src/Profiles/SubcontractingManager.Profile.al | Drops deleted customizations from the Subcontracting Manager profile. |
| src/Apps/W1/Subcontracting/App/src/Profiles/SubcRoutingLines.PageCust.al | Removes an unused page customization for Routing Lines. |
| src/Apps/W1/Subcontracting/App/src/Profiles/SubcProdOrderComponents.PageCust.al | Removes an unused page customization for Prod. Order Components. |
| src/Apps/W1/Subcontracting/App/src/Process/Tableextensions/Transfer/SubcTransferHeader.TableExt.al | Removes the unused “Do Not Validate” field from the Transfer Header extension. |
| src/Apps/W1/Subcontracting/App/src/Process/Pageextensions/Manufacturing/SubcRoutingLines.PageExt.al | Removes a redundant UI visibility override for “Routing Link Code”. |
| src/Apps/W1/Subcontracting/App/src/Process/Codeunits/SubcontractingManagement.Codeunit.al | Updates the missing-vendor error label text in GetSubcontractor(). |
| src/Apps/W1/Subcontracting/App/src/Permissions/SubcPermissionset.PermissionSet.al | Deletes the legacy permission set object. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…c message Agent-Logs-Url: https://github.com/microsoft/BCApps/sessions/31ac0474-5273-4293-83ab-3f028a0a1af7 Co-authored-by: ChethanT <[email protected]>
…cted Comment Agent-Logs-Url: https://github.com/microsoft/BCApps/sessions/cb3eebad-0c88-4d6e-9c2c-5d231dbfe0e2 Co-authored-by: ChethanT <[email protected]>
AnalysisScope vs. claim mismatch. The PR is titled and framed as a security fix for AB#623644 plus dead-code cleanup for AB#620646. The actual changes are all defensible cleanup, but the "security" framing of two of them is overstated:
Permissionset deletion ( Field deletion Page customization / page-extension layout removals. Verified safe:
Test coverage. None added. Acceptable for pure removals, but a single profile-load + permissionset-coverage assertion would harden the cleanup. Recommendation: Accept with Suggestions
None of these are blockers; code-level changes are safe per verification. The asks are about PR description accuracy and AL obsoletion convention. |
Summary
SubcPermissionset) that granted unrestricted tabledata access and was publicly assignable; sanitized error message inGetSubcontractor()that exposed vendor and work center numbersSubcProdOrderComponents,SubcRoutingLines), removed unusedDo Not Validatefield from Transfer Header table extension, removed duplicateRouting Link Codevisibility override from Routing Lines page extension, and updated Subcontracting Manager profile to remove references to the deleted customizationsTest plan
Routing Link CodeandLocation Codevisibility on Prod. Order Components and Routing Lines pages is not regressedSubcontractEditandSubcontractReadpermission sets remain functional via D365 BUS FULL ACCESS extension🤖 Generated with Claude Code
Fixes AB#623644 & AB#620646