- First commit to issue fork.
- Merge request !2Issue #3333559: D10 compatibility: Upgrade Status module report → (Open) created by lonalore
- ðŸ‡ðŸ‡ºHungary lonalore Budapest, Hungary
I made a Merge request with the Drupal 10 compatibility fixes.
The main change is the new once library → was introduced in Drupal 9.2.
In Drupal 10, the old jQuery Once Library is no longer available. - Status changed to Needs work
almost 2 years ago 10:30pm 4 February 2023 - 🇺🇸United States tr Cascadia
@lonalore: Can you please open a new issue for the jQuery.once changes? Also, it would help if you would leave out the JavaScript coding standards changes, and just made the changes to use the once library instead of jQuery.once. Coding standards should also be handled in a separate issue, as that will make the changes easier to review and manage.
#2 is not acceptable to me because this module can't support 8.8.2 and 10 simultaneously. For example with the once library changes - that will not work in D8 at all. I would prefer not to change the core version dependency to include D10 until this module is actually compatible with D10, and that means the underlying votingapi module also needs to be compatible with D10 first. That isn't the case yet.
- Assigned to tushar1
- Status changed to Needs review
over 1 year ago 5:45am 13 April 2023 Created patch for making votingapi_widgets to D10 compatible, Module showing compatible in Upgrade_status and I have also checked with Drupal-check which shows false positive issues which are ignorable..and also fixed the console issues related to core/once..functionality is working fine as expected in D10...kindly review and make it RTBC for D10 release..
- Status changed to RTBC
over 1 year ago 5:54am 13 April 2023 - 🇮🇳India rahul1707
I have tested patch #11 in drupal 9.5.7 and 10.0.3. Patch applied cleanly and functionality is working as expected, also making this module D10 compatible. So, moving this to RTBC.
- Status changed to Needs work
over 1 year ago 7:35am 13 April 2023 @TR What we are missing here? Functionality is working fine and also there are not any issues in upgrade status and drupal check and also votingapi is on latest D10 version, what we are missing to do it compatible..??
- 🇧🇪Belgium gillesbailleux La Roche-en-Ardenne
@TR could you please consider to validate patch #11 to commit a D10 compatible release?
- 🇯🇴Jordan yahyaalhamad Palestine
There is this error:
Entity queries must explicitly set whether the query should be access checked or not.
which happens in the VotingApiWidgetBase.php
- Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - 🇩🇪Germany sascha_meissner Planet earth
Added the missing accesscheck
- last update
over 1 year ago Patch Failed to Apply - Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - First commit to issue fork.
- Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - 🇵🇱Poland alorenc Wolsztyn, 🇵🇱
Rolled patch against 8.x-1.0-alpha6
- Status changed to Needs review
over 1 year ago 7:13am 12 July 2023 - Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - 🇵🇱Poland alorenc Wolsztyn, 🇵🇱
Rolled patch 17, updated VotingApiWidgetBase.php
- 🇧🇪Belgium gillesbailleux La Roche-en-Ardenne
Thank you to the contributors. Please @TR have a look at the patches a commit a D10 compatible release.
- 🇯🇴Jordan yahyaalhamad Palestine
The new once function messes up with the fivestars widgets (and possibly with the other types too), it seems it only runs once (which is expected), but because of this, the JS will not execute again and the widget will not render the fivestars after an ajax submit, is this intentional? Attached a video that explains the weird bug. I fixed it by removing the once completely, but I'm not sure if this is optimal
- Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass Patch 25 tested on env. Drupal 10.1.2 - PHP 8.1
Checking patch composer.json... Checking patch js/fivestars.js... Checking patch js/like.js... Checking patch js/useful.js... Checking patch src/Plugin/VotingApiWidgetBase.php... error: while searching for: $query->condition('timestamp', time() - $timestamp_offset, '>='); } $votes = $query->execute(); if ($votes && count($votes) > 0) { $vote = $storage->load(array_shift($votes)); } error: patch failed: src/Plugin/VotingApiWidgetBase.php:218 error: src/Plugin/VotingApiWidgetBase.php: patch does not apply Checking patch votingapi_widgets.info.yml... Checking patch votingapi_widgets.libraries.yml...
- Status changed to Needs work
over 1 year ago 9:57am 5 August 2023 - 🇩🇰Denmark ressa Copenhagen
Thanks @yustinTR, maybe you can include an interdiff with the patch? https://www.drupal.org/docs/develop/git/using-git-to-contribute-to-drupa... →
Also, shouldn't the target branch be version 8.x-1.x-dev?
- Status changed to Needs review
over 1 year ago 6:15am 7 August 2023 - Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - 🇳🇱Netherlands yustinTR
I edited the patch so it works for the 8.x-1.x-dev version, the previous patch was ment for the alpha-6 version. For the interdiff the changes are to big so i got a error while create a interdif.
- Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass - 🇳🇱Netherlands yustinTR
Fix some spacing issues & created a interdiff
- Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
over 1 year ago Waiting for branch to pass Hi @yustinTR for patch, #30 patch looks good to me, applied successfully and test changes on local it is now compatible and working fine for me. Hence green flag to RTBC+1...
- 🇺🇸United States tr Cascadia
This hunk is not needed because the accessCheck() issue was fixed in 📌 Drupal 10 add method calls to accessCheck() in getEntityForVoting() Fixed
diff --git a/src/Plugin/VotingApiWidgetBase.php b/src/Plugin/VotingApiWidgetBase.php index 0a32db7..187600e 100644 --- a/src/Plugin/VotingApiWidgetBase.php +++ b/src/Plugin/VotingApiWidgetBase.php @@ -223,9 +223,9 @@ abstract class VotingApiWidgetBase extends PluginBase implements VotingApiWidget $query->condition('timestamp', time() - $timestamp_offset, '>='); } - $votes = $query->execute(); + $votes = $query->accessCheck(FALSE)->execute(); if ($votes && count($votes) > 0) { - $vote = $storage->load(array_pop($votes)); + $vote = $storage->load(array_shift($votes)); } }
- Issue was unassigned.
- Status changed to Needs work
over 1 year ago 7:16pm 7 August 2023 - 🇺🇸United States tr Cascadia
I rewrote the issue summary to reflect that this patch should be restricted to just the jQuery.once changes.
The patch in #30 is looking good except that the hunk I mentioned in #32 needs to be removed and the core version requirements in the composer.json and the votingapi_widgets.info.yml need to be changed to drop D8 support and raise the minimum to D9.2, because as I said above these jQuery changes will NOT work in D8 or in versions of D9 less than 9.2 as per the change record.
- 🇺🇸United States tr Cascadia
- $this.find('select').once('processed').barrating('show', options); + $(once('processed', $this.find('select'))).barrating('show', options);
Is this (and the other changes to js) correct? From the Change Record, I would think it should look like:
- $this.find('select').once('processed').barrating('show', options); + $(once('processed', 'select', this)).barrating('show', options);
- Status changed to Needs review
over 1 year ago 7:09am 8 August 2023 - last update
over 1 year ago Build Successful - 🇳🇱Netherlands yustinTR
thnx @TR. The upgrade status module suggested that i needed to change that accescheck before, because the original issue was for the alpha-6 branche. but i have fixed the things you said in this patch
The last submitted patch, 35: votingapi_widgets_D10_compatible_35.patch, failed testing. View results →
- last update
over 1 year ago Custom Commands Failed - Status changed to Needs work
about 1 year ago 9:43am 18 October 2023 - 🇧🇪Belgium borisson_ Mechelen, 🇧🇪
+++ b/composer.json @@ -9,7 +9,7 @@ - "drupal/core": "^8.8.2 || ^9", + "drupal/core": "^8.8.2 || ^9 || ^10",
This is not the same as the change in the .info.yml, 8.8.2 should be removed
- Status changed to Needs review
about 1 year ago 10:05am 18 October 2023 - Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass - 🇮🇳India mrinalini9 New Delhi
Updated patch #35 by addressing #38, please review it.
Thanks!
- Status changed to RTBC
about 1 year ago 10:31am 18 October 2023 The last submitted patch, 39: votingapi_widgets_D10_compatible_39.patch, failed testing. View results →
- Status changed to Needs review
about 1 year ago 11:35pm 21 October 2023 - last update
about 1 year ago Build Successful - 🇺🇸United States tr Cascadia
My comments from #34 were never addressed and the changes to the module dependencies are still wrong because the once library is not available before D9.2.
Here is a re-roll. Test should be "Build Successful" which Drupal CI still considers a failure but is not - that just means this module has no tests. Drupal CI will still check that the patch can be applied and will check for syntax and coding standards errors.
The last submitted patch, 42: 3333559-42.patch, failed testing. View results →
- 🇺🇸United States tr Cascadia
As I said, "Build Successful" is good.
I need some people to apply patch #42 and test it on their site. If it works properly then I will commit the patch.
- First commit to issue fork.
- Merge request !4Issue #3333559 by yustinTR, lonalore, Tushar1, TR, mrinalini9, noorulshameera:... → (Merged) created by richgerdes
- Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass - 🇺🇸United States tr Cascadia
@richgerdes Can you test the patch? That's what we need here.
- 🇩🇪Germany drupalbubb
I tried latest dev and patched it with #42, which worked with 9.5.11 as far as I tested it. Upgrade status module shows 100%. But upgrade fails:
composer update --with-all-dependencies Gathering patches for root package. Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - drupal/votingapi_widgets dev-1.x requires drupal/core ^8.8.2 || ^9 -> found drupal/core[8.8.2, ..., 8.9.20, 9.0.0, ..., 9.5.11] but it conflicts with your root composer.json require (^10). - drupal/votingapi_widgets 1.x-dev is an alias of drupal/votingapi_widgets dev-1.x and thus requires it to be installed too. - Root composer.json requires drupal/votingapi_widgets 1.x-dev@dev -> satisfiable by drupal/votingapi_widgets[1.x-dev (alias of dev-1.x)]. Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
But i can see:
cat ./web/modules/contrib/votingapi_widgets/votingapi_widgets.info.yml name: Votingapi Widgets type: module description: 'Voting API Widgets.' package: Voting core_version_requirement: ^9.2 || ^10 dependencies: - votingapi:votingapi - drupal:field
- 🇧🇪Belgium borisson_ Mechelen, 🇧🇪
This is because there is a composer.json in the source code, that needs to be updated to the same version constraints as in the .info.yml
- 🇺🇸United States tr Cascadia
This is because there is a composer.json in the source code, that needs to be updated to the same version constraints as in the .info.yml
Both the votingapi_widgets.info.yml and the composer.json have the same core version constraints. Neither specifies support for D10 yet, because issues like this prevent this module from being compatible with D10 at the moment. That is why it would be nice to get some reviews, so we can move forward.
- 🇩🇪Germany drupalbubb
my installation seems broken, because i can't find 8.8.2:
Fileserver:/srv/www/drupal/web/modules/contrib # grep -i -r '8.8.2' votingapi_widgets/* Fileserver:/srv/www/drupal/web/modules/contrib # grep -i -r '9.2' votingapi_widgets/* votingapi_widgets/composer.json: "drupal/core": "^9.2 || ^10", votingapi_widgets/votingapi_widgets.info.yml:core_version_requirement: ^9.2 || ^10
- 🇩🇪Germany drupalbubb
i got it running, https://github.com/mglaman/composer-drupal-lenient did the trick.
- 🇵🇱Poland rafal.sereda
Hi @TR, we also need to update this module on one of the projects we support, so this week we should let you know how it went using the branch https://git.drupalcode.org/issue/votingapi_widgets-3333559/-/compare/8.x...
- 🇺🇸United States tr Cascadia
@rafal.sereda: Do you have an update yet?
- 🇷🇴Romania ciprian.stavovei
ciprian.stavovei → made their first commit to this issue’s fork.
- Open on Drupal.org →Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass - 🇺🇸United States loze Los Angeles
the patch in #42 applied successfully to dev for me (the MR did not) and the upgrade_status tests for D10 all passed.
It appears to work in my local site.
- 🇺🇸United States tr Cascadia
I don't know what #55 is supposed to do. I has all sorts of wrong things in it and it doesn't address the JavaScript issues which are the entire reason for this issue.
The patch in question remains #42. @loze is the only one who has reviewed it - thank you. I will commit this next time I have a chance to sit down and make sure everything is still up to date. Probably this weekend.
- Status changed to RTBC
12 months ago 7:07am 7 January 2024 - 🇧🇪Belgium gillesbailleux La Roche-en-Ardenne
@TR: please commit a release with patch #42. Thank you very much.
- 🇧🇪Belgium gillesbailleux La Roche-en-Ardenne
This project is no more supported. Can the maintainers explain why?
- 🇺🇸United States tr Cascadia
Did you review the patch? We've had exactly 1 review, less than a month ago.
- 🇳🇿New Zealand murrow
@TR Patch #42 works for me on our dev site and is passing PHPStan with Drupal Core at 10.2.1
- 🇧🇪Belgium gillesbailleux La Roche-en-Ardenne
@TR: the #42 patch has been reviewed & tested by the community. Please commit a release with it.
- 🇩🇪Germany drupalbubb
There is a security related update for drupal core available, but not for 9.x
Can we please have a release now?
My dev site works with the patch, with the already posted three issues. - 🇧🇪Belgium gillesbailleux La Roche-en-Ardenne
@DrupalBubb: awaiting an answser from @TR and @ipwa to give @rajab-natshah co-maintainer credentials.
https://www.drupal.org/project/votingapi_widgets/issues/3414710 📌 Offering to co-maintain Voting API Widgets Needs review - 🇯🇴Jordan Rajab Natshah Jordan
Try using the mglaman/composer-drupal-lenient composer plugin as a TEMP selution to update to Drupal 10 for security reasons
You could follow up with the README file.
composer config minimum-stability dev composer require mglaman/composer-drupal-lenient composer config --merge --json extra.drupal-lenient.allowed-list '["drupal/votingapi_widgets"]'
and the following patch
"drupal/votingapi_widgets": { "Issue #3333559: [9.2] Remove jQuery dependency from the once feature": "https://www.drupal.org/files/issues/2023-10-21/3333559-42.patch" }
- 🇺🇸United States AaronBauman Philadelphia
successfully updated a drupal site using MR2 - thanks!
- 🇩🇪Germany drupalbubb
I still would prefer a buggy dev version. No version means no future.
- 🇩🇪Germany stevieb
what's the situation with a D10 version will a dev version be released soon?
- 🇧🇪Belgium gillesbailleux La Roche-en-Ardenne
@stevieb: because of the complexity of this issue, the maintainers need support from Drupalistas contributing on Drupal core. I think in particular about Mike Herchel → to fix this issue. Joris (@borisson_), who contributed to this issue, knows him personally and could hopefully get in touch with him and ask for help.
- Status changed to Active
4 months ago 9:02pm 30 August 2024 -
TR →
committed 11203f4c on 8.x-1.x authored by
richgerdes →
Issue #3333559 by yustinTR, lonalore, Tushar1, TR, mrinalini9,...
-
TR →
committed 11203f4c on 8.x-1.x authored by
richgerdes →
- Merge request !15Issue #3333559 by yustinTR, lonalore, Tushar1, TR, mrinalini9, noorulshameera:... → (Merged) created by tr
- Status changed to Fixed
4 months ago 11:06pm 30 August 2024 - 🇺🇸United States tr Cascadia
Committed to 8.x-1.x and 2.0.x.
Please help out with 📌 JavaScript coding standards Active . I strongly suggest moving to the 2.0.x branch at this point, but I will probably make one more last release on 8.x-1.x once the JavaScript issue is finished.
Automatically closed - issue fixed for 2 weeks with no activity.