Skip to content

fix(serverless): show runtime columns and honor log sort - #131

Merged
Ryank90 merged 2 commits into
rc/serverlessfrom
feat/serverless-table-runtime
Sep 23, 2026
Merged

Ryank90 merged 2 commits into
rc/serverlessfrom
feat/serverless-table-runtime

Conversation

@Ryank90

@Ryank90 Ryank90 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • apps show tables include effective max workers, active workers, queue depth, and 24h requests.
  • Endpoint list and show include status, req/min, p95, and p99. Task list and show include the endpoint path.
  • apps logs honors --sort oldest|newest (default oldest) and prints both next and previous cursors, without reversing the API page.

Test plan

  • apps show table includes the runtime rows when the API returns them
  • apps endpoints list and apps tasks list show the new columns
  • apps logs --sort newest prints newest first, and the cursor hints include --sort newest plus a previous page when prevCursor is set

App, endpoint, and task tables were hiding fields the API already returns, and logs reversed every page so --sort and prevCursor could not be used.
@coderabbitai

coderabbitai Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. To trigger a review, include coderabbit-review in the PR description. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 5c772d2d-4210-4d90-8005-13773be34766

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Comment thread internal/cmd/serverless/apps_logs.go Outdated
return string(*rt.Status)
}

func formatEndpointRate(rt *serverlessapi.EndpointRuntime) string {

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.

suggestion (non-blocking): formatEndpointRate, formatEndpointP95 and formatEndpointP99 repeat the same nil guard, and both endpoint tables repeat the same four calls. Use one endpointRuntimeCells(rt) helper that returns the four cells, and call it from endpointsResult and endpointResult.

Comment thread internal/cmd/serverless/display_test.go Outdated
A plain apps logs now fetches newest (the API default) and prints oldest first, so --follow continues from the latest entries instead of the oldest twenty in the window.

@wilsonsilva wilsonsilva 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.

The default sort fix looks good. Plain apps logs shows the latest entries again. Thanks!

@Ryank90
Ryank90 merged commit 9db6541 into rc/serverless Sep 23, 2026
4 checks passed
@Ryank90
Ryank90 deleted the feat/serverless-table-runtime branch September 23, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants