Minimal reproducible example to demonstrate a bug in Source Tracking:
When deleting a Global Action,
SourceMember.MemberTypeis incorrectly reported asQuickActionDefinitioninstead ofQuickAction.
Important
A green status badge means the issue was successfully reproduced.
issue-reproduction.mov
In a Scratch Org, delete the Global Action "New Group". Then try to retrieve the change:
$ sf project retrieve preview
Warning: Unable to find type QuickActionDefinition in registry
No conflicts found.
No files will be deleted.
No files will be retrieved.
No files were ignored. Update your .forceignore file if you want to ignore certain files.Note
QuickActionDefinition is not a valid Metadata Type and so it cannot be retrieved/deleted.
For comparison, when modifiying or creating a Global Action, the SourceMember.MemberType correctly shows up as QuickAction and the change can be retrieved:
$ sf project retrieve preview
No conflicts found.
No files will be deleted.
Will Retrieve [1] files.
Type Fullname Path
─────────── ──────── ────────────────────────────────────────────────────────────────
QuickAction NewNote force-app/main/default/quickActions/NewNote.quickAction-meta.xml
No files were ignored. Update your .forceignore file if you want to ignore certain files.The SourceMember records look like this:
$ sf data query -t -q "SELECT MemberType, MemberName, IsNameObsolete, IsNewMember, Id, RevisionCounter FROM SourceMember ORDER BY RevisionCounter"
MEMBERTYPE MEMBERNAME ISNAMEOBSOLETE ISNEWMEMBER ID REVISIONCOUNTER
───────────────────── ────────── ────────────── ─────────── ────────────────── ───────────────
QuickActionDefinition NewGroup true true 0MZ1w000006TfqUGAS 2
QuickAction NewNote false false 0MZ1w000006TfqZGAS 3
Total number of records retrieved: 2.
Querying Data... done