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

sfp which uses sfpowerkit: Cache gets not cleaned after switching orgs or new command session #121

Open
Schuchie opened this issue Sep 19, 2024 · 0 comments
Labels

Comments

@Schuchie
Copy link

Describe the bug
Every time a profile reconcile happens, it tries to use the sfpowerkit cache. Problem with that, if you execute the commands locally (or multiple in a CI, which uses the reconcile). Every command uses the same cache. This results in various strange bugs, because it uses the cache of another org, with different fields, apps etc..

To Reproduce
Steps to reproduce the behavior:

  1. Create a profile in org-1 and org-2 with the same name
  2. Add an CustomApplication/Field on org-1
  3. Add profile access for the previous CustomApplication on org-1
  4. sfp profile reconcile -o org-1 <Test-Profile>
  5. sfp profile reconcile -o org-2 <Test-Profile>

--> Same profile of org-2 has the CustomApplication included, because the cache of org-1 was used.

Expected behavior
Cache should be reseted after command lifetime or before.

Screenshots

Platform Details (please complete the following information):

  • OS: Everywhere
  • Version [e.g. CLI Version eg: 1.6.6]: @flxbl-io/sfp/39.2.1 darwin-arm64 node-v18.20.3
  • Salesforce CLI(sfdx cli) Version: @salesforce/cli/2.44.8 darwin-arm64 node-v18.20.3
  • CI Platform: GitHub/Locally

Additional context
Problem can be solved, when I would always delete the .sfdx/sfpowerkit/sfpowerkit-cache.db

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant