Skip to content

[v18] feat: Bot instance sorting (web)#56696

Merged
nicholasmarais1158 merged 8 commits intobranch/v18from
nicholasmarais1158/backport-56024-branch/v18
Jul 15, 2025
Merged

[v18] feat: Bot instance sorting (web)#56696
nicholasmarais1158 merged 8 commits intobranch/v18from
nicholasmarais1158/backport-56024-branch/v18

Conversation

@nicholasmarais1158
Copy link
Copy Markdown
Contributor

Backport #56024 and #56136 to branch/v18

Depends on: #56163
Updates: #47342
Changelog: Bot instances are now sortable by latest heartbeat time in the web UI

nicholasmarais1158 and others added 6 commits June 27, 2025 12:50
* feat: Add bot instance cache

* Finalise cache implementation and add tests

* Appease the linter

* Return early in paging logic

* Fix import ordering/grouping

* Fix test cache setup

* Revert BotCache rename

* Clean-up commented code

* Revert imports order change

* Refactor to use generic getter and lister
# Conflicts:
#	lib/auth/authclient/api.go
#	lib/cache/cache.go
#	lib/cache/cache_test.go
#	lib/cache/collections.go
* feat: Add bot instance cache

* Finalise cache implementation and add tests

* Appease the linter

* Return early in paging logic

* Fix import ordering/grouping

* Fix test cache setup

* Revert BotCache rename

* Clean-up commented code

* Revert imports order change

* Refactor to use generic getter and lister

* feat(web): Add bot instance sorting

* Fix lint and tests

* Use `types.SortBy`

* Fix races in tests

* Handle unsupported upstream sorting

* Lint fix

* Add unhealthy cache UI test

* Use `history.replace` for paging, search and sort

* Refactor parsing and formatting of SortType

* Return unimplemented error on upstream sort

* Tidy up

* Keep legacy default sort

* Move unsupported sort error to upstream RPC

* Add unauthorised error test

* Increase `EventuallyWithT` times

* Update error messages
# Conflicts:
#	web/packages/teleport/src/BotInstances/List/BotInstancesList.tsx
@nicholasmarais1158 nicholasmarais1158 self-assigned this Jul 11, 2025
@nicholasmarais1158 nicholasmarais1158 marked this pull request as ready for review July 11, 2025 08:41
Base automatically changed from nicholasmarais1158/backport-55807-branch/v18 to branch/v18 July 14, 2025 19:41
…158/backport-56024-branch/v18

# Conflicts:
#	lib/auth/authclient/api.go
#	lib/auth/machineid/machineidv1/bot_instance_service.go
#	lib/cache/bot_instance.go
#	lib/cache/bot_instance_test.go
@nicholasmarais1158 nicholasmarais1158 added this pull request to the merge queue Jul 15, 2025
Merged via the queue into branch/v18 with commit eb4106a Jul 15, 2025
45 checks passed
@nicholasmarais1158 nicholasmarais1158 deleted the nicholasmarais1158/backport-56024-branch/v18 branch July 15, 2025 09:26
@doggydogworld doggydogworld mentioned this pull request Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants