* chore: new asset duplicate endpoint added * chore: change the type in url * chore: added rate limiting for image duplication endpoint * chore: added rate limiting per asset id * chore: added throttle class * chore: added validations for entity * chore: added extra validations * chore: removed the comment * chore: reverted the frontend code * chore: added the response key * feat: handle image duplication for web * feat: custom image duplication update * fix: remove paste logic for image * fix : remove entity validation * refactor: remove entity id for duplication * feat: handle duplication in utils * feat: add asset duplication registry * chore: update the set attribute method * fix: add ref for api check * chore :remove logs * chore : add entity types types * refactor: rename duplication success status value * chore: update attribute to enums * chore: update variable name * chore: set uploading state * chore : update enum name * chore : update replace command * chore: fix retry UI * chore: remove default logic * refactor: optimize imports in custom image extension files and improve error handling in image duplication * fix:type error * Update packages/editor/src/core/extensions/custom-image/components/node-view.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix: enhance asset duplication handler to ignore HTTP sources --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: Bavisetti Narayan <72156168+NarayanBavisetti@users.noreply.github.com> Co-authored-by: VipinDevelops <vipinchaudhary1809@gmail.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
236 lines
6 KiB
Python
236 lines
6 KiB
Python
from .project.base import (
|
|
ProjectViewSet,
|
|
ProjectIdentifierEndpoint,
|
|
ProjectUserViewsEndpoint,
|
|
ProjectFavoritesViewSet,
|
|
ProjectPublicCoverImagesEndpoint,
|
|
DeployBoardViewSet,
|
|
ProjectArchiveUnarchiveEndpoint,
|
|
)
|
|
|
|
from .project.invite import (
|
|
UserProjectInvitationsViewset,
|
|
ProjectInvitationsViewset,
|
|
ProjectJoinEndpoint,
|
|
)
|
|
|
|
from .project.member import (
|
|
ProjectMemberViewSet,
|
|
ProjectMemberUserEndpoint,
|
|
UserProjectRolesEndpoint,
|
|
)
|
|
|
|
from .user.base import (
|
|
UserEndpoint,
|
|
UpdateUserOnBoardedEndpoint,
|
|
UpdateUserTourCompletedEndpoint,
|
|
UserActivityEndpoint,
|
|
)
|
|
|
|
|
|
from .base import BaseAPIView, BaseViewSet
|
|
|
|
from .workspace.base import (
|
|
WorkSpaceViewSet,
|
|
UserWorkSpacesEndpoint,
|
|
WorkSpaceAvailabilityCheckEndpoint,
|
|
UserWorkspaceDashboardEndpoint,
|
|
WorkspaceThemeViewSet,
|
|
ExportWorkspaceUserActivityEndpoint,
|
|
)
|
|
|
|
from .workspace.draft import WorkspaceDraftIssueViewSet
|
|
|
|
from .workspace.home import WorkspaceHomePreferenceViewSet
|
|
|
|
from .workspace.favorite import (
|
|
WorkspaceFavoriteEndpoint,
|
|
WorkspaceFavoriteGroupEndpoint,
|
|
)
|
|
from .workspace.recent_visit import UserRecentVisitViewSet
|
|
from .workspace.user_preference import WorkspaceUserPreferenceViewSet
|
|
|
|
from .workspace.member import (
|
|
WorkSpaceMemberViewSet,
|
|
WorkspaceMemberUserEndpoint,
|
|
WorkspaceProjectMemberEndpoint,
|
|
WorkspaceMemberUserViewsEndpoint,
|
|
)
|
|
from .workspace.invite import (
|
|
WorkspaceInvitationsViewset,
|
|
WorkspaceJoinEndpoint,
|
|
UserWorkspaceInvitationsViewSet,
|
|
)
|
|
from .workspace.label import WorkspaceLabelsEndpoint
|
|
from .workspace.state import WorkspaceStatesEndpoint
|
|
from .workspace.user import (
|
|
UserLastProjectWithWorkspaceEndpoint,
|
|
WorkspaceUserProfileIssuesEndpoint,
|
|
WorkspaceUserPropertiesEndpoint,
|
|
WorkspaceUserProfileEndpoint,
|
|
WorkspaceUserActivityEndpoint,
|
|
WorkspaceUserProfileStatsEndpoint,
|
|
UserActivityGraphEndpoint,
|
|
UserIssueCompletedGraphEndpoint,
|
|
)
|
|
from .workspace.estimate import WorkspaceEstimatesEndpoint
|
|
from .workspace.module import WorkspaceModulesEndpoint
|
|
from .workspace.cycle import WorkspaceCyclesEndpoint
|
|
from .workspace.quick_link import QuickLinkViewSet
|
|
from .workspace.sticky import WorkspaceStickyViewSet
|
|
|
|
from .state.base import StateViewSet
|
|
from .view.base import (
|
|
WorkspaceViewViewSet,
|
|
WorkspaceViewIssuesViewSet,
|
|
IssueViewViewSet,
|
|
IssueViewFavoriteViewSet,
|
|
)
|
|
from .cycle.base import (
|
|
CycleViewSet,
|
|
CycleDateCheckEndpoint,
|
|
CycleFavoriteViewSet,
|
|
TransferCycleIssueEndpoint,
|
|
CycleUserPropertiesEndpoint,
|
|
CycleAnalyticsEndpoint,
|
|
CycleProgressEndpoint,
|
|
)
|
|
from .cycle.issue import CycleIssueViewSet
|
|
from .cycle.archive import CycleArchiveUnarchiveEndpoint
|
|
|
|
from .asset.base import FileAssetEndpoint, UserAssetsEndpoint, FileAssetViewSet
|
|
from .asset.v2 import (
|
|
WorkspaceFileAssetEndpoint,
|
|
UserAssetsV2Endpoint,
|
|
StaticFileAssetEndpoint,
|
|
AssetRestoreEndpoint,
|
|
ProjectAssetEndpoint,
|
|
ProjectBulkAssetEndpoint,
|
|
AssetCheckEndpoint,
|
|
DuplicateAssetEndpoint,
|
|
WorkspaceAssetDownloadEndpoint,
|
|
ProjectAssetDownloadEndpoint,
|
|
)
|
|
from .issue.base import (
|
|
IssueListEndpoint,
|
|
IssueViewSet,
|
|
IssueUserDisplayPropertyEndpoint,
|
|
BulkDeleteIssuesEndpoint,
|
|
DeletedIssuesListViewSet,
|
|
IssuePaginatedViewSet,
|
|
IssueDetailEndpoint,
|
|
IssueBulkUpdateDateEndpoint,
|
|
IssueMetaEndpoint,
|
|
IssueDetailIdentifierEndpoint,
|
|
)
|
|
|
|
from .issue.activity import IssueActivityEndpoint
|
|
|
|
from .issue.archive import IssueArchiveViewSet, BulkArchiveIssuesEndpoint
|
|
|
|
from .issue.attachment import (
|
|
IssueAttachmentEndpoint,
|
|
# V2
|
|
IssueAttachmentV2Endpoint,
|
|
)
|
|
|
|
from .issue.comment import IssueCommentViewSet, CommentReactionViewSet
|
|
|
|
from .issue.label import LabelViewSet, BulkCreateIssueLabelsEndpoint
|
|
|
|
from .issue.link import IssueLinkViewSet
|
|
|
|
from .issue.relation import IssueRelationViewSet
|
|
|
|
from .issue.reaction import IssueReactionViewSet
|
|
|
|
from .issue.sub_issue import SubIssuesEndpoint
|
|
|
|
from .issue.subscriber import IssueSubscriberViewSet
|
|
|
|
from .issue.version import IssueVersionEndpoint, WorkItemDescriptionVersionEndpoint
|
|
|
|
from .module.base import (
|
|
ModuleViewSet,
|
|
ModuleLinkViewSet,
|
|
ModuleFavoriteViewSet,
|
|
ModuleUserPropertiesEndpoint,
|
|
)
|
|
|
|
from .module.issue import ModuleIssueViewSet
|
|
|
|
from .module.archive import ModuleArchiveUnarchiveEndpoint
|
|
|
|
from .api import ApiTokenEndpoint, ServiceApiTokenEndpoint
|
|
|
|
from .page.base import (
|
|
PageViewSet,
|
|
PageFavoriteViewSet,
|
|
PagesDescriptionViewSet,
|
|
PageDuplicateEndpoint,
|
|
)
|
|
from .page.version import PageVersionEndpoint
|
|
|
|
from .search.base import GlobalSearchEndpoint, SearchEndpoint
|
|
from .search.issue import IssueSearchEndpoint
|
|
|
|
|
|
from .external.base import (
|
|
GPTIntegrationEndpoint,
|
|
UnsplashEndpoint,
|
|
WorkspaceGPTIntegrationEndpoint,
|
|
)
|
|
from .estimate.base import (
|
|
ProjectEstimatePointEndpoint,
|
|
BulkEstimatePointEndpoint,
|
|
EstimatePointEndpoint,
|
|
)
|
|
|
|
from .intake.base import (
|
|
IntakeViewSet,
|
|
IntakeIssueViewSet,
|
|
IntakeWorkItemDescriptionVersionEndpoint,
|
|
)
|
|
|
|
from .analytic.base import (
|
|
AnalyticsEndpoint,
|
|
AnalyticViewViewset,
|
|
SavedAnalyticEndpoint,
|
|
ExportAnalyticsEndpoint,
|
|
DefaultAnalyticsEndpoint,
|
|
ProjectStatsEndpoint,
|
|
)
|
|
|
|
from .analytic.advance import (
|
|
AdvanceAnalyticsEndpoint,
|
|
AdvanceAnalyticsStatsEndpoint,
|
|
AdvanceAnalyticsChartEndpoint,
|
|
)
|
|
|
|
from .analytic.project_analytics import (
|
|
ProjectAdvanceAnalyticsEndpoint,
|
|
ProjectAdvanceAnalyticsStatsEndpoint,
|
|
ProjectAdvanceAnalyticsChartEndpoint,
|
|
)
|
|
|
|
from .notification.base import (
|
|
NotificationViewSet,
|
|
UnreadNotificationEndpoint,
|
|
UserNotificationPreferenceEndpoint,
|
|
)
|
|
|
|
from .exporter.base import ExportIssuesEndpoint
|
|
|
|
|
|
from .webhook.base import (
|
|
WebhookEndpoint,
|
|
WebhookLogsEndpoint,
|
|
WebhookSecretRegenerateEndpoint,
|
|
)
|
|
|
|
from .error_404 import custom_404_view
|
|
|
|
from .notification.base import MarkAllReadNotificationViewSet
|
|
from .user.base import AccountEndpoint, ProfileEndpoint, UserSessionEndpoint
|
|
|
|
from .timezone.base import TimezoneEndpoint
|