bb-plane-fork/apiserver
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
..
bin fix: adding secret key variable in newline (#5361) 2024-08-16 11:57:52 +05:30
plane [WEB-4373]: optimize backend query for workspace views and Project gantt view (#7267) 2025-06-25 19:10:24 +05:30
requirements chore(deps): bump requests (#7193) 2025-06-10 17:39:48 +05:30
templates [WEB-4063]chore: updated work item email template (#7044) 2025-06-08 23:46:12 +05:30
.coveragerc [WEB-3707] pytest based test suite for apiserver (#7010) 2025-05-26 15:26:26 +05:30
.env.example [WEB-3991] chore: local dev improvements (#6991) 2025-04-30 21:46:59 +05:30
back_migration.py chore: formatting changes 2024-11-21 17:42:44 +05:30
Dockerfile.api fix: instance changelog url updated 2024-12-10 21:03:44 +05:30
Dockerfile.dev fix: updated changelog url in apiserver 2024-12-10 20:28:51 +05:30
manage.py chore: formatting changes 2024-11-21 17:42:44 +05:30
package.json chore: upgrade package version 2025-06-06 17:50:31 +05:30
Procfile dev: remove gunicorn config (#1999) 2023-08-29 13:45:25 +05:30
pyproject.toml fix: ruff file formatting based on config file pyproject (#7082) 2025-05-19 17:34:46 +05:30
pytest.ini [WEB-3707] pytest based test suite for apiserver (#7010) 2025-05-26 15:26:26 +05:30
requirements.txt build: merge frontend and backend into a single repo 2022-11-30 02:47:42 +05:30
run_tests.py [WEB-3707] pytest based test suite for apiserver (#7010) 2025-05-26 15:26:26 +05:30
run_tests.sh [WEB-3707] pytest based test suite for apiserver (#7010) 2025-05-26 15:26:26 +05:30
runtime.txt fix: upgrading the python runtime version 2024-09-10 20:44:38 +05:30