This is a basic module, not very deep, that uses Drupal 8 API hooks and Slack module's hooks to pass data to the Slack channel identified with the Slack app. The Admin settings for the app only include a on/off toggle and a text form field for defining the correct workflow state to use the message.
There are currently no modules on Drupal opensource that provide this simple functionality. After some thorough development, I was able to fulfill it, and now I want to make my solution available to the Drupal community.
Project link
https://www.drupal.org/project/workflow_slack_int
Git instructions
git clone --branch 8.x-1.x https://git.drupalcode.org/project/workflow_slack_int.git
Pareview checklist
https://pareview.sh/pareview/https-git.drupal.org-project-workflow_slack...
Comments
Comment #2
rksyraviHi @ tony.sayge,
Thank you for contribution!!!
At first resolve, all the errors & warnings mentioned below. And also you can also check by yourself from Pareview checklist link added in the summary.
Comment #3
rksyraviHi,
For now, I am changing the status to 'Needs work', after you resolve the issues change to 'Needs review'
Comment #4
avpadernoComment #5
avpadernoComment #6
tony.sayge commentedThank you for the comments. I've gone through the code and have corrected the errors from PAReview.
Comment #7
tony.sayge commentedComment #8
rksyraviHi @tony.sayge,
You're almost done with all the errors & warnings. This is the last one, on which you'll need to work.
Comment #9
rksyraviComment #10
tony.sayge commentedThanks @rksyravi. I guess I just glossed over that one.
I appreciate the assist.
Comment #11
tony.sayge commentedComment #12
ankush_032/2 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------
Line src/Form/WorkflowSlackIntForm.php
------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------
Class Drupal\workflow_slack_integration\Form\WorkflowSlackIntForm was not found while trying to analyse it - autoloading is probably not configured properly.
------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------
------ --------------------------------------------------------------------------------------
Line workflow_slack_int.module
------ --------------------------------------------------------------------------------------
33 Call to an undefined method Drupal\Core\Entity\EntityInterface::get().
47 Call to an undefined method Drupal\Core\Entity\EntityInterface::getRevisionId().
50 Call to an undefined method Drupal\Core\Entity\EntityInterface::getRevisionUserId().
50 Call to static method load() on an unknown class User.
53 Access to an undefined property Drupal\Core\Entity\EntityInterface::$title.
------ --------------------------------------------------------------------------------------
[ERROR] Found 6 errors
Comment #13
avpadernoComment #14
avpadernoget()is theFieldableEntityInterface::get()method, whilegetRevisionId()isRevisionableInterface::getRevisionId().ContentEntityBaseimplements both the interfaces.The code should check which interfaces are used from the object passed as parameter, before calling any method.
Comment #15
avpadernoComment #16
tony.sayge commentedComment #17
klausiOtherwise looks good to me.
Thanks for your contribution, Tony!
I updated your account so you can opt into security advisory coverage now.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, 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.
Thanks to the dedicated reviewer(s) as well.
Comment #18
klausiAlso assigning credits to myself.
Comment #19
avpadernoComment #20
tony.sayge commentedThanks everyone for the help.