Skip to content
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

[WEB-2114]: Chore: project cycle optimization #5430

Merged
merged 12 commits into from
Aug 27, 2024
12 changes: 12 additions & 0 deletions apiserver/plane/app/urls/cycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
CycleIssueViewSet,
CycleDateCheckEndpoint,
CycleFavoriteViewSet,
CycleProgressEndpoint,
CycleAnalyticsEndpoint,
TransferCycleIssueEndpoint,
CycleUserPropertiesEndpoint,
CycleArchiveUnarchiveEndpoint,
Expand Down Expand Up @@ -106,4 +108,14 @@
CycleArchiveUnarchiveEndpoint.as_view(),
name="cycle-archive-unarchive",
),
path(
"workspaces/<str:slug>/projects/<uuid:project_id>/cycles/<uuid:cycle_id>/progress/",
CycleProgressEndpoint.as_view(),
name="project-cycle",
),
path(
"workspaces/<str:slug>/projects/<uuid:project_id>/cycles/<uuid:cycle_id>/analytics/",
CycleAnalyticsEndpoint.as_view(),
name="project-cycle",
),
]
2 changes: 2 additions & 0 deletions apiserver/plane/app/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@
CycleUserPropertiesEndpoint,
CycleViewSet,
TransferCycleIssueEndpoint,
CycleAnalyticsEndpoint,
CycleProgressEndpoint,
Comment on lines +101 to +102
Copy link
Contributor

Choose a reason for hiding this comment

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

Unused imports.

The CycleAnalyticsEndpoint and CycleProgressEndpoint are imported but not used in the file. Consider removing them or adding them to __all__.

Apply this diff to remove the unused imports:

-    CycleAnalyticsEndpoint,
-    CycleProgressEndpoint,

Alternatively, if these endpoints are intended to be used elsewhere, add them to __all__:

+__all__ = [
+    ...
+    "CycleAnalyticsEndpoint",
+    "CycleProgressEndpoint",
+]
Tools
Ruff

101-101: .cycle.base.CycleAnalyticsEndpoint imported but unused; consider removing, adding to __all__, or using a redundant alias

(F401)


102-102: .cycle.base.CycleProgressEndpoint imported but unused; consider removing, adding to __all__, or using a redundant alias

(F401)

)
from .cycle.issue import (
CycleIssueViewSet,
Expand Down
Loading
Loading