You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "aglinxinyuan (via GitHub)" <gi...@apache.org> on 2026/09/19 23:47:09 UTC
[PR] chore(frontend): remove spec-only PresetService members [texera]
aglinxinyuan opened a new pull request, #8614:
URL: https://github.com/apache/texera/pull/8614
### What changes were proposed in this PR?
Removes three `PresetService` members that no production code calls: `updateOrCreatePreset`, `isValidNewOperatorPreset`, and the exported `PresetDictionary` type. Pure deletion, no behaviour change: **−175 lines**.
### History
| | |
| --- | --- |
| **Introduced by** | #1164 (2022-01-13) — "Add PresetService (User Presets Step 3)", which built out the preset API surface |
| **Usage removed by** | **never wired up** — no production file has ever called `updateOrCreatePreset` or `isValidNewOperatorPreset`, and `PresetDictionary` has zero references worktree-wide. Only the service's own spec exercises them |
> Reviewer note: the wired-up half of the service stays — `savePresets`, `getPresets`, `applyPreset`, `isValidOperatorPreset`, `isValidPreset` and the Ajv type guards all keep live consumers. `common/formly/preset-wrapper/**` calls none of the removed three (checked line by line in both the `.ts` and the `.html`). Note `isValidOperatorPreset` (live) and `isValidNewOperatorPreset` (removed) differ by one word — only the latter goes.
### Any related issues, documentation, discussions?
Closes #8611
### How was this PR tested?
Existing tests only — this PR removes methods and the spec blocks that covered them.
From `frontend/`:
- `npx ng test --watch=false --include='**/preset.service.spec.ts'` — 48 tests pass.
- `yarn --cwd frontend format:ci` — clean.
Verification, re-runnable by a reviewer:
```
git grep -n "updateOrCreatePreset\|isValidNewOperatorPreset\|PresetDictionary"
git grep -n isValidOperatorPreset # the live sibling, untouched
```
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore(frontend): remove spec-only PresetService members [texera]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #8614:
URL: https://github.com/apache/texera/pull/8614#issuecomment-5746240479
## [Codecov](https://app.codecov.io/gh/apache/texera/pull/8614?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 92.78%. Comparing base ([`957b6c9`](https://app.codecov.io/gh/apache/texera/commit/957b6c965640c07ace034eb9edcae53ef974324a?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`05c59cb`](https://app.codecov.io/gh/apache/texera/commit/05c59cb657fd06b00f981f7d733e4ae1affe548b?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #8614 +/- ##
============================================
- Coverage 92.78% 92.78% -0.01%
Complexity 4902 4902
============================================
Files 1236 1236
Lines 52165 52149 -16
Branches 6411 6404 -7
============================================
- Hits 48402 48386 -16
Misses 2191 2191
Partials 1572 1572
```
| [Flag](https://app.codecov.io/gh/apache/texera/pull/8614/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | | *Carryforward flag |
|---|---|---|---|
| [access-control-service](https://app.codecov.io/gh/apache/texera/pull/8614/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `71.78% <ø> (ø)` | | Carriedforward from [957b6c9](https://app.codecov.io/gh/apache/texera/commit/957b6c965640c07ace034eb9edcae53ef974324a?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [agent-service](https://app.codecov.io/gh/apache/texera/pull/8614/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `99.16% <ø> (ø)` | | Carriedforward from [957b6c9](https://app.codecov.io/gh/apache/texera/commit/957b6c965640c07ace034eb9edcae53ef974324a?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [amber](https://app.codecov.io/gh/apache/texera/pull/8614/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `88.63% <ø> (ø)` | | Carriedforward from [957b6c9](https://app.codecov.io/gh/apache/texera/commit/957b6c965640c07ace034eb9edcae53ef974324a?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [computing-unit-managing-service](https://app.codecov.io/gh/apache/texera/pull/8614/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `55.20% <ø> (ø)` | | Carriedforward from [957b6c9](https://app.codecov.io/gh/apache/texera/commit/957b6c965640c07ace034eb9edcae53ef974324a?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [config-service](https://app.codecov.io/gh/apache/texera/pull/8614/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `87.37% <ø> (ø)` | | Carriedforward from [957b6c9](https://app.codecov.io/gh/apache/texera/commit/957b6c965640c07ace034eb9edcae53ef974324a?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [file-service](https://app.codecov.io/gh/apache/texera/pull/8614/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `81.53% <ø> (ø)` | | Carriedforward from [957b6c9](https://app.codecov.io/gh/apache/texera/commit/957b6c965640c07ace034eb9edcae53ef974324a?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [frontend](https://app.codecov.io/gh/apache/texera/pull/8614/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `96.58% <ø> (-0.01%)` | :arrow_down: | |
| [notebook-migration-service](https://app.codecov.io/gh/apache/texera/pull/8614/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `83.73% <ø> (ø)` | | Carriedforward from [957b6c9](https://app.codecov.io/gh/apache/texera/commit/957b6c965640c07ace034eb9edcae53ef974324a?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [pyamber](https://app.codecov.io/gh/apache/texera/pull/8614/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `98.48% <ø> (ø)` | | Carriedforward from [957b6c9](https://app.codecov.io/gh/apache/texera/commit/957b6c965640c07ace034eb9edcae53ef974324a?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [workflow-compiling-service](https://app.codecov.io/gh/apache/texera/pull/8614/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `74.09% <ø> (ø)` | | Carriedforward from [957b6c9](https://app.codecov.io/gh/apache/texera/commit/957b6c965640c07ace034eb9edcae53ef974324a?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
*This pull request uses carry forward flags. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to find out more.
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/texera/pull/8614?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore(frontend): remove spec-only PresetService members [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan merged PR #8614:
URL: https://github.com/apache/texera/pull/8614
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] chore(frontend): remove spec-only PresetService members [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8614:
URL: https://github.com/apache/texera/pull/8614#issuecomment-5746203705
<!-- texera-reviewer-suggestion -->
### Automated Reviewer Suggestions
Based on the `git blame` history of the changed files, we recommend the following reviewers:
- No candidates found from `git blame` history.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org