You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "kz930 (via GitHub)" <gi...@apache.org> on 2026/08/13 23:41:10 UTC
[PR] feat(gui): take the required marker from the schema's own condition [texera]
kz930 opened a new pull request, #7644:
URL: https://github.com/apache/texera/pull/7644
### What changes were proposed in this PR?
A field required only under a condition cannot say so in the top-level `required` array, which is a fixed list. The property panel drew the marker from that array alone, so the marker never appeared for such a field and the panel gave no sign that a field had become mandatory until the operator was refused.
Aggregate needs such a rule and already declares it correctly, under `definitions.AggregationOperation.allOf`: `attribute` is required for every function except `count`, where an empty attribute means COUNT(*). The marker was then produced a second time, by operator name, in the panel itself. Two statements of one rule, in two languages, free to drift, and the next operator wanting the same thing would have added a third branch beside the field-specific ones already there.
`conditionalRequiredRules` reads what the schema declares, and the panel applies it. The walk is recursive because a rule may govern a field inside an array item, where it sits under `definitions` rather than at the top. Keying by field name is enough: the condition is evaluated against the field's own parent model, which is the row for an array item and the operator for a top-level field, so one rule resolves correctly in both. It matches on `if.properties.<sibling>.const`, which the `attributeTypeRules` blocks do not have, naming their sibling directly and requiring nothing.
Aggregate keeps its behaviour and loses its branch and helper. An operator that wants a conditional required now states it once, in its descriptor, with no change here.
### Any related issues, documentation, discussions?
Closes #7642
### How was this PR tested?
Existing tests, plus four cases in `operator-property-edit-frame.component.spec.ts` covering the `then` form, the `else` form nested in a definition as Aggregate states it, an `attributeTypeRules` block that must not be mistaken for one, and a schema stating no condition. These replace the test of the helper that is now removed. `ng test` passes: 4465 tests.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5)
--
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] feat(gui): take the required marker from the schema's own condition [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #7644:
URL: https://github.com/apache/texera/pull/7644#issuecomment-5287635406
<!-- texera-reviewer-suggestion -->
### Automated Reviewer Suggestions
Based on the `git blame` history of the changed files, we recommend the following reviewers:
- **Contributors with relevant context:** `@carloea2`
You can notify them by mentioning `@carloea2` in a comment.
--
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] feat(gui): take the required marker from the schema's own condition [texera]
Posted by "kz930 (via GitHub)" <gi...@apache.org>.
kz930 commented on PR #7644:
URL: https://github.com/apache/texera/pull/7644#issuecomment-5407047881
/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] feat(gui): take the required marker from the schema's own condition [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan merged PR #7644:
URL: https://github.com/apache/texera/pull/7644
--
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] feat(gui): take the required marker from the schema's own condition [texera]
Posted by "kz930 (via GitHub)" <gi...@apache.org>.
kz930 commented on PR #7644:
URL: https://github.com/apache/texera/pull/7644#issuecomment-5458382131
@aglinxinyuan May you take a look at this PR please?
--
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] feat(gui): take the required marker from the schema's own condition [texera]
Posted by "kz930 (via GitHub)" <gi...@apache.org>.
kz930 commented on PR #7644:
URL: https://github.com/apache/texera/pull/7644#issuecomment-5287684384
@aglinxinyuan @carloea2 May you take a look at it?
--
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] feat(gui): take the required marker from the schema's own condition [texera]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #7644:
URL: https://github.com/apache/texera/pull/7644#issuecomment-5287686964
## [Codecov](https://app.codecov.io/gh/apache/texera/pull/7644?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:x: Patch coverage is `84.21053%` with `3 lines` in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 89.65%. Comparing base ([`12169c2`](https://app.codecov.io/gh/apache/texera/commit/12169c2cfe5f92d0c492ae12d8eb2b53a6fec098?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`8363f0e`](https://app.codecov.io/gh/apache/texera/commit/8363f0e905c89293b155683d05c67ab26a2c1228?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
| [Files with missing lines](https://app.codecov.io/gh/apache/texera/pull/7644?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [...it-frame/operator-property-edit-frame.component.ts](https://app.codecov.io/gh/apache/texera/pull/7644?src=pr&el=tree&filepath=frontend%2Fsrc%2Fapp%2Fworkspace%2Fcomponent%2Fproperty-editor%2Foperator-property-edit-frame%2Foperator-property-edit-frame.component.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZnJvbnRlbmQvc3JjL2FwcC93b3Jrc3BhY2UvY29tcG9uZW50L3Byb3BlcnR5LWVkaXRvci9vcGVyYXRvci1wcm9wZXJ0eS1lZGl0LWZyYW1lL29wZXJhdG9yLXByb3BlcnR5LWVkaXQtZnJhbWUuY29tcG9uZW50LnRz) | 84.21% | [1 Missing and 2 partials :warning: ](https://app.codecov.io/gh/apache/texera/pull/7644?src=pr&el=tree&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 #7644 +/- ##
============================================
- Coverage 89.65% 89.65% -0.01%
Complexity 4397 4397
============================================
Files 1177 1177
Lines 46996 47011 +15
Branches 5268 5273 +5
============================================
+ Hits 42136 42149 +13
Misses 3094 3094
- Partials 1766 1768 +2
```
| [Flag](https://app.codecov.io/gh/apache/texera/pull/7644/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/7644/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 [12169c2](https://app.codecov.io/gh/apache/texera/commit/12169c2cfe5f92d0c492ae12d8eb2b53a6fec098?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/7644/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `98.62% <ø> (ø)` | | Carriedforward from [12169c2](https://app.codecov.io/gh/apache/texera/commit/12169c2cfe5f92d0c492ae12d8eb2b53a6fec098?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/7644/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `86.35% <ø> (ø)` | | Carriedforward from [12169c2](https://app.codecov.io/gh/apache/texera/commit/12169c2cfe5f92d0c492ae12d8eb2b53a6fec098?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/7644/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `72.46% <ø> (ø)` | | Carriedforward from [12169c2](https://app.codecov.io/gh/apache/texera/commit/12169c2cfe5f92d0c492ae12d8eb2b53a6fec098?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/7644/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `77.31% <ø> (ø)` | | Carriedforward from [12169c2](https://app.codecov.io/gh/apache/texera/commit/12169c2cfe5f92d0c492ae12d8eb2b53a6fec098?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/7644/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `68.90% <ø> (ø)` | | Carriedforward from [12169c2](https://app.codecov.io/gh/apache/texera/commit/12169c2cfe5f92d0c492ae12d8eb2b53a6fec098?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/7644/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `90.67% <84.21%> (-0.01%)` | :arrow_down: | |
| [notebook-migration-service](https://app.codecov.io/gh/apache/texera/pull/7644/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `78.89% <ø> (ø)` | | Carriedforward from [12169c2](https://app.codecov.io/gh/apache/texera/commit/12169c2cfe5f92d0c492ae12d8eb2b53a6fec098?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/7644/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `97.57% <ø> (ø)` | | Carriedforward from [12169c2](https://app.codecov.io/gh/apache/texera/commit/12169c2cfe5f92d0c492ae12d8eb2b53a6fec098?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/7644/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `57.89% <ø> (ø)` | | Carriedforward from [12169c2](https://app.codecov.io/gh/apache/texera/commit/12169c2cfe5f92d0c492ae12d8eb2b53a6fec098?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/7644?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] feat(gui): take the required marker from the schema's own condition [texera]
Posted by "kz930 (via GitHub)" <gi...@apache.org>.
kz930 commented on PR #7644:
URL: https://github.com/apache/texera/pull/7644#issuecomment-5391744924
@aglinxinyuan May you take a look at it?
--
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