Skip to content

refactor: remove request_id from cursors#3093

Merged
chronark merged 10 commits intomainfrom
fix-cursors
Apr 14, 2025
Merged

refactor: remove request_id from cursors#3093
chronark merged 10 commits intomainfrom
fix-cursors

Conversation

@ogzhanolguncu
Copy link
Contributor

@ogzhanolguncu ogzhanolguncu commented Apr 9, 2025

What does this PR do?

Fixes # (issue)

If there is not an issue for this, please create one first. This is used to tracking purposes and also helps use understand why this PR exists

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • Enhancement (small improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How should this be tested?

  • Test A
  • Test B

Checklist

Required

  • Filled out the "How to test" section in this PR
  • Read Contributing Guide
  • Self-reviewed my own code
  • Commented on my code in hard-to-understand areas
  • Ran pnpm build
  • Ran pnpm fmt
  • Checked for warnings, there are none
  • Removed all console.logs
  • Merged the latest changes from main onto my branch with git pull origin main
  • My changes don't cause any responsiveness issues

Appreciated

  • If a UI change was made: Added a screen recording or screenshots to this PR
  • Updated the Unkey Docs if changes were necessary

Summary by CodeRabbit

  • Refactor
    • Streamlined log retrieval and pagination across dashboard and rate limit views. This update simplifies data loading to provide a more consistent and efficient log browsing experience.

@vercel
Copy link

vercel bot commented Apr 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
engineering ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 11:38am
play ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 11:38am
www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2025 11:38am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
dashboard ⬜️ Ignored (Inspect) Visit Preview Apr 14, 2025 11:38am

@changeset-bot
Copy link

changeset-bot bot commented Apr 9, 2025

⚠️ No Changeset found

Latest commit: f55f257

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Apr 9, 2025

📝 Walkthrough

Walkthrough

This pull request simplifies pagination handling across log query implementations. The changes remove the initialCursor option from infinite query hooks and streamline cursor handling. In several schema definitions, the cursor property is changed from a complex object (with requestId and time) to a simple, nullable number. The updates extend to TRPC router procedures, associated utility functions, test cases, and internal ClickHouse queries, where handling of pagination now relies solely on a numeric cursor value.

Changes

File(s) Change Summary
apps/dashboard/app/(app)/.../hooks/use-logs-query.ts Removed initialCursor property from options in useInfiniteQuery calls across API, logs, and ratelimit hooks.
apps/dashboard/app/(app)/.../query-logs.schema.ts Simplified cursor schema from an object with requestId and time to a nullable number for keys, logs, and ratelimits.
apps/dashboard/lib/trpc/routers/** Updated TRPC procedures and utility functions (including tests) to use a numeric cursor, removed cursorRequestId, and adjusted the construction of nextCursor accordingly for API keys, logs, and ratelimits.
internal/clickhouse/src/** Removed cursorRequestId from parameter schemas and SQL queries in keys, logs, and ratelimit modules; pagination logic now relies solely on cursorTime.

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant Hook
    participant TRPC
    participant DB
    Client->>Hook: Request logs (optional cursor)
    Hook->>TRPC: Execute query with numeric cursor
    TRPC->>DB: Run SQL query using cursorTime condition
    DB-->>TRPC: Return logs and last log time (nextCursor)
    TRPC-->>Hook: Respond with logs and nextCursor
    Hook-->>Client: Render logs with updated pagination
Loading

Possibly related PRs


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 510913f and 9de1d04.

📒 Files selected for processing (2)
  • apps/dashboard/lib/trpc/routers/logs/query-logs/utils.ts (1 hunks)
  • internal/clickhouse/src/logs.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/dashboard/lib/trpc/routers/logs/query-logs/utils.ts
🔇 Additional comments (3)
internal/clickhouse/src/logs.ts (3)

145-162: Clean refactoring to simplify cursor logic.

The pagination mechanism has been streamlined by removing the cursorRequestId dependency and using only cursorTime for cursor-based pagination. This simplification makes the code more maintainable while preserving the correct functionality.

The SQL query now has a cleaner WHERE clause for cursor pagination and simplified ordering that only depends on time. This aligns with the PR objective to remove request_id from cursors.


20-22: Schema definition properly updated to match cursor simplification.

The removal of cursorRequestId from the schema and keeping only cursorTime aligns correctly with the query changes. This ensures type safety and consistency throughout the codebase.


160-160:

Details

✅ Verification successful

Verify query works with simplified cursor condition.

The cursor condition AND ({cursorTime: Nullable(UInt64)} IS NULL OR time < {cursorTime: Nullable(UInt64)}) correctly handles both initial loads (when cursor is null) and pagination (when cursor has a value). This preserves the intended pagination behavior while simplifying the implementation.


🏁 Script executed:

#!/bin/bash
# Check for other usages of request_id in cursor conditions to ensure complete refactoring
rg -A 3 -B 3 "cursorRequestId|request_id.*cursor|cursor.*request_id" --type ts

Length of output: 654


Simplified Cursor Condition Verified
The query now solely uses cursorTime to control both initial loads (when the cursor is null) and pagination (when a cursor value is provided). Our verification confirms that no additional cursor conditions related to request_id remain in production code—only tests in apps/dashboard/lib/trpc/routers/logs/query-logs/utils.test.ts reference cursorRequestId for test scenarios, which appears intentional.

✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 9, 2025

Thank you for following the naming conventions for pull request titles! 🙏

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (4)
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/table/query-logs.schema.ts (1)

40-40: Simplified cursor schema from object to number

The cursor schema has been simplified from an object with requestId and time properties to a single nullable number value, which aligns with the PR's goal of removing request_id from cursors.

However, there are redundant nullable modifiers in the schema definition.

-  cursor: z.number().nullable().optional().nullable(),
+  cursor: z.number().nullable().optional(),
apps/dashboard/app/(app)/apis/[apiId]/_overview/components/table/query-logs.schema.ts (1)

14-14: Simplified cursor schema from object to number

The cursor schema has been simplified from an object with requestId and time properties to a single nullable number value, which aligns with the PR's goal of removing request_id from cursors.

However, there are redundant nullable modifiers in the schema definition.

-  cursor: z.number().nullable().optional().nullable(),
+  cursor: z.number().nullable().optional(),
apps/dashboard/app/(app)/logs/components/table/query-logs.schema.ts (1)

59-59: Redundant nullable() call in cursor schema definition

The cursor field definition has .nullable() applied twice, which is redundant and may cause confusion. You should only apply it once.

-  cursor: z.number().nullable().optional().nullable(),
+  cursor: z.number().nullable().optional(),
apps/dashboard/app/(app)/ratelimits/[namespaceId]/_overview/components/table/query-logs.schema.ts (1)

33-33: Redundant nullable() call in cursor schema definition

The cursor field definition has .nullable() applied twice, which is redundant and may cause confusion. You should only apply it once.

-  cursor: z.number().nullable().optional().nullable(),
+  cursor: z.number().nullable().optional(),
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e501501 and 510913f.

📒 Files selected for processing (21)
  • apps/dashboard/app/(app)/apis/[apiId]/_overview/components/table/hooks/use-logs-query.ts (0 hunks)
  • apps/dashboard/app/(app)/apis/[apiId]/_overview/components/table/query-logs.schema.ts (1 hunks)
  • apps/dashboard/app/(app)/logs/components/table/hooks/use-logs-query.ts (0 hunks)
  • apps/dashboard/app/(app)/logs/components/table/query-logs.schema.ts (1 hunks)
  • apps/dashboard/app/(app)/ratelimits/[namespaceId]/_overview/components/table/hooks/use-logs-query.ts (0 hunks)
  • apps/dashboard/app/(app)/ratelimits/[namespaceId]/_overview/components/table/query-logs.schema.ts (1 hunks)
  • apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/table/hooks/use-logs-query.ts (0 hunks)
  • apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/table/query-logs.schema.ts (1 hunks)
  • apps/dashboard/app/auth/actions.ts (1 hunks)
  • apps/dashboard/lib/trpc/routers/api/keys/query-overview-logs/index.ts (3 hunks)
  • apps/dashboard/lib/trpc/routers/api/keys/query-overview-logs/utils.ts (1 hunks)
  • apps/dashboard/lib/trpc/routers/logs/query-logs/index.ts (3 hunks)
  • apps/dashboard/lib/trpc/routers/logs/query-logs/utils.test.ts (0 hunks)
  • apps/dashboard/lib/trpc/routers/logs/query-logs/utils.ts (0 hunks)
  • apps/dashboard/lib/trpc/routers/ratelimit/query-logs/index.ts (3 hunks)
  • apps/dashboard/lib/trpc/routers/ratelimit/query-logs/utils.ts (1 hunks)
  • apps/dashboard/lib/trpc/routers/ratelimit/query-overview-logs/index.ts (3 hunks)
  • apps/dashboard/lib/trpc/routers/ratelimit/query-overview-logs/utils.ts (1 hunks)
  • internal/clickhouse/src/keys/keys.ts (2 hunks)
  • internal/clickhouse/src/logs.ts (1 hunks)
  • internal/clickhouse/src/ratelimits.ts (3 hunks)
💤 Files with no reviewable changes (6)
  • apps/dashboard/app/(app)/ratelimits/[namespaceId]/_overview/components/table/hooks/use-logs-query.ts
  • apps/dashboard/app/(app)/logs/components/table/hooks/use-logs-query.ts
  • apps/dashboard/lib/trpc/routers/logs/query-logs/utils.ts
  • apps/dashboard/lib/trpc/routers/logs/query-logs/utils.test.ts
  • apps/dashboard/app/(app)/apis/[apiId]/_overview/components/table/hooks/use-logs-query.ts
  • apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/table/hooks/use-logs-query.ts
🧰 Additional context used
🧠 Learnings (1)
internal/clickhouse/src/ratelimits.ts (1)
Learnt from: ogzhanolguncu
PR: unkeyed/unkey#2896
File: internal/clickhouse/src/ratelimits.ts:468-592
Timestamp: 2025-04-02T16:10:31.720Z
Learning: The cursor logic in getRatelimitOverviewLogs query uses (time, request_id) < (cursorTime, cursorRequestId) comparison which works well with descending order but may need adjustment for ascending sorts based on real usage patterns.
🧬 Code Graph Analysis (1)
apps/dashboard/app/auth/actions.ts (1)
apps/dashboard/lib/auth/types.ts (1)
  • errorMessages (178-194)
⏰ Context from checks skipped due to timeout of 90000ms (13)
  • GitHub Check: Test Packages / Test ./packages/nextjs
  • GitHub Check: Test Go API Local / Test (Shard 6/8)
  • GitHub Check: Test Go API Local / Test (Shard 5/8)
  • GitHub Check: Test Packages / Test ./internal/encryption
  • GitHub Check: Test Packages / Test ./packages/rbac
  • GitHub Check: Test Packages / Test ./internal/hash
  • GitHub Check: Test API / API Test Local
  • GitHub Check: Test Packages / Test ./internal/keys
  • GitHub Check: Test Packages / Test ./packages/api
  • GitHub Check: Test Agent Local / test_agent_local
  • GitHub Check: Build / Build
  • GitHub Check: autofix
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (26)
apps/dashboard/app/auth/actions.ts (1)

167-167: Fixed missing comma in object literal

Added the missing comma after the message property, ensuring proper JavaScript object syntax.

apps/dashboard/lib/trpc/routers/ratelimit/query-overview-logs/utils.ts (1)

39-39: Simplified cursor handling by removing requestId

The cursor handling has been simplified by replacing the extraction of separate requestId and time properties with a single cursorTime value. This aligns with the PR's goal of removing request_id from cursors.

apps/dashboard/lib/trpc/routers/ratelimit/query-logs/utils.ts (1)

37-37: Cursor handling simplification looks good

The simplified cursor handling correctly implements the refactoring that removes the request_id from cursors.

internal/clickhouse/src/logs.ts (1)

145-169: Good refactoring of the pagination query

The SQL query has been successfully simplified to use only the time-based cursor, which streamlines the pagination logic. This is a positive change that aligns with removing request_id from cursors throughout the application.

apps/dashboard/lib/trpc/routers/api/keys/query-overview-logs/utils.ts (1)

54-54: Simplified cursor handling

The cursor handling has been streamlined by directly using the cursor value instead of extracting the time property from a cursor object. This change aligns with the PR goal of removing request_id from cursors.

apps/dashboard/lib/trpc/routers/ratelimit/query-logs/index.ts (3)

14-14: Simplified cursor schema

The nextCursor schema has been changed from an object to a single optional integer, which matches the PR objective of simplifying cursor handling.


59-59: Simplified cursor parameter handling

The cursor parameter handling is now more straightforward, directly using the input.cursor value instead of extracting time and requestId from an object.


78-78: Simplified cursor value in response

The nextCursor value is now directly set to the timestamp of the last record instead of constructing an object with both time and requestId properties.

internal/clickhouse/src/ratelimits.ts (4)

582-582: Updated ORDER BY clause to remove request_id

The ORDER BY clause has been simplified to only reference time-related fields, removing request_id. This is consistent with the PR objectives.

I notice that you're using the retrieved learning about cursor logic in getRatelimitOverviewLogs that previously leveraged both time and request_id for pagination. The current implementation still includes time direction handling which should maintain proper pagination order.


586-602: Streamlined cursor condition logic

The cursor condition logic has been simplified to focus solely on time-based comparisons rather than composite conditions with both time and requestId. This change:

  1. Makes the code more readable
  2. Aligns with the PR objective of removing request_id from cursors
  3. Maintains proper direction handling for ascending/descending pagination

357-359:

Details

✅ Verification successful

Simplified cursor condition

The cursor condition has been simplified to only check the time field rather than using a compound condition with both time and requestId. This aligns with the PR goal of removing request_id from cursors.


🏁 Script executed:

#!/bin/bash
# Check existing query patterns for time-based cursors in other files
echo "Checking for similar cursor pattern usage across the codebase:"
rg --type ts "cursorTime.*IS NULL OR time" -A 1 -B 1

Length of output: 419


Cursor condition simplified and verified

The updated implementation now leverages a time-only condition:

AND (
    {cursorTime: Nullable(UInt64)} IS NULL OR time < {cursorTime: Nullable(UInt64)}
)

This change meets the PR’s goal of removing the compound condition that previously involved request_id. A grep search across the codebase confirms that the pattern is correctly applied in internal/clickhouse/src/ratelimits.ts and no remnants of request_id-based conditions remain.


398-398:

Details

❓ Verification inconclusive

Removed request_id from ORDER BY clause

The ORDER BY clause now only sorts by time in descending order, removing the request_id field. This could potentially affect pagination consistency if multiple records share the exact same timestamp.

Consider testing pagination with data that contains duplicate timestamps to ensure consistent results. The uniqueness of time values at millisecond precision should be sufficient in most cases, but this could be a concern with high-frequency events.


🏁 Script executed:

#!/bin/bash
# Look for similar ORDER BY patterns in other query files
echo "Checking for similar ORDER BY patterns across the codebase:"
rg --type ts "ORDER BY.*time DESC" -A 3 -B 3

Length of output: 2136


Action: Verify Pagination Consistency When Ordering by Timestamp Only

The change in internal/clickhouse/src/ratelimits.ts now orders results solely by time (using ORDER BY fr.time DESC), which aligns with similar patterns in other parts of the codebase (e.g., in logs.ts and latest_verifications.ts). Although millisecond precision generally provides sufficient uniqueness under normal conditions, there's a potential risk of pagination inconsistencies when multiple records share the same timestamp, particularly with high-frequency events.

Recommendations:

  • Test Pagination: Run pagination tests with data containing duplicate timestamps to confirm that the results stay consistent.
  • Monitor Edge Cases: Validate that the reliance on the millisecond-precision timestamp does not lead to unexpected ordering issues.
apps/dashboard/lib/trpc/routers/ratelimit/query-overview-logs/index.ts (3)

14-14: Simplified cursor schema

The nextCursor schema has been changed from an object to a single optional integer value, which matches the PR objective of removing request_id from cursors.


59-59: Simplified cursor parameter handling

The cursor parameter handling has been streamlined to directly use the input.cursor value instead of extracting time and requestId from an object structure.


80-82: Simplified nextCursor value in response

The nextCursor value is now directly set to the timestamp of the last record instead of constructing an object with both time and requestId properties. This simplification is consistent with the changes in other files.

internal/clickhouse/src/keys/keys.ts (5)

216-217: Change to time-only cursor condition handling looks correct.

The removal of request_id from cursors has been implemented correctly here, with the conditional now only checking for cursorTime instead of both time and request ID.


219-219: SQL cursor condition correctly updated.

The cursor condition SQL has been properly updated to only reference cursorTime instead of both time and request ID parameters.


225-226: Pagination conditions correctly simplified.

Both ascending and descending time conditions have been updated to only reference the time parameter, consistently with the cursor refactoring.

Also applies to: 229-230


253-254: Updated comment accurately reflects the implementation change.

The comment now correctly indicates that pagination uses only time as a cursor, which matches the implementation.


209-211: Order by clause correctly simplified.

The ORDER BY clause has been updated to only consider time for pagination, which aligns with the cursor simplification approach.

apps/dashboard/lib/trpc/routers/logs/query-logs/index.ts (3)

14-14: Schema update to simplify nextCursor type.

The nextCursor property has been correctly updated from an object to a simple integer, aligning with the removal of request_id from cursors.


50-50: Simplified cursor parameter passing.

The function call now correctly passes input.cursor ?? null directly as cursorTime, rather than extracting both time and request ID from a complex object.


70-70: nextCursor construction simplified.

The construction of nextCursor now correctly uses just the time from the last log entry instead of creating an object with both time and request ID.

apps/dashboard/lib/trpc/routers/api/keys/query-overview-logs/index.ts (3)

13-13: Schema update to simplify nextCursor type.

The nextCursor property has been correctly updated from an object to a simple integer, consistent with the cursor simplification across the codebase.


44-44: Simplified cursor parameter passing.

The function call now correctly passes input.cursor ?? null directly as cursorTime, aligning with the updated parameter structure in the clickhouse API.


96-96: nextCursor construction simplified.

The construction of nextCursor has been correctly updated to only use the time value from the last log entry, consistent with the cursor simplification strategy.

Copy link
Contributor Author

btw, AND was required for running the cursor after WHERE string filter

WHERE ${filterConditions} AND ({cursorTime: Nullable(UInt64)} IS NULL OR time < {cursorTime: Nullable(UInt64)})

like this. anyways I made it shorter case was redundant

Copy link
Collaborator

chronark commented Apr 9, 2025

yeah that’s why I deleted my comment, haha

Copy link
Contributor Author

now you gaslighting me :pepehands:

@chronark chronark enabled auto-merge April 14, 2025 11:36
@chronark chronark added this pull request to the merge queue Apr 14, 2025
Merged via the queue into main with commit ea2fe44 Apr 14, 2025
25 of 36 checks passed
@chronark chronark deleted the fix-cursors branch April 14, 2025 11:40
chronark added a commit that referenced this pull request Apr 14, 2025
* refactor: remove request_id from cursors (#3093)

* refactor: remove requestid from logs cursor

* fix: cursor object

* refactor: remove request_id from ratelimit overview cursor

* refactor: remove request_id from ratelimit logs

* refactor: remove request id from api cursor

* fix: type issue and make query shorter

---------

Co-authored-by: Andreas Thomas <dev@chronark.com>

* feat: errors v2 (#3110)

* feat: /v2/apis/createApi endpoint

* ci: install api dependencies

* feat: errors

* [autofix.ci] apply automated fixes

* revert: breaking changes

* revert: bad copypaste

* fix: bad copypaste

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* feat: use axiom

* fix: don't hide the cool dots

---------

Co-authored-by: Oğuzhan Olguncu <21091016+ogzhanolguncu@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
@coderabbitai coderabbitai bot mentioned this pull request Apr 14, 2025
18 tasks
chronark added a commit that referenced this pull request Apr 15, 2025
* add: initial layout

* feat: add new api keys page

* feat: add color to expires badge

* [autofix.ci] apply automated fixes

* feat: add chart

* feat: finalize usage chart

* fix: expires component

* fix: timestamps and chart colors

* fix: build issues

* feat: add draft of status popover

* fix: status cleanup

* feat: finalize status design

* fix: Style issues

* feat: add configurable skeletons to table

* fix: identitiy

* fix: total count

* chore: remove unused component

* feat: add two new operator to key id filter

* fix: type issues

* fix: identity filter

* feat: add ai saerch to keys

* fix: add status condition for disabled

* fix: some styling issues

* refactor: improve schema structure

* chore: remove unused types

* fix: navbar

* feat: add dynamic key to popover menu

* fix: coderabbit issues

* fix: number formatting and filtering logic for outcome explainer

* fix: empty state message

* refactor: refinements

* chore: remove old keys

* fix: import paths

* fix: header wording

* fix: secret hover (#3111)

* refactor: remove request_id from cursors (#3093)

* refactor: remove requestid from logs cursor

* fix: cursor object

* refactor: remove request_id from ratelimit overview cursor

* refactor: remove request_id from ratelimit logs

* refactor: remove request id from api cursor

* fix: type issue and make query shorter

---------

Co-authored-by: Andreas Thomas <dev@chronark.com>

* feat: errors v2 (#3110)

* feat: /v2/apis/createApi endpoint

* ci: install api dependencies

* feat: errors

* [autofix.ci] apply automated fixes

* revert: breaking changes

* revert: bad copypaste

* fix: bad copypaste

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* feat: use axiom

* fix: don't hide the cool dots

---------

Co-authored-by: Oğuzhan Olguncu <21091016+ogzhanolguncu@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* revert: bad commits

* fix: merge errors

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: chronark <dev@chronark.com>
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