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

mplement Time and Activity Logging Endpoints #2623

Merged
merged 1 commit into from
Aug 11, 2024

Conversation

JisanAR03
Copy link
Contributor

@JisanAR03 JisanAR03 commented Aug 11, 2024

  • Added two new API endpoints for the Sizzle project:
    - Start and Stop TimeLog: Allows users to start and stop time tracking on GitHub issues.
    - ActivityLog: Logs user activity including window title and URL.

  • Ensured the endpoints are protected with token authentication.

  • Basic error handling implemented for robustness.

@DonnieBLT sir, this api for the sizzle project . now I'm working on flutter project and exploring our flutter project

please review this PR

try:
serializer.save(user=self.request.user)
except ValidationError as e:
raise ParseError(detail=str(e))

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
flows to this location and may be exposed to an external user.
self.perform_create(serializer)
return Response(serializer.data, status=status.HTTP_201_CREATED)
except ValidationError as e:
return Response({"detail": str(e)}, status=status.HTTP_400_BAD_REQUEST)

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
flows to this location and may be exposed to an external user.
timelog.save()
return Response(TimeLogSerializer(timelog).data, status=status.HTTP_200_OK)
except ValidationError as e:
return Response({"detail": str(e)}, status=status.HTTP_400_BAD_REQUEST)

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
flows to this location and may be exposed to an external user.
try:
serializer.save(user=self.request.user, recorded_at=timezone.now())
except ValidationError as e:
raise ParseError(detail=str(e))

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
flows to this location and may be exposed to an external user.
@JisanAR03 JisanAR03 merged commit f866ce4 into OWASP-BLT:main Aug 11, 2024
8 checks passed
@JisanAR03 JisanAR03 mentioned this pull request Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants