-
Notifications
You must be signed in to change notification settings - Fork 386
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix list jobs and intervals mismatch #3767
Fix list jobs and intervals mismatch #3767
Conversation
Fix a mismatch between to endpoints when filtering by concurrency key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
馃憤 Looks good to me! Reviewed everything up to fb0a6c7 in 4 minutes and 18 seconds
More details
- Looked at
1107
lines of code in7
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_dOyg2PeMQseZ8TnX
You can customize Ellipsis with 馃憤 / 馃憥 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
馃憤 Looks good to me! Reviewed everything up to 7ca08be in 3 minutes and 45 seconds
More details
- Looked at
1171
lines of code in7
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_MRLO2sOnUkRvgq8s
You can customize Ellipsis with 馃憤 / 馃憥 feedback, review rules, user-specific overrides, quiet
mode, and more.
)); | ||
} | ||
|
||
const QJ_FIELDS: &[&str] = &[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is that different from the ones of list_jobs ? Can we make it a common const if yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
馃憤 Looks good to me! Incremental review on c11e1a2 in 4 minutes and 41 seconds
More details
- Looked at
45
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. backend/windmill-api/src/concurrency_groups.rs:394
- Draft comment:
Consider renamingget_concurrent_intervals
toget_concurrent_jobs
to align with the new endpoint naming convention (/list_jobs
). This will improve consistency and readability. - Reason this comment was not posted:
Confidence of 0% on close inspection, compared to threshold of 50%.
Workflow ID: wflow_O0Srw3q5Ci5LBgE7
You can customize Ellipsis with 馃憤 / 馃憥 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
馃憤 Looks good to me! Incremental review on 6b08034 in 2 minutes and 38 seconds
More details
- Looked at
193
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. backend/windmill-api/src/jobs.rs:936
- Draft comment:
The functionfilter_list_queue_query
is quite complex and handles many different conditions for filtering SQL queries. Consider refactoring this function to improve readability and maintainability. Breaking it down into smaller, more focused functions could help manage complexity, especially as new filters might be added in the future. - Reason this comment was not posted:
Confidence of 0% on close inspection, compared to threshold of 50%.
Workflow ID: wflow_Rp1ZBtfbtMttM7b6
You can customize Ellipsis with 馃憤 / 馃憥 feedback, review rules, user-specific overrides, quiet
mode, and more.
Summary:
Refactored job listing and concurrency handling in the backend and updated frontend components to use the new API structure.
Key points:
/intervals
endpoint to/list_jobs
inconcurrency_groups.rs
.openapi.yaml
to reflect new endpoint and data structures.concurrency_groups.rs
for new endpoint and data handling.ConcurrentJobsChart.svelte
,JobLoader.svelte
, andRunsTable.svelte
to use updated API.Generated with 鉂わ笍 by ellipsis.dev
Summary:
Refactored job listing and concurrency handling in the backend and updated frontend components to use the new API structure, with enhanced data privacy features and improved efficiency.
Key points:
get_concurrent_intervals
inconcurrency_groups.rs
to handle job listings with concurrency keys and user permissions./concurrency_groups.rs
and/jobs.rs
.Generated with 鉂わ笍 by ellipsis.dev