- Issue created by @aylis
- Merge request !130Scheduler plugin for Commerce Product Variation entity type → (Open) created by Unnamed author
- last update
12 months ago Build Successful - Status changed to Needs review
12 months ago 5:33pm 10 April 2024 - 🇧🇾Belarus aylis
Added MR with changes to make Scheduler work for Variation entities, needs review
- last update
12 months ago Build Successful - last update
12 months ago Build Successful - last update
12 months ago 195 pass, 6 fail - last update
12 months ago 195 pass, 6 fail - First commit to issue fork.
- last update
12 months ago 195 pass, 6 fail - Status changed to Needs work
12 months ago 11:08am 20 April 2024 - 🇬🇧United Kingdom jonathan1055
Thanks for starting this. I just rebase the MR, I'm not actively working on it, so you are free to investigate the test failures.
- First commit to issue fork.
- Assigned to tcrawford
- Status changed to Active
about 1 month ago 1:35pm 19 February 2025 - 🇬🇧United Kingdom jonathan1055
Hi @tcrawford,
This is excellent work, thank you. It seems like you know what to do, and are making good progress. In case it helps, have you read the new Scheduler documentaion regarding the pluginsAlso, to speed up test times and save resources, you could comment out the other entity types from
dataStandardEntityTypes()
. Then you'll get quicker jobs, shorter logs and be able to identify the problem tests more easily. Let me know if I can help. - 🇨🇭Switzerland tcrawford
Hi @jonathan1055. Thanks for the feedback. I had not, but I just read the documentation.
If you would prefer the plugin for product variations to be stored in a third party module or is it a commonly used enough entity to be included here (perhaps due to its relation to the commerce product entity that it included)?
Unfortunately, I had some issues running these tests locally (the runner is complaining about missing dependencies that don't seem to be an issue on the server). I reached out to pfrenssen, who is a colleague, for some assistance and so if I can get the tests running locally I will save some resources on the server and be a bit faster.
Great idea, I will comment out data types (now that the prior tests are passing) to get feedback on the new entity type only.
- 🇬🇧United Kingdom jonathan1055
Would prefer the plugin for product variations to be stored in a third party module or is it a commonly used enough entity to be included here
It woud be good if it can be included in Scheduler, provided there is not too much overhead, as it fits neatly here. It would take more effort to be a separate third-party module. But is there any benefit in putting it within a submodule of Scheduler which only gets enabled when required? We do this for scheduler_rules_integration. It may make the code more messy, and might not warrant the effort. But just making the suggestion in case you like the idea.
running tests locally ... missing dependencies
Is this why you added 'language', 'locale' and 'config' to SchedulerBrowserTestBase here ?
- 🇨🇭Switzerland tcrawford
Thanks for the feedback on where to include the plugin.
But is there any benefit in putting it within a submodule of Scheduler which only gets enabled when required?
I would tend to suggest to leave it in the main module as it is consistent with the commerce product plugin.
Is this why you added 'language', 'locale' and 'config' to SchedulerBrowserTestBase here ?
Yes. I have removed these though as they were not required.
- 🇬🇧United Kingdom jonathan1055
Yes, leaving the additions in the main module plugin is fine.
I am going to push a change to .gitlab-ci.yml to make the 'next minor' testing manual. So when done, you will need to pull that down to your local repo. Are you currently in the middle of making changes? Let me know when you have pushed, as I don't want to make more work for you. - 🇨🇭Switzerland tcrawford
@Jonathan1055: Sorry. I missed your prior message. I now have tests passing now. I just need to add the view and integrate this and consider whether to do the rules integration.
- 🇬🇧United Kingdom jonathan1055
That's great news. I've not reviewed any code yet, but getting the tests to pass is a major step forward.
Regarding rules integration, if it is as straightforward as adding the single event file, then yes do so. But Rules is not used so much anymore, so if it becomes tedious then we could take the decision not to do that.
- 🇨🇭Switzerland tcrawford
I have added the view for commerce product variations, adapted the derivative plugin and updated the view access tests. I am therefore assigning this one to 'needs review'. Thanks in advance.
- 🇨🇭Switzerland tcrawford
I am re-assigning this as there are some minor issues with the view.