Skip to content

feature/activity-logs#186

Merged
mdawoud27 merged 9 commits into
mainfrom
feature/185/activity_logs
Apr 19, 2025
Merged

feature/activity-logs#186
mdawoud27 merged 9 commits into
mainfrom
feature/185/activity_logs

Conversation

@mdawoud27
Copy link
Copy Markdown
Contributor

PR Checklist (required)

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines.

  • Tests for the changes have been added (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation changes
  • Other... Please describe:

Related Issue

Closes #185

@mdawoud27 mdawoud27 added the enhancement New feature or request label Apr 19, 2025
@mdawoud27 mdawoud27 requested a review from Copilot April 19, 2025 11:44
@mdawoud27 mdawoud27 self-assigned this Apr 19, 2025
@mdawoud27 mdawoud27 linked an issue Apr 19, 2025 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds new endpoints and supporting logic for activity logs, including viewing a specific log and an activity feed, alongside updating the documentation and ESLint configuration.

  • Adds two new endpoints in the routes for getting activity by ID and an activity feed.
  • Implements corresponding controller logic in activitylog.controller.js with helper functions for formatting activity log messages and entity data.
  • Updates the ESLint config and README documentation to support the new features.

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/utils/activityLogs.utils.js Removed unnecessary ESLint inline comment for cleaner code.
src/routes/activitylog.routes.js Added new routes for fetching a specific log and an activity feed.
src/controllers/activitylog.controller.js Introduced getActivityLogById and getActivityFeed controllers along with helper functions.
eslint.config.mjs Disabled the no-case-declarations rule to accommodate new switch-case patterns.
README.md Updated API documentation to include the new activity logs endpoints.
Files not reviewed (1)
  • src/docs/swagger.json: Language not supported

Comment thread src/controllers/activitylog.controller.js Outdated
@mdawoud27 mdawoud27 merged commit 40a286a into main Apr 19, 2025
11 checks passed
@mdawoud27 mdawoud27 deleted the feature/185/activity_logs branch April 19, 2025 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Activity logs

2 participants