Skip to content

Add endpoint for jobs#607

Merged
sascha11110 merged 2 commits intodevelopfrom
581-list-all-jobs
Oct 21, 2025
Merged

Add endpoint for jobs#607
sascha11110 merged 2 commits intodevelopfrom
581-list-all-jobs

Conversation

@david-venhoff
Copy link
Copy Markdown
Member

Short description

Adds an endpoint to list all jobs

Proposed changes

  • Add the endpoint
  • Remove outdated method get_nested_units from v1 which does not work anymore

Resolved issues

Fixes: #581

Copy link
Copy Markdown
Contributor

@sascha11110 sascha11110 left a comment

Choose a reason for hiding this comment

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

Works as expected! Only two suggestions for improving query performance

Comment thread lunes_cms/cmsv2/models/job.py Outdated
Comment thread lunes_cms/api/v2/serializers/job_serializer.py Outdated
@david-venhoff
Copy link
Copy Markdown
Member Author

Good point, I have rewritten it in terms of annotate now and removed the new method on the job model

@sascha11110 sascha11110 self-requested a review October 21, 2025 22:24
@sascha11110 sascha11110 merged commit db46cec into develop Oct 21, 2025
1 check passed
@sascha11110 sascha11110 deleted the 581-list-all-jobs branch October 21, 2025 22:25
@sascha11110 sascha11110 mentioned this pull request Nov 10, 2025
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.

API v2: List all jobs

2 participants