-
Notifications
You must be signed in to change notification settings - Fork 25
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
Dont crash job list for unknown jobs #8300
Dont crash job list for unknown jobs #8300
Conversation
📝 WalkthroughWalkthroughThis pull request introduces several improvements to the WEBKNOSSOS platform, focusing on job management, AI model training, and user interface enhancements. The changes primarily address issues with job listing, particularly for unknown job types, and improve the rendering of job descriptions. The modifications include adding a new function to handle training data links, updating job type descriptions, and preventing crashes in the processing jobs list when encountering deleted job types. Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
35f1577
to
95aec18
Compare
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
CHANGELOG.unreleased.md
(1 hunks)frontend/javascripts/admin/api/jobs.ts
(1 hunks)frontend/javascripts/admin/job/job_list_view.tsx
(5 hunks)frontend/javascripts/admin/voxelytics/ai_model_list_view.tsx
(2 hunks)
🔇 Additional comments (5)
frontend/javascripts/admin/voxelytics/ai_model_list_view.tsx (1)
180-180
: LGTM! Good refactoring.The change improves code maintainability by reusing the centralized
getShowTrainingDataLink
function.frontend/javascripts/admin/job/job_list_view.tsx (3)
63-105
: LGTM! Well-structured utility function.The function effectively handles different cases:
- Null check for missing annotations
- Modal for multiple annotations
- Direct link for single annotation
262-262
: LGTM! Consistent verb tense.Changed to present tense to align with other job descriptions.
Line range hint
280-395
: LGTM! Improved job description handling.The changes:
- Add proper support for
TRAIN_MODEL
andINFER_WITH_MODEL
jobs- Improve handling of unknown job types by showing both result link and text
CHANGELOG.unreleased.md (1)
50-50
: LGTM! Clear changelog entry.The entry accurately describes the fix implemented in the code.
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.
cool, lgtm :) don't forget to remove the dev-related code.
Steps to test:
TODOs:
Issues:
(Please delete unneeded items, merge only when none are left open)