This is an automated email from the ASF dual-hosted git repository.

github-merge-queue[bot] pushed a commit to branch 
gh-readonly-queue/main/pr-8894-f01f63d95ab7d16a9adc2c4126b1f467c115b102
in repository https://gitbox.apache.org/repos/asf/texera.git

commit 05d48eb94ca39912a38100696bdc2a1478402ece
Author: Xinyuan Lin <[email protected]>
AuthorDate: Sat Oct 10 08:50:06 2026 +0000

    refactor(frontend): remove the unused hub accessLevel input (#8894)
    
    ### 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](https://claude.com/claude-code)
---
 .../app/hub/component/hub-search-result/hub-search-result.component.ts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/frontend/src/app/hub/component/hub-search-result/hub-search-result.component.ts
 
b/frontend/src/app/hub/component/hub-search-result/hub-search-result.component.ts
index e2608a6fbe..9efb913ae9 100644
--- 
a/frontend/src/app/hub/component/hub-search-result/hub-search-result.component.ts
+++ 
b/frontend/src/app/hub/component/hub-search-result/hub-search-result.component.ts
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-import { AfterViewInit, Component, Input, OnInit, ViewChild } from 
"@angular/core";
+import { AfterViewInit, Component, OnInit, ViewChild } from "@angular/core";
 import { ActivatedRoute } from "@angular/router";
 import { NgIf } from "@angular/common";
 import { NzButtonComponent } from "ng-zorro-antd/button";
@@ -102,7 +102,6 @@ export class HubSearchResultComponent implements OnInit, 
AfterViewInit {
   }
   private masterFilterList: ReadonlyArray<string> | null = null;
 
-  @Input() public accessLevel?: string = undefined;
   public sortMethod = SortMethod.EditTimeDesc;
   lastSortMethod: SortMethod | null = null;
 

Reply via email to