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

[Backend] Implemented Project Activity Tracking System #604

Merged
merged 6 commits into from
Jun 5, 2021

Conversation

amlannandy
Copy link
Collaborator

@amlannandy amlannandy commented Jun 3, 2021

Description

This Pull Request contains the backend implementation of the Project Activity Tracking System. The detailed changes are provided below commit-wise.

Commit 1

  • Created the db model for a Log

Commit 2

  • Created the log decorator
  • Created a log helpers file

Commit 3

  • Added the logs decorator on route whose activity needs to be tracked
  • Areas covered - projects, teams, images, labels, mlclassifiers

Commit 4

  • Created the logs controller to fetch the logs project-wise, category-wise, user-wise, entity-wise
  • Created additional helper functions

Commit 5

  • Modified fetch project by id route to also show the last 5 logs of a project
  • These logs can then be shown as recent activity in project details screen

Commit 6

  • Added username field to Log model

Fixes #593

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Tested using the Postman App

Test Configuration:

  • Postman
  • Windows 10
screen-capture.mp4

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link
Collaborator

@ThatUdeshUK ThatUdeshUK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work 👍🏻

@ThatUdeshUK ThatUdeshUK merged commit 7db6ad7 into scorelab:master Jun 5, 2021
@amlannandy amlannandy deleted the back-log-activity-feature branch June 11, 2021 07:55
@amlannandy amlannandy added backend Issue and PR regarding backend GSoC 2021 Tasks related to GSoC 2021 labels Jul 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Issue and PR regarding backend GSoC 2021 Tasks related to GSoC 2021
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve collaboration experience
2 participants