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

Activity feed page creation #2931

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

krrish-sehgal
Copy link
Contributor

@krrish-sehgal krrish-sehgal commented Nov 15, 2024

Fixes: #2915

Model

The Activity model consists of the following fields:

  • user: The user who performed the action (ForeignKey to User).
  • action_type: The type of action performed (e.g., created, updated, deleted).
  • timestamp: The time when the activity occurred.
  • title: A short title for the activity (e.g., issue title or blog title).
  • description: A detailed description of the activity.
  • image: An optional image associated with the activity.
  • related_object: A reference to the object involved in the activity (ForeignKey to models like Issue, Blog, BugBounty, or IPReport).

Signals

  • Pre-save signal: Triggered when an object is about to be saved, to log any updates or changes that are about to occur.
  • Post-save signal: Fired after an object is saved to the database, creating a new Activity entry to capture the event.
  • Post-delete signal: Activated when an object is deleted, logging the deletion event in the activity feed.

How It Handles Key Features

The system handles the following key actions related to issues, blogs, bug bounties, and IP reports:

  1. Capturing Creation, updation , deletion of Issues, Blogs, Bug Bounties, and IP Reports:

  2. Displaying Activities:

    • In the frontend, activities are displayed in a feed format, with each activity card showing the user who performed the action, the type of action (create, update, or delete), and the timestamp.
Screen.Recording.2024-11-15.at.6.35.55.PM.mov

@krrish-sehgal
Copy link
Contributor Author

@DonnieBLT , Please Feel free to give feedback on the functionality....

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.

Add new page for activity feed
2 participants