Skip to content

feat: Using stable key on tree lists on Hardware Details Page#1919

Open
alanpeixinho wants to merge 1 commit into
kernelci:mainfrom
profusion:feat/stablekey-hardware-details-tree-list
Open

feat: Using stable key on tree lists on Hardware Details Page#1919
alanpeixinho wants to merge 1 commit into
kernelci:mainfrom
profusion:feat/stablekey-hardware-details-tree-list

Conversation

@alanpeixinho
Copy link
Copy Markdown
Contributor

@alanpeixinho alanpeixinho commented May 25, 2026

What it is

Changes the default selection tree of hardware details page, from using index based selection, to a stable (hash based) selection.

How to test


  1. Open the hardware details page.
  2. Select a subset of trees.
  3. The query param x should be composed of hash based list of trees, and should match the selection based on index (production).

  1. Open the hardware details page.
  2. include a query parameter to select using old numeric indexes ?x[]=[0,1]
  3. Any url from the previous implementation (using indexes instead of hashes) should still work and lead to equivalent results.

Closes #1909

@alanpeixinho alanpeixinho force-pushed the feat/stablekey-hardware-details-tree-list branch 2 times, most recently from d6e30c2 to 7ad281b Compare May 26, 2026 20:56
  * Use a hash key from git_url, tree_name and branch to be sure we can
    select trees, without need of compatible ordering between frontend
    and backend.

  Closes kernelci#1909

Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
@alanpeixinho alanpeixinho force-pushed the feat/stablekey-hardware-details-tree-list branch from 7ad281b to 52b19d5 Compare May 26, 2026 21:23
@alanpeixinho alanpeixinho marked this pull request as ready for review May 26, 2026 21:23
@gustavobtflores gustavobtflores added the Backend Most or all of the changes for this issue will be in the backend code. label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend Most or all of the changes for this issue will be in the backend code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hardware details: replace index-based selectedTrees with stable tree identifiers

2 participants