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

fix: remove legacy source tracking commands #4771

Merged
merged 4 commits into from
Apr 6, 2023

Conversation

CristiCanizales
Copy link
Contributor

@CristiCanizales CristiCanizales commented Apr 3, 2023

What does this PR do?

Removes the legacy versions of the Pull, Push and View Changes commands. Pretty much reverts most of the changes introduced with #3839

What issues does this PR fix or reference?

@W-12947655@

Functionality Before

The following commands were visible/usable:

  • SFDX: Pull Source from Default Scratch Org (Legacy)
  • SFDX: Pull Source from Default Scratch Org and Override Conflicts (Legacy)
  • SFDX: Push Source to Default Scratch Org (Legacy)
  • SFDX: Push Source to Default Scratch Org and Override Conflicts (Legacy)
  • SFDX: View All Changes (Local and in Default Scratch Org) (Legacy)
    Pasted Graphic 1

Functionality After

The following commands are not visible/usable:

  • SFDX: Pull Source from Default Scratch Org (Legacy)
  • SFDX: Pull Source from Default Scratch Org and Override Conflicts (Legacy)
  • SFDX: Push Source to Default Scratch Org (Legacy)
  • SFDX: Push Source to Default Scratch Org and Override Conflicts (Legacy)
  • SFDX: View All Changes (Local and in Default Scratch Org) (Legacy)
    Pasted Graphic

@CristiCanizales CristiCanizales requested a review from a team as a code owner April 3, 2023 21:21
@randi274 randi274 self-requested a review April 4, 2023 18:17
Copy link
Contributor

@randi274 randi274 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking real good @CristiCanizales! Builds are passing, and a quick spot check of the push/pull commands is working too.

I noticed only one extra place for cleanup. I saw CommandVersion is exported from sfdxCommandlet (and was originally added for the purpose of adding the legacy commands!) but is no longer being used. Can you remove that enum and subsequent references over there?

@CristiCanizales
Copy link
Contributor Author

Sure! Nice catch. Thanks!

Copy link
Contributor

@randi274 randi274 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing:
✅ Legacy commands are no longer visible, and 'legacy' is gone from the code base
✅ Force source pull generates expected command
✅ Force source push generates expected command
✅ Create conflicts -> overwrite w/ push - generates expected command
✅ Create conflicts -> overwrite w/ pull - generates expected command
✅ Deploy on save for push -> does push, and generates expected command
✅ Deploy on save for override conflicts on push -> does push and generates expected command

❓ I am seeing some strange behavior around conflict detection, but I don't believe it's a result of the changes in this PR. Will follow up with Ken and see what he makes of it (as some of this may be fixed in his subsequent WIs)

@klewis-sfdc klewis-sfdc merged commit c4d5c56 into develop Apr 6, 2023
12 checks passed
@klewis-sfdc klewis-sfdc deleted the cristi/remove-legacy-commands branch April 6, 2023 19:11
@CristiCanizales CristiCanizales self-assigned this Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to the Legacy Salesforce CLI Commands in Command Palette
3 participants