bb-plane-fork/apiserver/plane/app/views/issue
Nikhil b8043f92b1
[WEB-4373]: optimize backend query for workspace views and Project gantt view (#7267)
* feat: add IssueListDetailSerializer for detailed issue representation

- Introduced IssueListDetailSerializer to enhance issue data representation with expanded fields.
- Updated issue detail endpoint to utilize the new serializer for improved data handling.
- Added methods for retrieving related module, label, and assignee IDs, along with support for expanded relations.

* feat: add ViewIssueListSerializer and enhance issue ordering

- Introduced ViewIssueListSerializer for improved issue representation, including assignee, label, and module IDs.
- Updated WorkspaceViewIssuesViewSet to utilize the new serializer and optimized queryset with prefetching.
- Enhanced order_issue_queryset to maintain consistent ordering by created_at alongside other fields.
- Modified pagination logic to support total count retrieval for better performance.

* fix: optimize issue filtering and pagination logic

- Updated WorkspaceViewIssuesViewSet to apply filters more efficiently in the issue query.
- Refined pagination logic in OffsetPaginator to ensure consistent behavior using limit instead of cursor.value, improving overall pagination accuracy.

* fix: improve pagination logic in OffsetPaginator

- Updated the next_cursor calculation to use the length of results instead of cursor.value, ensuring accurate pagination behavior.
- Added a comment to clarify the purpose of checking for additional results after the current page.

* Move the common permission filters into a separate method

* fix: handle deleted related issues in serializers

- Updated IssueListDetailSerializer to skip null related issues when building relations.
- Enhanced ViewIssueListSerializer to safely access state.group, returning None if state is not present.
- Removed unused User import in base.py for cleaner code.

---------

Co-authored-by: Dheeraj Kumar Ketireddy <dheeru0198@gmail.com>
2025-06-25 19:10:24 +05:30
..
activity.py fix: intake refactor (#6698) 2025-03-20 14:06:36 +05:30
archive.py fix: ruff file formatting based on config file pyproject (#7082) 2025-05-19 17:34:46 +05:30
attachment.py fix: ruff file formatting based on config file pyproject (#7082) 2025-05-19 17:34:46 +05:30
base.py [WEB-4373]: optimize backend query for workspace views and Project gantt view (#7267) 2025-06-25 19:10:24 +05:30
comment.py fix: ruff file formatting based on config file pyproject (#7082) 2025-05-19 17:34:46 +05:30
label.py fix: error handling for db based integrity errors (#6632) 2025-02-19 02:04:28 +05:30
link.py [WEB 4252] chore: updated the favicon request for work item link (#7173) 2025-06-06 15:02:00 +05:30
reaction.py fix: ruff file formatting based on config file pyproject (#7082) 2025-05-19 17:34:46 +05:30
relation.py fix: ruff file formatting based on config file pyproject (#7082) 2025-05-19 17:34:46 +05:30
sub_issue.py fix: ruff file formatting based on config file pyproject (#7082) 2025-05-19 17:34:46 +05:30
subscriber.py chore: formatting changes 2024-11-21 17:42:44 +05:30
version.py [WEB-3748, 3749] feat: work item description version history (#6863) 2025-04-04 20:09:02 +05:30