Visitar URL original
refactor(frontend): remove the unused hub accessLevel input by aglinxinyuan · Pull Request #8894 · apache/texera · GitHub
Skip to content

refactor(frontend): remove the unused hub accessLevel input - #8894

Merged
aglinxinyuan merged 1 commit into
apache:mainfrom
aglinxinyuan:refactor/fe-hub-search-result-access-level
Oct 10, 2026
Merged

aglinxinyuan merged 1 commit into
apache:mainfrom
aglinxinyuan:refactor/fe-hub-search-result-access-level

Conversation

@aglinxinyuan

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Removes the unused @Input() public accessLevel from HubSearchResultComponent, and Input from its @angular/core import, since that was the file's only input. +1/−2 lines. There is no behaviour change. The component is only reached through the three hub routes, whose data carries only entityType. Router input binding (withComponentInputBinding) is not enabled, no template uses the component's selector, and nothing creates it dynamically. Its own template and code never read accessLevel.

History

Introduced by #2838 (2024-09-25), "Refactor Hub Workflow Search Results and Permission-Based Redirection", copied along with other inputs from UserWorkflowComponent
Usage removed by never used. Nothing has ever bound, assigned or read it

It has been unused for the year since it was added.

Any related issues, documentation, discussions?

Closes #8893

How was this PR tested?

No new tests; no spec referenced the input.

From frontend/:

  • npx ng test --watch=false --include='**/hub-search-result.component.spec.ts': 31 tests, all pass. No other spec renders this component.
  • yarn format:ci: clean.
  • npx ng build: success.

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

Generated-by: Claude Code (Claude Opus 5.5)

🤖 Generated with Claude Code

apache#2838 copied @input() accessLevel into HubSearchResultComponent from
UserWorkflowComponent, but the component is only reached through routes
that never set it, and nothing reads it. Drop the input and the now-unused
Input import.
Copilot AI balanced review requested due to automatic review settings October 7, 2026 05:45

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added refactor Refactor the code frontend Changes related to the frontend GUI labels Oct 7, 2026
@aglinxinyuan aglinxinyuan changed the title refactor(frontend): remove the unused hub search accessLevel input refactor(frontend): remove the unused hub accessLevel input Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026

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: @tanishqgandhi1908
    You can notify them by mentioning @tanishqgandhi1908 in a comment.

@aglinxinyuan
aglinxinyuan requested a review from kunwp1 October 7, 2026 05:52
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.59%. Comparing base (b760489) to head (8e64f12).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8894      +/-   ##
============================================
- Coverage     92.59%   92.59%   -0.01%     
  Complexity     5043     5043              
============================================
  Files          1252     1252              
  Lines         53583    53582       -1     
  Branches       6672     6672              
============================================
- Hits          49615    49614       -1     
  Misses         2319     2319              
  Partials       1649     1649              
Flag Coverage Δ *Carryforward flag
access-control-service 77.38% <ø> (ø) Carriedforward from b760489
agent-service 99.16% <ø> (ø) Carriedforward from b760489
amber 88.07% <ø> (ø) Carriedforward from b760489
computing-unit-managing-service 60.41% <ø> (ø) Carriedforward from b760489
config-service 87.37% <ø> (ø) Carriedforward from b760489
file-service 81.53% <ø> (ø) Carriedforward from b760489
frontend 96.58% <ø> (-0.01%) ⬇️
notebook-migration-service 83.73% <ø> (ø) Carriedforward from b760489
pyamber 98.58% <ø> (ø) Carriedforward from b760489
workflow-compiling-service 74.09% <ø> (ø) Carriedforward from b760489

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

Copilot AI 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.

🟢 Approval recommended

No unresolved issues were identified.

0 open findings

🧠 Review effort: Lite


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@aglinxinyuan
aglinxinyuan added this pull request to the merge queue Oct 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Oct 8, 2026
@aglinxinyuan
aglinxinyuan added this pull request to the merge queue Oct 10, 2026
Merged via the queue into apache:main with commit 05d48eb Oct 10, 2026
32 checks passed
@aglinxinyuan
aglinxinyuan deleted the refactor/fe-hub-search-result-access-level branch October 10, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes related to the frontend GUI refactor Refactor the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the unused accessLevel input from HubSearchResultComponent

4 participants