bb-plane-fork/apiserver/plane/app/views
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
..
analytic [WEB-4133] fix: analytics release bugs (#7086) 2025-05-23 16:13:09 +05:30
asset [WEB-4316] chore: new endpoints to download an asset (#7207) 2025-06-13 14:41:08 +05:30
cycle fix: ruff file formatting based on config file pyproject (#7082) 2025-05-19 17:34:46 +05:30
estimate chore: formatting changes 2024-11-21 17:42:44 +05:30
exporter chore: formatting changes 2024-11-21 17:42:44 +05:30
external fix: ruff file formatting based on config file pyproject (#7082) 2025-05-19 17:34:46 +05:30
intake [WEB-3930] chore: set IN_APP as default source value for intake issue (#6963) 2025-04-24 16:25:15 +05:30
issue [WEB-4373]: optimize backend query for workspace views and Project gantt view (#7267) 2025-06-25 19:10:24 +05:30
module fix: ruff file formatting based on config file pyproject (#7082) 2025-05-19 17:34:46 +05:30
notification fix: notification count (#6109) 2024-11-28 12:58:09 +05:30
page [WEB-4014] fix: check access when duplicating pages #7015 2025-05-06 01:20:33 +05:30
project [WEB-4281] chore: project error message updated (#7190) 2025-06-16 17:19:44 +05:30
search [WEB-4054] chore: search-issues endpoint code refactoring (#7029) 2025-05-12 19:14:10 +05:30
state [WEB-3751] chore: work item state icon improvement (#6960) 2025-04-29 14:33:53 +05:30
timezone fix: ruff file formatting based on config file pyproject (#7082) 2025-05-19 17:34:46 +05:30
user chore: formatting changes 2024-11-21 17:42:44 +05:30
view [WEB-4373]: optimize backend query for workspace views and Project gantt view (#7267) 2025-06-25 19:10:24 +05:30
webhook fix: uuid validation, status and webhook errors (#6896) 2025-04-11 01:47:00 +05:30
workspace [WEB-4249] fix: settings header css + cta on error page + project member list (#7159) 2025-06-04 16:38:35 +05:30
__init__.py [WEB-4316] chore: new endpoints to download an asset (#7207) 2025-06-13 14:41:08 +05:30
api.py [WEB-4327] Chore PAT permissions (#7224) 2025-06-18 16:08:11 +05:30
base.py chore: formatting changes 2024-11-21 17:42:44 +05:30
error_404.py chore: formatting changes 2024-11-21 17:42:44 +05:30