Compare commits

...

1 Commits

Author SHA1 Message Date
sangeethailango
2027673520 fix: recent api init 2024-12-30 14:20:23 +05:30
7 changed files with 28599 additions and 1 deletions

50
apiserver/Pipfile Normal file
View File

@@ -0,0 +1,50 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
django = "==4.2.16"
djangorestframework = "==3.15.2"
psycopg = "==3.1.18"
psycopg-binary = "==3.1.18"
psycopg-c = "==3.1.18"
dj-database-url = "==2.1.0"
redis = "==5.0.4"
django-redis = "==5.4.0"
django-cors-headers = "==4.3.1"
celery = "==5.4.0"
django-celery-beat = "==2.6.0"
django-celery-results = "==2.5.1"
whitenoise = "==6.6.0"
faker = "==25.0.0"
django-filter = "==24.2"
jsonmodels = "==2.7.0"
sentry-sdk = "==2.8.0"
django-storages = "==1.14.2"
django-crum = "==0.7.9"
uvicorn = "==0.29.0"
channels = "==4.1.0"
openai = "==1.25.0"
slack-sdk = "==3.27.1"
scout-apm = "==3.1.0"
openpyxl = "==3.1.2"
python-json-logger = "==2.0.7"
beautifulsoup4 = "==4.12.3"
posthog = "==3.5.0"
cryptography = "==43.0.1"
lxml = "==5.2.1"
boto3 = "==1.34.96"
zxcvbn = "==4.4.28"
pytz = "==2024.1"
pyjwt = "==2.8.0"
opentelemetry-api = "==1.28.1"
opentelemetry-sdk = "==1.28.1"
opentelemetry-instrumentation-django = "==0.49b1"
opentelemetry-exporter-otlp = "==1.28.1"
gunicorn = "==22.0.0"
[dev-packages]
[requires]
python_version = "3.13"

BIN
apiserver/dump.rdb Normal file

Binary file not shown.

28535
apiserver/get-pip.py Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -27,6 +27,7 @@ from plane.app.views import (
WorkspaceFavoriteEndpoint,
WorkspaceFavoriteGroupEndpoint,
WorkspaceDraftIssueViewSet,
UserRecentVisitViewSet
)
@@ -213,4 +214,9 @@ urlpatterns = [
WorkspaceDraftIssueViewSet.as_view({"post": "create_draft_to_issue"}),
name="workspace-drafts-issues",
),
path(
"workspaces/<str:slug>/recents",
UserRecentVisitViewSet.as_view({"get": "list"}),
name="workspace-recent-visits"
)
]

View File

@@ -38,6 +38,7 @@ from .workspace.base import (
WorkspaceThemeViewSet,
ExportWorkspaceUserActivityEndpoint,
)
from .workspace.recent_visit import UserRecentVisitViewSet
from .workspace.draft import WorkspaceDraftIssueViewSet

View File

@@ -0,0 +1,6 @@
# Module imports
from django.db.models import UserRecentVisit
from .. import BaseViewSet
class UserRecentVisitViewSet(BaseViewSet):
model = UserRecentVisit

View File

@@ -6,7 +6,7 @@ Django==4.2.17
djangorestframework==3.15.2
# postgres
psycopg==3.1.18
psycopg-binary==3.1.18
psycopg-binary==3.2.2
psycopg-c==3.1.18
dj-database-url==2.1.0
# redis