Skip to content

test: add specs for UserConfigService#5014

Merged
Yicong-Huang merged 8 commits into
apache:mainfrom
Ma77Ball:test/UserConfigService
May 11, 2026
Merged

test: add specs for UserConfigService#5014
Yicong-Huang merged 8 commits into
apache:mainfrom
Ma77Ball:test/UserConfigService

Conversation

@Ma77Ball
Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Replaces the commented-out user-config.service.spec.ts with a real Vitest suite that covers fetchAll, fetchKey, set, delete, change notifications, and login/logout reactions. Re-enables the spec in angular.json and tsconfig.spec.json.

Any related issues, documentation, or discussions?

Closes: #4964

How was this PR tested?

yarn ng test --include="**/user-config.service.spec.ts" All tests pass.

Was this PR authored or co-authored using generative AI tooling?

Co-Authored with Claude Opus 4.7 in compliance with ASF.

@github-actions github-actions Bot added the frontend Changes related to the frontend GUI label May 10, 2026
@Ma77Ball
Copy link
Copy Markdown
Contributor Author

@chenlica, please assign a reviewer

@chenlica
Copy link
Copy Markdown
Contributor

@carloea2 @xuang7 Please review it.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 42.65%. Comparing base (2a23ba5) to head (7bda745).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5014      +/-   ##
============================================
+ Coverage     42.51%   42.65%   +0.13%     
  Complexity     2192     2192              
============================================
  Files          1045     1045              
  Lines         39880    39880              
  Branches       4205     4205              
============================================
+ Hits          16955    17010      +55     
+ Misses        21869    21812      -57     
- Partials       1056     1058       +2     
Flag Coverage Δ *Carryforward flag
access-control-service 39.88% <ø> (ø) Carriedforward from 2a23ba5
agent-service 33.72% <ø> (ø) Carriedforward from 2a23ba5
amber 43.32% <ø> (ø) Carriedforward from 2a23ba5
computing-unit-managing-service 0.00% <ø> (ø) Carriedforward from 2a23ba5
config-service 0.00% <ø> (ø) Carriedforward from 2a23ba5
file-service 32.10% <ø> (ø) Carriedforward from 2a23ba5
frontend 33.85% <ø> (+0.34%) ⬆️
python 88.90% <ø> (ø) Carriedforward from 2a23ba5
workflow-compiling-service 47.72% <ø> (ø) Carriedforward from 2a23ba5

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@xuang7 xuang7 left a comment

Choose a reason for hiding this comment

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

LGTM!

@carloea2
Copy link
Copy Markdown
Contributor

LGTM.

Ma77Ball and others added 3 commits May 10, 2026 22:11
…ervice

# Conflicts:
#	frontend/angular.json
#	frontend/src/tsconfig.spec.json
Signed-off-by: Yicong Huang <17627829+Yicong-Huang@users.noreply.github.com>
@Yicong-Huang Yicong-Huang enabled auto-merge (squash) May 11, 2026 06:27
Yicong-Huang and others added 2 commits May 10, 2026 23:41
`yarn format:ci` (prettier-eslint --list-different) flagged the file as
unformatted in CI, breaking the frontend build. Auto-format removes a
single trailing comma after the `include` array.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Yicong-Huang Yicong-Huang merged commit b3706cb into apache:main May 11, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add unit tests for UserConfigService

6 participants