Compare commits

...

6 Commits

Author SHA1 Message Date
NarayanBavisetti
e9945ee129 Merge branch 'develop' of github.com:makeplane/plane into chore/workspace_invite 2023-12-05 14:50:25 +05:30
NarayanBavisetti
655b5e73ab chore: posthog event for workspace invite 2023-12-05 14:49:24 +05:30
NarayanBavisetti
f2b3a645bd Merge branch 'develop' of github.com:makeplane/plane into develop 2023-12-04 12:11:46 +05:30
NarayanBavisetti
4cd70f3b73 Merge branch 'develop' of github.com:makeplane/plane into develop 2023-12-04 12:11:36 +05:30
sriram veeraghanta
0ceb9974f6 dev: hub compose file update (#2376) (#2444) (#2445)
* docker-compose-hub modified for envs

* bug:fix recent page hiding last item on scroll #1468 (#2411)

* wip

* fixed the AMD build on ARM

---------

Co-authored-by: Manish Gupta <59428681+manishg3@users.noreply.github.com>
Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
2023-10-16 13:00:58 +05:30
Prashant Indurkar
e0fcc0c876 bug:fix recent page hiding last item on scroll #1468 (#2411) 2023-10-12 16:35:00 +05:30

View File

@@ -73,8 +73,7 @@ from plane.app.permissions import (
)
from plane.bgtasks.workspace_invitation_task import workspace_invitation
from plane.utils.issue_filters import issue_filters
from plane.utils.grouper import group_results
from plane.bgtasks.event_tracking_task import auth_events
class WorkSpaceViewSet(BaseViewSet):
model = Workspace
@@ -408,6 +407,18 @@ class WorkspaceJoinEndpoint(BaseAPIView):
# Delete the invitation
workspace_invite.delete()
# Send event
if settings.POSTHOG_API_KEY and settings.POSTHOG_HOST:
auth_events.delay(
user=user.id if user is not None else None,
email=email,
user_agent=request.META.get("HTTP_USER_AGENT"),
ip=request.META.get("REMOTE_ADDR"),
event_name="WORKSPACE_INVITE",
medium="EMAIL",
first_time=True if user is not None else False,
)
return Response(
{"message": "Workspace Invitation Accepted"},
status=status.HTTP_200_OK,