Skip to content

feature/activity-logs-organization#174

Merged
mdawoud27 merged 11 commits into
mainfrom
feature/173/activity_logs_organization
Apr 18, 2025
Merged

feature/activity-logs-organization#174
mdawoud27 merged 11 commits into
mainfrom
feature/173/activity_logs_organization

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 #173

@mdawoud27 mdawoud27 added the enhancement New feature or request label Apr 18, 2025
@mdawoud27 mdawoud27 requested a review from Copilot April 18, 2025 20:23
@mdawoud27 mdawoud27 self-assigned this Apr 18, 2025
@mdawoud27 mdawoud27 linked an issue Apr 18, 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 activity logging functionality to various organization-related endpoints to track key actions like creation, update, deletion, OTP resend, verification, owner addition, and logo management.

  • Logs organization creation, update, deletion, OTP resend, verification, owner addition, and logo upload/deletion using the createActivityLog utility.
  • Imports and integrates new utility functions to generate detailed activity logs.
Files not reviewed (1)
  • prisma/schema.prisma: Language not supported
Comments suppressed due to low confidence (1)

src/controllers/organization.controller.js:1130

  • The variable 'updatedOrganization' is not defined in this context; it appears to be a mistake. Use the correct variable or a new timestamp (e.g., new Date()) to log the deletion time.
deletedAt: updatedOrganization.updatedAt,

Comment thread src/controllers/organization.controller.js Outdated
@mdawoud27 mdawoud27 merged commit f3ee93c into main Apr 18, 2025
11 checks passed
@mdawoud27 mdawoud27 deleted the feature/173/activity_logs_organization branch April 18, 2025 20:28
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 for the organization controller

2 participants