The GitHub Actions job "Required Checks" on texera.git/main has failed.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
7adc72932ed1336b2ca986a890fbebb301164e57 / Putluru Sandeep 
<[email protected]>
refactor(frontend): clean up unused config and assert helpers (#9435)

### What changes were proposed in this PR?

Clean up dead methods and helpers that remain unused in the latest
upstream `main` and were only referenced by their own specs, as tracked
in #9195:

1. **`UserConfigService.getDict()`** in
`frontend/src/app/common/service/user/config/user-config.service.ts`:
   - Removed the unread dictionary getter.
- Refactored `user-config.service.spec.ts` to preserve complete
behavioral coverage across fetch, set, delete, login, and logout using
observable behavior and public interfaces (verifying that `delete()`
issues an HTTP DELETE request only when the target key is present in the
local cache).
2. **`GuiConfigService.source()`** in
`frontend/src/app/common/service/gui-config.service.ts`:
- Removed uncalled `source(name: ConfigSource)` which was superseded by
memoized configuration getters (`env`).
   - Removed corresponding unit tests in `gui-config.service.spec.ts`.
3. **`assert()`** in `frontend/src/app/common/util/assert.ts`:
- Removed uncalled `assert()` function (`asType` and `isType` type
guards remain).
   - Removed corresponding unit tests in `assert.spec.ts`.

*(Note: Per maintainer confirmation on #9195, `dictionaryChangedSubject`
landed earlier in #8817 and `localRemoveObject`/`sessionRemoveObject`
landed earlier in #9256; those completed changes are untouched.)*

### Any related issues, documentation, discussions?

Closes #9195

### How was this PR tested?

All changes were thoroughly tested locally via the repository-standard
test runner:

1. **Affected Spec Files:**
- `yarn ng test --watch=false
--include=src/app/common/util/assert.spec.ts` (6/6 passed)
- `yarn ng test --watch=false
--include=src/app/common/service/gui-config.service.spec.ts` (12/12
passed)
- `yarn ng test --watch=false
--include=src/app/common/service/user/config/user-config.service.spec.ts`
(20/20 passed)
2. **Dependent / Downstream Spec Files:**
- `yarn ng test --watch=false
--include=src/app/workspace/service/preset/preset.service.spec.ts`
(48/48 passed)
3. **Common Suite:**
- `yarn ng test --watch=false --include="src/app/common/**/*.spec.ts"`
(876/876 passed across 55 test files)
4. **Code Quality, Type-Checking, and Build:**
   - `yarn tsc --noEmit` (Passed with 0 errors)
- `yarn tsc -p src/tsconfig.app.json --noEmit && yarn tsc -p
src/tsconfig.spec.json --noEmit` (Passed with 0 errors)
   - `yarn format:ci` (Passed cleanly)
   - `yarn lint` (Passed with 0 errors)
   - `yarn build` (Production frontend build succeeded)
   - `git diff --check` (Clean)

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

Generated-by: Antigravity IDE (Gemini 3.8 Flash)

Report URL: https://github.com/apache/texera/actions/runs/43862784008

With regards,
GitHub Actions via GitBox

Reply via email to