-
Notifications
You must be signed in to change notification settings - Fork 90
feat(api-server): Add GET /usage/compression endpoint.
#2197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jackluo923
wants to merge
32
commits into
y-scope:main
Choose a base branch
from
jackluo923:feat/usage-api
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+923
−11
Open
Changes from 25 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
1685f8a
feat(api-server): add GET /usage/compression endpoint
925dc4c
Merge branch 'main' into feat/usage-api
jackluo923 519ddeb
Update components/api-server/src/client.rs
jackluo923 bf1efb3
Update components/api-server/src/routes.rs
jackluo923 2ea14c2
feat(api-server): improve compression usage endpoint
jackluo923 02c65d0
refactor(api-server): use strum + CompressionJobStatus enum for statu…
jackluo923 5e0b6a1
refactor(api-server): move CompressionUsageParams and validation to C…
jackluo923 89636eb
chore: regenerate api-server OpenAPI JSON
jackluo923 f930be2
refactor(api-server): inline job_status_clause into SQL format string
jackluo923 7bc9293
test(api-server): add limit validation regression tests
jackluo923 9dc7201
fix(api-server): handle empty job_statuses in get_compression_usage
jackluo923 d21d49a
style(api-server): format SQL query with one clause per line
jackluo923 d168efe
refactor(api-server): simplify GROUP BY using ANY_VALUE()
jackluo923 ad901e6
refactor(api-server): introduce ValidatedCompressionUsageParams types…
jackluo923 1f1f66b
fix(db): add idempotent migration for JOB_START_TIME_STATUS index
jackluo923 1d9e3e3
refactor(api-server): Address code review feedback.
jackluo923 d2d2178
fix(api-server): Allow explicit `job_status=pending` queries while ke…
jackluo923 3bcc249
test(api-server): Remove redundant strum tests, keep domain invariant.
jackluo923 05b495f
refactor(api-server): Use chrono types internally while keeping epoch…
jackluo923 4d9648a
refactor(api-server): Remove dead code branch for empty job_statuses.
jackluo923 7d271a7
fix(api-server): Update stale docstrings after review.
jackluo923 95635aa
docs(api-server): Document timestamp range error in TryFrom Errors se…
jackluo923 82a68e3
feat(api-server): Reject duplicate job_status values in compression u…
jackluo923 463a5e7
chore(api-server): Regenerate OpenAPI spec after enabling PENDING sta…
jackluo923 015885b
chore: Update Cargo.lock and fix formatting after lint pass.
jackluo923 22196a6
test(api-server): Add routes-level test for duplicate job_status reje…
jackluo923 99ea8f5
refactor(api-server): Make CompressionUsage OpenAPI fields user-orien…
jackluo923 8217b0a
docs(api-server): Remove redundant Note about Pending exclusion.
jackluo923 1a71b2e
refactor(api-server): Rename timestamp params to match QueryConfig, m…
jackluo923 05d85a9
docs(api-server): Remove inaccurate non-constructable claim from docs…
jackluo923 ad6f684
Update components/api-server/src/client.rs
jackluo923 602f81b
Merge branch 'main' into feat/usage-api
jackluo923 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.