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

Warning when attempting to pull changes from a higher API version #353

Closed
aidan-harding opened this issue Mar 26, 2020 · 2 comments
Closed
Labels
bug Issue or pull request that identifies or fixes a bug

Comments

@aidan-harding
Copy link

Is your feature request related to a problem? Please describe.
If I don't keep the sourceApiVersion property of my sfdx-project.json file up-to-date, then attempting to pull metadata from a newer API fails silently.

e.g. I had a project which I hadn't updated from API 45, and was trying to pull Custom Metadata Type permissions in a Permission Set. I couldn't understand why they weren't being pulled.

This was frustrating because I didn't notice until after I'd built a package, installed it, and found that the missing permissions broke functionality.

And once the scratch org expires, the change is gone.

What are you trying to do
force:source:status knows that the change is there on the server. I would like sfdx to notice that it cannot pull a change which exists on the server and warn me.

Describe the solution you'd like
An error like the one for conflicting changes where it says which items could not be pulled due to the API version.

Describe alternatives you've considered
Some sort of scripts on our side to make sure that we keep sourceApiVersion up-to-date.

@clairebianchi clairebianchi added the feature Issue or pull request for a new feature label Apr 7, 2020
@WillieRuemmele WillieRuemmele added the bug Issue or pull request that identifies or fixes a bug label Jul 10, 2023
@git2gus
Copy link

git2gus bot commented Jul 10, 2023

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

@iowillhoit iowillhoit removed the feature Issue or pull request for a new feature label Jul 11, 2023
@mshanemc
Copy link
Contributor

it's not quite an error message...because there's not a good way to ask the API about stuff it doesn't know about,
but you will get a message like

Retrieving v56.0 metadata from [email protected] using the v58.0 SOAP API
which should give you a better idea about what's happening.

it'll be in the nightly by July15

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
Projects
None yet
Development

No branches or pull requests

5 participants