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

Migrate existing organizations state from StateServiceStateProvider #7895

Merged
merged 33 commits into from Mar 18, 2024

Merge branch 'main' into AC-2009/migrate-organization-state

d2f9644
Select commit
Failed to load commit list.
Merged

Migrate existing organizations state from StateServiceStateProvider #7895

Merge branch 'main' into AC-2009/migrate-organization-state
d2f9644
Select commit
Failed to load commit list.
CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main) succeeded Mar 15, 2024 in 55s

CodeScene PR Check

Code Health Quality Gates: OK

  • Declining Code Health: 0 findings(s) 🚩
  • Improving Code Health: 3 findings(s) ✅
  • Affected Hotspots: 1 files(s) 🔥

Recommended Review Level: Lightweight sanity check
View detailed results in CodeScene

Details

✅ Improving Code Health:

  • Code Duplication state.service.ts: StateService.setOrganizations 🔥
  • Lines of Code in a Single File state.service.ts 🔥
  • Number of Functions in a Single Module state.service.ts 🔥

Annotations

Check notice on line 1 in libs/common/src/platform/services/state.service.ts

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)

✅ Getting better: Lines of Code in a Single File

The lines of code decreases from 1774 to 1756, improve code health by reducing it to 1000. The number of Lines of Code in a single file. More Lines of Code lowers the code health.

Check notice on line 1 in libs/common/src/platform/services/state.service.ts

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)

✅ Getting better: Number of Functions in a Single Module

The number of functions decreases from 192 to 190, threshold = 75. This file contains too many functions. Beyond a certain threshold, more functions lower the code health.

Check notice on line 1 in libs/common/src/platform/services/state.service.ts

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)

✅ Getting better: Code Duplication

reduced similar code in: StateService.setOrganizations. Avoid duplicated, aka copy-pasted, code inside the module. More duplication lowers the code health.