This module track & logs of entity operations (Create, Update & Delete) action performed by the users/cron are saved in the database and can be viewed on the page /activitytrackinglog.
If you wish to exclude certain entities from being tracking, then you can put the entity name into provide configuration (admin/config/system/activity_tracking) and their logs will not be tracked.
The module allows to track who did the change and when.
Project link
https://www.drupal.org/project/activitytracking
Git instructions
git clone --branch 8.x-1.x https://git.drupalcode.org/project/activitytracking.git
PAReview checklist
https://pareview.sh/pareview/https-git.drupal.org-project-activitytracki...
Comments
Comment #2
vernitComment #3
rajeevgoleI am seeing few warnings in the PAReview checklist. You may want to resolve those :)
See, https://pareview.sh/pareview/https-git.drupal.org-project-activitytracki...
Comment #4
vernitPAReview checklist review and resolved. Please review it.
Project Name & link - Activity Tracking
Git Code Access & Instructions : git clone --branch master git@git.drupal.org:project/activitytracking.git
Branch : 8.x-1.x
Comment #5
vernitComment #6
bekirdag commentedHello,
There are still issues on https://pareview.sh/pareview/https-git.drupal.org-project-activitytracki...
All of them are about dependency injections. An example on how to fix them,
Instead of using:
First, use the namespace:
use Drupal\Core\Messenger\MessengerInterface;Than add protected variable to your class:
protected $messenger;In your constructor:
and then:
Then you can use
$this->messenger->addMessage($message, $message_status);in your code.
I see a number of different injections necessary, you need to apply the same idea for all.
Thank you for your contribution.
Comment #7
avpadernoThank you for applying! I added the Git instructions for non-maintainer users and the PAReview checklist link. Reviewers will check the project and post comments to list what should be changed.
Comment #8
vernitThanks @bekirdag. Dependency injection has been introduce and update. Please review :
Project link
https://www.drupal.org/project/activitytracking
Git instructions
git clone --branch master git@git.drupal.org:project/activitytracking.gitBranch : 8.x-1.x
PAReview checklist
https://pareview.sh/pareview/https-git.drupal.org-project-activitytracki...
Comment #9
vernitComment #10
klausiThanks for your contribution!
* activity_tracking_page_attachments_alter(): Instead of adding your CSS library here you should add it to the render array in your ActivityTracking form.
* Coding standards:
* Instead of accessing $_SERVER you should use $this->request->headers->get('User-Agent').
* activity_tracking_schema(): entity type is missing? What if a bundle name is the same between entity types?
Otherwise looks good to me, did not see any security issues.
Comment #11
avpadernoThank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank all the dedicated reviewers as well.
Comment #12
vernit@klausi : What if a bundle name is the same between entity types? Yes and i will incorporate you suggestion in new release with enhancement.
@kiamlaluno : After status change to fixed still my project shows "This project is not covered by Drupal’s security advisory policy."
When it will change or do i need to do anyelse?
Comment #13
klausiYou need to edit your project and opt into security advisory coverage.
Comment #14
vernit@klausi :"Opt into security advisory coverage" option in disabled mode.
Comment #15
klausiYour project is too young (3 days old), I think you can only opt into coverage after some time has passed. Please try again in 2 weeks!