Skip to content

Cleaning up PBI report setup on company lifecycle operations + Cleaning Sustainability artifacts#8166

Draft
mynjj wants to merge 4 commits into
mainfrom
features/pbiautdepl3
Draft

Cleaning up PBI report setup on company lifecycle operations + Cleaning Sustainability artifacts#8166
mynjj wants to merge 4 commits into
mainfrom
features/pbiautdepl3

Conversation

@mynjj
Copy link
Copy Markdown
Contributor

@mynjj mynjj commented May 15, 2026

What & why

  • Clean up the setup of Power BI reports after copying a company or environment
  • Removed Sustainability artifacts: Sustainability Power BI artifacts are now owned by the Sustainability app (which is in a different repo)

Linked work

Fixes AB#600448

Joshua Martínez Pineda and others added 3 commits May 13, 2026 14:11
…rface

Subscribe to "PBI Deployment Events".OnAfterDeleteAllDeploymentRecords (new
BaseApp event that fires after the per-company Power BI deployment rows are
wiped on env-copy and Copy Company) and clear the matching "PowerBI Reports
Setup" Report Id / Name pairs.

Replaces the two prior direct subscriptions to "Environment Cleanup"
.OnClearCompanyConfig and Report "Copy Company"
.OnAfterCreatedNewCompanyByCopyCompany — both BaseApp paths now route
through PowerBIDeployment.DeleteAllRecords, which raises the new event.

Switches from a hardcoded six-field clear to iterating
Enum::"PBI Report Setup" and clearing each implementation's reported
Id/Name field-no via RecordRef. Mirrors the populate-site pattern in
PowerBISubscribers.OnReportDeployed exactly, so third-party extensions
that register new app types are handled without changes here.

Side-effect: Inventory Valuation (already in the enum but absent from the
prior hardcoded list) is now also cleared.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sustainability is moving out of BCApps and will own its Power BI reports
directly. Delete the runtime data assets shipped from PowerBIReports:

- Power BI Files/Sustainability app/ (PBIP source: manifest + SemanticModel
  + Report folders)
- Power BI Files/Translations/Sustainability app/ (24 .resx translations)
- App/.resources/Sustainability app.pbix (compiled binary)
- Translations/LocProject.json — remove the Sustainability LocItem entry
  that pointed at the now-deleted translations folder

Backward-compat infrastructure is intentionally left in place for the
deprecation/removal cycle: App/_Obsolete/Sustainability/ (1 tableext + 11
embedded pages), the matching #if not CLEAN27 permission set block,
#if not CLEAN27 enum value blocks in the Test Library, and the page-
validation YAML drill-through hashes. Those will go in a future CLEAN27
pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the AL: Apps (W1) Add-on apps for W1 label May 15, 2026
@github-actions github-actions Bot modified the milestone: Version 29.0 May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant