Closed (fixed)
Project:
Node Ownership
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
10 May 2016 at 06:18 UTC
Updated:
1 Aug 2016 at 12:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gaurav.goyal commentedHey swarad07,
I am working on the logic part.
Comment #3
gaurav.goyal commentedHey Swarad,
In Drupal 7 Version of the module, we are using `entity` concept. So in Drupal 8 version we can go with the same concept or we can go without entity concept.
My understanding about the functionality is:
I think there is really no need of using the entity concept over here. What do you think we should go with entity concept or not?
Comment #4
swarad07Hi Gaurav,
There are two sets of functionality in this module,
1. Users can claim a node, we record in the backend who claimed what.
2. Admin gets emails of any claim.
#1 is a blocker to get the 8.x-dev release out. This is the core logic of the module. You are right that in D7 we have saved data as entities, I would like to keep it same for 8.x as well, feel free to suggest an alternative. It seems D8 has good support for Entity API, many things are in core now.
#2 is more like an alert system built around it. There are a couple of issues pending for 7.x where users have asked to turn off the alert as it spams the admin with emails for large sites. Instead, a simple listing page where admin can see the claims etc seems to be ideal, we can tie this page with permission string and then anyone with permission can view the claims, rather than only limited to admin.
But I would not worry too much about #2 at this point, even the integration with Trigger like you rightly pointed is not applicable for 8.x Maybe we can do Rules instead.
If we can get the main claim logic working, we can quickly consolidate and make a dev release available.
Thanks for helping out again. Let me know if there are any other doubts.
Thanks,
Swarad
Comment #5
gaurav.goyal commentedThanks for quick reply Swarad.
Yep.. Correcting my old understanding :) With little more brainstorming I think using entities will make sense. I'm currently working on #1. Will try to roll out dev version ASAP.
Comment #6
gaurav.goyal commentedHere is the first patch for claim logic. Below is the brief description about patch.
Patch Contains:
Things which are changed:
Things remaining:
Comment #7
swarad07Thanks Gaurav. Will review and test it sometime over the weekend.
Comment #8
gaurav.goyal commentedHi Swarad,
Logic part is ported. We will need some testing around it. Attached is the latest patch.
Comment #9
gaurav.goyal commentedWe cannot integrate VBO at this point of time because it's not ported till now. - #1823572: Port Views Bulk Operations to Drupal 8
Comment #13
vyasamit2007 commentedThe patch sent in #8 has been reviewed and tested. Ready to be ported in 8.x-1.x branch.
Thanks!!
~Amit
Comment #14
vyasamit2007 commentedComment #15
swarad07Comment #17
swarad07Thanks Gaurav for the patch.
Addressed a small formatting issue, as well as using this opportunity to give you a commit. :-)
Comment #18
gaurav.goyal commentedThanks Swarad:) Now we can have a release for this module.