Thanks to visit codestin.com
Credit goes to github.com

Skip to content

force:source:status not adhereing to specific forceignore rules #119

Description

@toddhalfpenny

Summary

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:

  1. Create new list view called All on account on a scratch org.
  2. Run force:source:status, you will see the remote change (correct)
  3. Add Account.All into .forceignore file
  4. Run force:source:status, you will still see the remote change (incorrect)
  5. Add *.listView into .forceignore file
  6. Run force:source:status, you will not still see the remote change; it is ignored correctly
  7. Remove *.listView from .forceignore file
  8. Run force:source:pull, you will not still see the remote change pulled down; it is ignored correctly

Additional information

Video of the issue being reproduced.

SFDX CLI Version - sfdx-cli/7.11.2-4a5bf6aa97 linux-x64 node-v10.15.3:

SFDX plugin Version

@oclif/plugin-commands 1.2.2 (core)
@oclif/plugin-help 2.2.0 (core)
@oclif/plugin-not-found 1.2.2 (core)
@oclif/plugin-plugins 1.7.8 (core)
@oclif/plugin-update 1.3.9 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-trust 3.0.5 (core)
analytics 1.1.2 (core)
generator 1.1.0 (core)
salesforcedx 46.1.5 (core)
├─ force-language-services 46.3.0 (core)
└─ salesforce-alm 46.3.0 (core)

OS and version:
Linux - Ubuntu 18.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue or pull request that identifies or fixes a bug

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions