Skip to content

chore(config): remove two orphaned GUI config flags with no consumers - #7137

Merged
Yicong-Huang merged 1 commit into
apache:mainfrom
Yicong-Huang:chore/remove-orphaned-gui-flags
Jul 31, 2026
Merged

Yicong-Huang merged 1 commit into
apache:mainfrom
Yicong-Huang:chore/remove-orphaned-gui-flags

Conversation

@Yicong-Huang

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Two GUI config flags were still defined and sent to the frontend but read by nobody. autoAttributeCorrectionEnabled lost its consumer when the schema auto-correct service was removed in #2578. expirationTimeInMinutes lost its only reader when token refresh was removed for security in #3765; the frontend now derives session expiry from the JWT itself. This removes both across every layer they touched: gui.conf, GuiConfig and its spec, the /gui config endpoint (dropping the now-unused AuthConfig import), and the frontend GuiConfig interface and mock. AuthConfig.jwtExpirationMinutes stays untouched — JwtAuth still uses it to sign real tokens.

Any related issues, documentation, discussions?

Closes #7135

How was this PR tested?

Dead-code removal, grep-verified no remaining references to either flag. Existing config specs (GuiConfigSpec, ConfigResourceSpec) continue to cover the config surface.

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

Generated-by: Claude Code (Claude Opus 4.8)

autoAttributeCorrectionEnabled lost its consumer when the schema
auto-correct service was deleted (apache#2578); expirationTimeInMinutes lost
its only reader when token refresh was removed for security (apache#3765).
Both were still defined and sent to the frontend while gating nothing.

Remove them across every layer: gui.conf, GuiConfig(+Spec), the /gui
config endpoint (dropping the now-unused AuthConfig import), and the
frontend GuiConfig interface and mock. AuthConfig.jwtExpirationMinutes
stays — JwtAuth still uses it to sign real tokens.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@github-actions github-actions Bot added frontend Changes related to the frontend GUI common platform Non-amber Scala service paths labels Jul 30, 2026
@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: @Ma77Ball, @aglinxinyuan
    You can notify them by mentioning @Ma77Ball, @aglinxinyuan in a comment.

@codecov-commenter

codecov-commenter commented Jul 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.58%. Comparing base (ffbda03) to head (3987248).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #7137      +/-   ##
============================================
- Coverage     79.59%   79.58%   -0.02%     
+ Complexity     3839     3834       -5     
============================================
  Files          1159     1159              
  Lines         46122    46118       -4     
  Branches       5127     5127              
============================================
- Hits          36710    36702       -8     
  Misses         7787     7787              
- Partials       1625     1629       +4     
Flag Coverage Δ *Carryforward flag
access-control-service 70.00% <ø> (ø)
agent-service 77.42% <ø> (ø) Carriedforward from ffbda03
amber 73.09% <ø> (-0.03%) ⬇️
computing-unit-managing-service 20.49% <ø> (ø)
config-service 65.97% <100.00%> (-0.69%) ⬇️
file-service 67.21% <ø> (ø)
frontend 83.05% <ø> (ø)
notebook-migration-service 78.94% <ø> (ø)
pyamber 97.36% <ø> (ø) Carriedforward from ffbda03
workflow-compiling-service 26.31% <ø> (ø)

*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.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Benchmark changes need a look

🟢 0 better · 🔴 10 worse · ⚪ 5 noise (<±5%) · 0 without baseline

Compared against main ffbda03 benchmarked on this same runner, so the delta is largely free of cross-runner hardware noise. The "7d avg" column still reflects the gh-pages dashboard. Treat <±5% as noise unless repeated.

Dashboard · Run

config throughput MB/s latency max Δ latest / 7d
🔴 bs=10 sw=10 sl=64 412 0.252 25,022/31,447/31,447 us 🔴 +18.5% / 🔴 +99.2%
🔴 bs=100 sw=10 sl=64 925 0.565 105,227/144,146/144,146 us 🔴 +26.7% / 🔴 +30.7%
⚪ bs=1000 sw=10 sl=64 1,103 0.673 909,446/961,699/961,699 us ⚪ within ±5% / 🟢 -10.5%
Baseline details

Latest main ffbda03 from same runner

config metric PR latest main 7d avg Δ latest Δ 7d
bs=10 sw=10 sl=64 throughput 412 tuples/sec 487 tuples/sec 771.62 tuples/sec -15.4% -46.6%
bs=10 sw=10 sl=64 MB/s 0.252 MB/s 0.297 MB/s 0.471 MB/s -15.2% -46.5%
bs=10 sw=10 sl=64 p50 25,022 us 21,201 us 12,626 us +18.0% +98.2%
bs=10 sw=10 sl=64 p95 31,447 us 26,546 us 15,786 us +18.5% +99.2%
bs=10 sw=10 sl=64 p99 31,447 us 26,546 us 19,344 us +18.5% +62.6%
bs=100 sw=10 sl=64 throughput 925 tuples/sec 1,006 tuples/sec 971.56 tuples/sec -8.1% -4.8%
bs=100 sw=10 sl=64 MB/s 0.565 MB/s 0.614 MB/s 0.593 MB/s -8.0% -4.7%
bs=100 sw=10 sl=64 p50 105,227 us 99,991 us 103,463 us +5.2% +1.7%
bs=100 sw=10 sl=64 p95 144,146 us 113,765 us 110,296 us +26.7% +30.7%
bs=100 sw=10 sl=64 p99 144,146 us 113,765 us 118,690 us +26.7% +21.4%
bs=1000 sw=10 sl=64 throughput 1,103 tuples/sec 1,105 tuples/sec 1,001 tuples/sec -0.2% +10.2%
bs=1000 sw=10 sl=64 MB/s 0.673 MB/s 0.674 MB/s 0.611 MB/s -0.1% +10.1%
bs=1000 sw=10 sl=64 p50 909,446 us 905,149 us 1,008,988 us +0.5% -9.9%
bs=1000 sw=10 sl=64 p95 961,699 us 937,625 us 1,055,260 us +2.6% -8.9%
bs=1000 sw=10 sl=64 p99 961,699 us 937,625 us 1,074,689 us +2.6% -10.5%
Raw CSV
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,484.98,200,128000,412,0.252,25021.58,31446.69,31446.69
1,100,10,64,20,2161.27,2000,1280000,925,0.565,105226.56,144146.05,144146.05
2,1000,10,64,20,18132.02,20000,12800000,1103,0.673,909446.32,961698.67,961698.67

@aglinxinyuan aglinxinyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Yicong-Huang
Yicong-Huang added this pull request to the merge queue Jul 31, 2026
Merged via the queue into apache:main with commit 6838993 Jul 31, 2026
36 checks passed
@Yicong-Huang
Yicong-Huang deleted the chore/remove-orphaned-gui-flags branch July 31, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common frontend Changes related to the frontend GUI platform Non-amber Scala service paths

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove two orphaned GUI config flags that no longer have consumers

3 participants