Closed (fixed)
Project:
Queue Unique
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Aug 2022 at 21:12 UTC
Updated:
3 Oct 2022 at 04:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
pwolanin commentedPOC patch. Still needs tests
Comment #3
pwolanin commentedComment #4
pwolanin commentedChange "." as prefix separator to "/" as the separator.
Another test method also.
Comment #5
pwolanin commentedupdated code comments
Comment #6
pwolanin commentedFound a bug in the factory, improved test coverage.
Comment #7
pwolanin commentedand one more check in the test.
Comment #8
pwolanin commentedAnd another condition in test for good measure
Comment #9
jludwig commentedI don't have anything valuable to add. Some nits:
The read me references Requirement:
+class RequirementEntityUpdateQueueWorker extends QueueWorkerBase {Also:
In order for your queue to use the Queue Unique with the default queue serviceI know is was there already, but the "the" in "the Queue Unique" is awkward.
In the queue factory
exceeds 80 characters. Try
The first line in docblocks is supposed to be one complete sentence, so:
would be
Finally, the second comment in ::defaultServiceAndQueueName() needs a full stop:
Comment #10
pwolanin commentedI think the first line in docblocks just needs to be < 80 chars.
Here are the other fixes, plus an annotation fix. Posting interdiff too.
Comment #11
jludwig commentedCorrect, I misinterpreted the standard:
https://www.drupal.org/docs/develop/standards/api-documentation-and-comm...
The patch in #10 looks great! Some notes:
- It's not a breaking change. Sites using this module don't need to change anything and it will keep working as it did before.
- The advanced usage added by the class works as described.
- Appropriate test coverage added for the new functionality + all tests pass w/patch.
Comment #12
pwolanin commentedAn alternate, sometime better, way to swap the service is to define a ServiceProvider class in another module.
I could also add that to the README, or as a follow-up this, module could have it and control whether it operates based on a config setting or some such.
The one I'm using is just this:
Comment #14
e0ipsoMerged, and tagged for the 3.0.0 (I moved to semantic release).
I don't know if this will be a heavily used feature, but I'd like to support your use case.
Thanks for the effort you put on this.