Skip to content
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

Source Tracking recognises a deleted Global Action (QuickAction) as QuickActionDefinition and fails retrieving the change #2829

Open
amtrack opened this issue Apr 17, 2024 · 3 comments
Labels
bug Issue or pull request that identifies or fixes a bug validated Version information for this issue has been validated

Comments

@amtrack
Copy link

amtrack commented Apr 17, 2024

Summary

When deleting a Global Action in a source tracked org, SourceMember.MemberType is incorrectly reported as QuickActionDefinition instead of QuickAction.

sf project retrieve does not do anything because the Metadata Registry does not know this Metadata Type.

$ sf project retrieve preview
Warning: Unable to find type QuickActionDefinition in registry
...

Steps To Reproduce

I created a Minimum Reproduction Example using GitHub Actions:
https://github.com/mdapi-issues/mre-incorrect-source-member-type-quickactiondefinition

Expected result

It should retrieve the change and delete the QuickAction locally.

Actual result

It does not delete the remotely deleted Global Action.

System Information

{
  "architecture": "darwin-arm64",
  "cliVersion": "@salesforce/cli/2.36.8",
  "nodeVersion": "node-v20.10.0",
  "osVersion": "Darwin 23.4.0",
  "rootPath": "/Users/john.doe/.config/yarn/global/node_modules/@salesforce/cli",
  "shell": "zsh",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.0.13 (core)",
    "@oclif/plugin-commands 3.2.2 (core)",
    "@oclif/plugin-help 6.0.20 (core)",
    "@oclif/plugin-not-found 3.1.1 (core)",
    "@oclif/plugin-plugins 5.0.5 (core)",
    "@oclif/plugin-search 1.0.20 (core)",
    "@oclif/plugin-update 4.2.3 (core)",
    "@oclif/plugin-version 2.0.16 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.15 (core)",
    "@oclif/plugin-which 3.1.7 (core)",
    "@salesforce/cli 2.36.8 (core)",
    "apex 3.1.3 (core)",
    "auth 3.5.1 (core)",
    "data 3.2.4 (core)",
    "deploy-retrieve 3.5.3 (core)",
    "info 3.1.2 (core)",
    "limits 3.2.1 (core)",
    "marketplace 1.1.0 (core)",
    "org 3.6.3 (core)",
    "packaging 2.3.0 (core)",
    "schema 3.2.0 (core)",
    "settings 2.1.2 (core)",
    "sobject 1.2.1 (core)",
    "source 3.2.2 (core)",
    "telemetry 3.1.17 (core)",
    "templates 56.1.0 (core)",
    "trust 3.5.1 (core)",
    "user 3.4.3 (core)"
  ]
}

Additional information

issue-reproduction.mov
@amtrack amtrack added the investigating We're actively investigating this issue label Apr 17, 2024
@github-actions github-actions bot added the validated Version information for this issue has been validated label Apr 17, 2024
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@WillieRuemmele
Copy link
Member

once again @amtrack, thanks for the great repro, and self investigation results!

@WillieRuemmele WillieRuemmele added bug Issue or pull request that identifies or fixes a bug and removed investigating We're actively investigating this issue labels Apr 17, 2024
Copy link

git2gus bot commented Apr 17, 2024

This issue has been linked to a new work item: W-15532236

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

2 participants