Skip to content

CHANGE @W-22393672@ Roll back ApexGuru CLI exposure for monthly release - #2067

Closed
nikhil-mittal-165 wants to merge 2 commits into
devfrom
rollback/apexguru-cli-exposure
Closed

CHANGE @W-22393672@ Roll back ApexGuru CLI exposure for monthly release#2067
nikhil-mittal-165 wants to merge 2 commits into
devfrom
rollback/apexguru-cli-exposure

Conversation

@nikhil-mittal-165

Copy link
Copy Markdown
Contributor

Reverts the two PRs that exposed the ApexGuru engine through the CLI, because the ApexGuru backend service is not yet available for the upcoming monthly release.

Reverts:

Effect:

  • Removes @salesforce/code-analyzer-apexguru-engine dependency and its registration in EnginePluginsFactory, so the engine is no longer loaded.
  • Removes the --target-org (-o) flag and its wiring through CodeAnalyzerConfigFactory / RunAction.
  • ApexGuru is no longer surfaced by run, rules, or config, and therefore not surfaced in VS Code (which shells out to this CLI).

Core (code-analyzer-core #478/#482) and VS Code (#360) changes are left in place; they are inert/dormant once the CLI no longer loads the engine.

Verified: npm ci clean, build passes, affected tests green (91 passed), eligible engines no longer include apexguru.

Reverts the two PRs that exposed the ApexGuru engine through the CLI,
because the ApexGuru backend service is not yet available for the
upcoming monthly release.

Reverts:
- #2059 (NEW @W-22393672@ Expose ApexGuru engine in CLI with --target-org flag)
- #2064 (CHANGE @W-22393694@ bug fix on org and alias)

Effect:
- Removes @salesforce/code-analyzer-apexguru-engine dependency and its
  registration in EnginePluginsFactory, so the engine is no longer loaded.
- Removes the --target-org (-o) flag and its wiring through
  CodeAnalyzerConfigFactory / RunAction.
- ApexGuru is no longer surfaced by `run`, `rules`, or `config`, and
  therefore not surfaced in VS Code (which shells out to this CLI).

Core (code-analyzer-core #478/#482) and VS Code (#360) changes are left
in place; they are inert/dormant once the CLI no longer loads the engine.

Verified: npm ci clean, build passes, affected tests green (91 passed),
eligible engines no longer include apexguru.
The initial `git revert` reverted package-lock.json wholesale, which also
undid an unrelated transitive bump of form-data (4.0.5 -> 4.0.6) that rode
along in #2059's install. That reintroduced form-data@4.0.5, flagged by
Snyk (GHSA-hmw2-7cc7-3qxx, CRLF injection, CVSS 7.5, fixed in >=4.0.6).

Fix: keep the source reverts, but rebuild package-lock.json from dev's
state so only the apexguru-engine dependency is dropped. All other
transitive dependencies (incl. form-data@4.0.6) stay at dev's versions.

Verified: build passes, 91 affected tests pass, and `npm audit --omit=dev`
now matches dev exactly (form-data no longer flagged).

@aruntyagiTutu aruntyagiTutu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM — clean revert of the ApexGuru CLI exposure (target-org flag, engine registration, config factory overrides, and associated tests) ahead of the backend not being ready for the monthly release. PR description accurately reflects the diff, and the lockfile regen preserves the form-data@4.0.6 Snyk fix.

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.

2 participants