You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
force:source:status not adhereing to specific forceignore rules #119
Remote metadata (e.g. custom fields, list views) are not being ignored for force:source:status in the same way that they are for force:source:pull when they are specifically mentioned. They show as remote changes for status even when they will not be pulled by pull, but they are not shown when for example ignoring with Account** or *.listView
Steps To Reproduce:
Create new list view called All on account on a scratch org.
Run force:source:status, you will see the remote change (correct)
Add Account.All into .forceignore file
Run force:source:status, you will still see the remote change (incorrect)
Add *.listView into .forceignore file
Run force:source:status, you will not still see the remote change; it is ignored correctly
Remove *.listView from .forceignore file
Run force:source:pull, you will not still see the remote change pulled down; it is ignored correctly
What if we showed them in status output, but mark that they are subject to ignoring (that way, you could use source:status to ask the server what's changed and realize you need to update your .forceignore) vs. just wondering why it's not there.
Then you'd be able to know what would be pulled before you run pull.
Activity
nickmorozov commentedon Jun 20, 2019
Can confirm, I've encountered this before.
dcarroll commentedon Feb 25, 2020
@clairebianchi @amphro Does anyone on the CLI team know about this issue?
mshanemc commentedon Jun 4, 2020
@toddhalfpenny is this still true? When I create a list view in the org, it doesn't show up in source:status
dcstuff commentedon Feb 14, 2021
@mshanemc Confirmed this is still happening! Fresh scratch org. I had modified some listviews on some custom objects.
First errors came down that it could not find certain listviews on some wacky standard objects which I had never heard of -- exactly this person's issue, dated Jan 11: https://developer.salesforce.com/forums/?id=9062I000000IWO4QAO
The only workaround that worked was adding the following to my .forceignore.
mshanemc commentedon Sep 28, 2021
Here's the plan for this:
What if we showed them in
statusoutput, but mark that they are subject to ignoring (that way, you could usesource:statusto ask the server what's changed and realize you need to update your .forceignore) vs. just wondering why it's not there.Then you'd be able to know what would be pulled before you run pull.
@W-9805809@
mshanemc commentedon Apr 1, 2022
closed with new commands GA