Skip to content

fix(v1.2): Correct FilledAreaPlot x-value validation across groups - #6998

Merged
xuang7 merged 1 commit into
release/v1.2from
backport/6894-correct-filledareaplot-x-value-validatio-v1.2
Jul 29, 2026
Merged

xuang7 merged 1 commit into
release/v1.2from
backport/6894-correct-filledareaplot-x-value-validatio-v1.2

Conversation

@Yicong-Huang

@Yicong-Huang Yicong-Huang commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Backport of #6894 to release/v1.2, cherry-picked from bb7af8d. The cherry-pick applied cleanly.

Follows the Direct Backport Push convention; opened as a PR (rather than a direct push) per a backport-coverage audit.

Any related issues, documentation, discussions?

Backport of #6894. Originally linked #6728.

How was this PR tested?

Release-branch CI runs on this PR. Cherry-pick applied cleanly onto release/v1.2; no manual conflict resolution was needed.

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

Yes — backport prepared with Claude Code (mechanical cherry-pick; the change itself is #6894 by its original author).

🤖 Generated with Claude Code

### What changes were proposed in this PR?

Fixed the FilledAreaPlot validation logic for grouped data with shared
X-values.

```diff
- X_values = x_values.union(set(group[$x].unique()))
+ x_values = x_values.union(set(group[$x].unique()))
```
Previously, the validation incorrectly handled X-value comparisons
between groups, causing valid charts to be rejected. The logic was
updated so that X-values are tracked across groups correctly when
checking whether groups share compatible X attributes.

Before:
<img width="1197" height="684" alt="Screenshot 2026-07-23 at 2 42 16 AM"
src="https://github.com/user-attachments/assets/51936cc6-a207-4afd-94e4-a0206db651ba"
/>

After:
<img width="1198" height="601" alt="Screenshot 2026-07-25 at 2 17 10 AM"
src="https://github.com/user-attachments/assets/50dbb422-cad3-4623-92c8-ba5c7ca79dde"
/>

### Any related issues, documentation, discussions?

Fixes #6728

### How was this PR tested?

Tested by running Texera locally and executing a FilledAreaPlot workflow
with grouped data.
CSV File:

[filled_area_test.csv](https://github.com/user-attachments/files/30370844/filled_area_test.csv)

Verified:
- Valid grouped charts are accepted and rendered.
- Invalid inputs missing X/Y attributes still return the appropriate
error message.
- Python UDF execution works after generating Python proto bindings and
installing required Python dependencies.

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

(backported from commit bb7af8d)

Generated-by: ChatGPT (GPT-5.5-mini)
@Yicong-Huang Yicong-Huang added the release/v1.2 back porting to release/v1.2 label Jul 29, 2026
@Yicong-Huang
Yicong-Huang requested a review from xuang7 July 29, 2026 04:11
@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @officialasishkumar
    You can notify them by mentioning @officialasishkumar in a comment.

@Yicong-Huang Yicong-Huang removed the release/v1.2 back porting to release/v1.2 label Jul 29, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.39%. Comparing base (fd5f487) to head (b8d86a0).
⚠️ Report is 2 commits behind head on release/v1.2.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@                Coverage Diff                 @@
##             release/v1.2    #6998      +/-   ##
==================================================
- Coverage           53.95%   52.39%   -1.57%     
- Complexity           1441     2491    +1050     
==================================================
  Files                 809     1077     +268     
  Lines               34144    42267    +8123     
  Branches             3448     4548    +1100     
==================================================
+ Hits                18421    22144    +3723     
- Misses              14815    18815    +4000     
- Partials              908     1308     +400     
Flag Coverage Δ *Carryforward flag
access-control-service 64.61% <ø> (ø)
agent-service 34.36% <ø> (ø) Carriedforward from fd5f487
amber 52.51% <100.00%> (-7.10%) ⬇️
computing-unit-managing-service 1.65% <ø> (ø)
config-service 56.06% <ø> (ø)
file-service 58.59% <ø> (ø)
frontend 47.19% <ø> (ø) Carriedforward from fd5f487
pyamber 90.87% <ø> (ø) Carriedforward from fd5f487
python 90.74% <ø> (ø) Carriedforward from fd5f487
workflow-compiling-service 58.69% <ø> (ø)

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

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@xuang7
xuang7 merged commit d1396b1 into release/v1.2 Jul 29, 2026
54 of 56 checks passed
@xuang7
xuang7 deleted the backport/6894-correct-filledareaplot-x-value-validatio-v1.2 branch July 29, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants