You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "rbelavadi (via GitHub)" <gi...@apache.org> on 2026/07/13 17:32:06 UTC
[PR] test(frontend): add unit test coverage for replaceOneImmutable [texera]
rbelavadi opened a new pull request, #6393:
URL: https://github.com/apache/texera/pull/6393
### What changes were proposed in this PR?
Adds `array-utils.spec.ts` to cover `replaceOneImmutable`, a previously untested generic utility function in `common/util/` that returns a new array with the first predicate-matching element replaced, without mutating the original array. Covers all four behavior contracts: returns a new array reference when a match is found, leaves the original array unmutated, returns the same array reference (identity) when no match is found, and passes the element's index as the second argument to the predicate.
No production code was changed.
### Any related issues, documentation, discussions?
Closes #6256
### How was this PR tested?
Added 4 new unit tests in array-utils.spec.ts covering all behavior contracts described in the issue. Ran locally via `npx ng test --include='**/array-utils.spec.ts'`; all 4 pass.
### Was this PR authored or co-authored using generative AI tooling?
Co-authored using Claude (Anthropic).
--
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] test(frontend): add unit test coverage for replaceOneImmutable [texera]
Posted by "rbelavadi (via GitHub)" <gi...@apache.org>.
rbelavadi commented on PR #6393:
URL: https://github.com/apache/texera/pull/6393#issuecomment-4960796868
/request-review @aglinxinyuan
--
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] test(frontend): add unit test coverage for replaceOneImmutable [texera]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #6393:
URL: https://github.com/apache/texera/pull/6393#issuecomment-4960858755
## [Codecov](https://app.codecov.io/gh/apache/texera/pull/6393?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 69.78%. Comparing base ([`0cdba7b`](https://app.codecov.io/gh/apache/texera/commit/0cdba7b5cd13ad9b19f0349ce402b3165e876c8c?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`ae9b4e1`](https://app.codecov.io/gh/apache/texera/commit/ae9b4e1d7dc501a9f632459ae81031488e0364c2?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 #6393 +/- ##
============================================
- Coverage 69.79% 69.78% -0.01%
Complexity 3379 3379
============================================
Files 1142 1142
Lines 44828 44828
Branches 4948 4948
============================================
- Hits 31286 31283 -3
- Misses 11885 11886 +1
- Partials 1657 1659 +2
```
| [Flag](https://app.codecov.io/gh/apache/texera/pull/6393/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/6393/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `70.00% <ø> (ø)` | | Carriedforward from [0cdba7b](https://app.codecov.io/gh/apache/texera/commit/0cdba7b5cd13ad9b19f0349ce402b3165e876c8c?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/6393/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `76.76% <ø> (ø)` | | Carriedforward from [0cdba7b](https://app.codecov.io/gh/apache/texera/commit/0cdba7b5cd13ad9b19f0349ce402b3165e876c8c?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/6393/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `66.56% <ø> (ø)` | | Carriedforward from [0cdba7b](https://app.codecov.io/gh/apache/texera/commit/0cdba7b5cd13ad9b19f0349ce402b3165e876c8c?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/6393/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `9.97% <ø> (ø)` | | Carriedforward from [0cdba7b](https://app.codecov.io/gh/apache/texera/commit/0cdba7b5cd13ad9b19f0349ce402b3165e876c8c?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/6393/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `52.30% <ø> (ø)` | | Carriedforward from [0cdba7b](https://app.codecov.io/gh/apache/texera/commit/0cdba7b5cd13ad9b19f0349ce402b3165e876c8c?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/6393/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `63.97% <ø> (ø)` | | Carriedforward from [0cdba7b](https://app.codecov.io/gh/apache/texera/commit/0cdba7b5cd13ad9b19f0349ce402b3165e876c8c?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/6393/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `68.14% <ø> (-0.01%)` | :arrow_down: | |
| [notebook-migration-service](https://app.codecov.io/gh/apache/texera/pull/6393/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `78.94% <ø> (ø)` | | Carriedforward from [0cdba7b](https://app.codecov.io/gh/apache/texera/commit/0cdba7b5cd13ad9b19f0349ce402b3165e876c8c?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/6393/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `91.18% <ø> (ø)` | | Carriedforward from [0cdba7b](https://app.codecov.io/gh/apache/texera/commit/0cdba7b5cd13ad9b19f0349ce402b3165e876c8c?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/6393/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `55.14% <ø> (ø)` | | Carriedforward from [0cdba7b](https://app.codecov.io/gh/apache/texera/commit/0cdba7b5cd13ad9b19f0349ce402b3165e876c8c?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/6393?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] test(frontend): add unit test coverage for replaceOneImmutable [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #6393:
URL: https://github.com/apache/texera/pull/6393#issuecomment-4960785576
<!-- 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
Re: [PR] test(frontend): add unit test coverage for replaceOneImmutable [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan merged PR #6393:
URL: https://github.com/apache/texera/pull/6393
--
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