-
Notifications
You must be signed in to change notification settings - Fork 49
[MDiff] Introduce Metadata Diff functionality in Actions Hub #1329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Copilot <[email protected]>
| "command": "microsoft.powerplatform.pages.metadataDiff.triggerFlow", | ||
| "title": "Compare with Environment", | ||
| "category": "Power Pages Metadata Diff", | ||
| "icon": "$(cloud-download)" | ||
| }, | ||
| { | ||
| "command": "microsoft.powerplatform.pages.metadataDiff.generateReport", | ||
| "title": "Generate HTML Report", | ||
| "category": "Power Pages Metadata Diff", | ||
| "icon": "$(markdown)" | ||
| }, | ||
| { | ||
| "command": "microsoft.powerplatform.pages.metadataDiff.resync", | ||
| "title": "Re-sync", | ||
| "category": "Power Pages Metadata Diff", | ||
| "icon": "$(refresh)" | ||
| }, | ||
| { | ||
| "command": "microsoft.powerplatform.pages.metadataDiff.clearView", | ||
| "title": "Clear View", | ||
| "category": "Power Pages Metadata Diff", | ||
| "icon": "$(clear-all)" | ||
| }, | ||
| { | ||
| "command": "microsoft.powerplatform.pages.metadataDiff.exportReport", | ||
| "title": "Export Comparison View", | ||
| "category": "Power Pages Metadata Diff", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of these should be localized.
src/client/power-pages/actions-hub/ActionsHubTreeDataProvider.ts
Outdated
Show resolved
Hide resolved
src/client/power-pages/actions-hub/ActionsHubTreeDataProvider.ts
Outdated
Show resolved
Hide resolved
src/client/power-pages/actions-hub/ActionsHubTreeDataProvider.ts
Outdated
Show resolved
Hide resolved
src/client/power-pages/actions-hub/ActionsHubTreeDataProvider.ts
Outdated
Show resolved
Hide resolved
| } | ||
| }); | ||
|
|
||
| vscode.commands.registerCommand("microsoft.powerplatform.pages.metadataDiff.triggerFlow", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we please refactor this file?
- When registering commands, you can register single methods instead of defining the logic inline.
- The logic itself can be broken into multiple reusable functions. A single function seems to be doing too much right now.
|
|
||
| vscode.commands.registerCommand("microsoft.powerplatform.pages.actionsHub.siteDetails", showSiteDetails), | ||
|
|
||
| vscode.commands.registerCommand("microsoft.powerplatform.pages.actionsHub.compareWithLocal", compareWithLocal), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should only be registered when metadata diff feature is enabled, right?
… and MetadataDiffWrapperTreeItem classes
…ge logic in ActionsHubTreeDataProvider
…tadata diff commands
…tion for diff titles
|
MetadataDiffTreeDataProvider.ts and src/client/power-pages/metadata-diff/MetadataDiffCommands.ts can be reviewed once for telemetry events capturing the tracking events and debugging events. |
No description provided.