Closed (fixed)
Project:
Node Order
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Aug 2019 at 14:09 UTC
Updated:
9 Jun 2024 at 17:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vuilComment #3
vuilComment #4
vuilComment #6
vuilComment #7
vuilComment #8
vuilComment #9
vuilComment #10
vuilComment #11
vuilComment #12
vuilSomeone to help with the following issues of Kernel Tests (install/uninstall) inside?
Thank you in advance.
Comment #13
vuilComment #14
asya_asina commentedI checked the code using drupal-check tools. And drupal-check showed follow results:
------ --------------------------------------------------------------------------
Line nodeorder.install
------ --------------------------------------------------------------------------
31 Call to deprecated function db_add_field():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead,
get a database connection injected into your service from the container,
get its schema driver, and call addField() on it. For example,
44 Call to deprecated function db_drop_index():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead,
get a database connection injected into your service from the container,
get its schema driver, and call dropIndex() on it. For example,
45 Call to deprecated function db_drop_field():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead,
get a database connection injected into your service from the container,
get its schema driver, and call dropField() on it. For example,
------ --------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------
Line nodeorder.module
------ -----------------------------------------------------------------------------------
43 Call to deprecated method getVocabularyId() of class Drupal\taxonomy\Entity\Term:
in drupal:8.?.? and is removed from drupal:9.0.0. Use
TermInterface::bundle() instead.
103 Call to deprecated method entityManager() of class Drupal:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal::entityTypeManager() instead in most cases. If the needed
method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the
deprecated \Drupal\Core\Entity\EntityManager to find the
correct interface or service.
113 Call to deprecated function db_select():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
125 Call to deprecated function db_update():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call update() on it. For example,
134 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
142 Call to deprecated method entityManager() of class Drupal:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal::entityTypeManager() instead in most cases. If the needed
method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the
deprecated \Drupal\Core\Entity\EntityManager to find the
correct interface or service.
149 Call to deprecated function db_update():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call update() on it. For example,
155 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
176 Call to deprecated function db_select():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
240 Call to deprecated function db_update():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call update() on it. For example,
------ -----------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------
Line src/Access/NodeOrderAccess.php
------ -----------------------------------------------------------------------------------
70 Call to deprecated method getVocabularyId() of class Drupal\taxonomy\Entity\Term:
in drupal:8.?.? and is removed from drupal:9.0.0. Use
TermInterface::bundle() instead.
------ -----------------------------------------------------------------------------------
------ ----------------------------------------------------------------------
Line src/NodeOrderListBuilder.php
------ ----------------------------------------------------------------------
292 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line src/NodeOrderManager.php
------ -------------------------------------------------------------------------
60 Call to deprecated function db_update():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call update() on it. For example,
68 Call to deprecated function db_select():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
82 Call to deprecated function db_select():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
96 Call to deprecated function db_update():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call update() on it. For example,
127 Call to deprecated function db_select():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
180 Call to deprecated function db_select():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
212 Call to deprecated function db_query_range():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead,
get a database connection injected into your service from the container
and call queryRange() on it. For example,
273 Call to deprecated function db_select():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
320 Call to deprecated function db_select():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
337 Call to deprecated function db_update():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call update() on it. For example,
------ -------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------------------------------------
Line src/Tests/NodeorderCrudTest.php
------ -----------------------------------------------------------------------------------------------------------------
13 Class Drupal\nodeorder\Tests\NodeorderCrudTest extends deprecated class Drupal\taxonomy\Tests\TaxonomyTestBase:
in drupal:8.?.? and is removed from drupal:9.0.0.
Use \Drupal\Tests\taxonomy\Functional\TaxonomyTestBase instead.
47 Call to method setUp() of deprecated class Drupal\taxonomy\Tests\TaxonomyTestBase:
in drupal:8.?.? and is removed from drupal:9.0.0.
Use \Drupal\Tests\taxonomy\Functional\TaxonomyTestBase instead.
57 Call to deprecated function entity_create():
in drupal:8.0.0 and is removed from drupal:9.0.0. Use
The method overriding Entity::create() for the entity type, e.g.
\Drupal\node\Entity\Node::create() if the entity type is known. If the
entity type is variable, use the entity storage's create() method to
construct a new entity:
68 Call to deprecated function entity_create():
in drupal:8.0.0 and is removed from drupal:9.0.0. Use
The method overriding Entity::create() for the entity type, e.g.
\Drupal\node\Entity\Node::create() if the entity type is known. If the
entity type is variable, use the entity storage's create() method to
construct a new entity:
86 Call to deprecated function entity_get_form_display():
in drupal:8.8.0 and is removed from drupal:9.0.0. Use
EntityDisplayRepositoryInterface::getFormDisplay() instead.
91 Call to deprecated function entity_get_display():
in drupal:8.8.0 and is removed from drupal:9.0.0. Use
EntityDisplayRepositoryInterface::getViewDisplay() instead.
299 Call to deprecated function db_select():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
------ -----------------------------------------------------------------------------------------------------------------
------ ---------------------------------------------------------------------------
Line tests/src/Functional/NodeorderPermissionsTest.php
------ ---------------------------------------------------------------------------
Class Drupal\Tests\BrowserTestBase not found and could not be autoloaded.
------ ---------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------------------------
Line tests/src/Kernel/NodeorderInstallTest.php
------ -----------------------------------------------------------------------------------------------------
Class Drupal\Tests\nodeorder\Kernel\NodeorderInstallTestBase not found and could not be autoloaded.
------ -----------------------------------------------------------------------------------------------------
------ --------------------------------------------------------------------------------
Line tests/src/Kernel/NodeorderInstallTestBase.php
------ --------------------------------------------------------------------------------
Class Drupal\KernelTests\KernelTestBase not found and could not be autoloaded.
------ --------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------------------------
Line tests/src/Kernel/NodeorderUninstallTest.php
------ -----------------------------------------------------------------------------------------------------
Class Drupal\Tests\nodeorder\Kernel\NodeorderInstallTestBase not found and could not be autoloaded.
------ -----------------------------------------------------------------------------------------------------
Comment #15
Shreevasa Tantry commentedupdated patch. Please review.
Comment #16
vuilThe patch of #15 works fine and fixes the issue. I set the issue status to Reviewed & tested by the community.
Comment #17
davps commentedPatch #15 contains errors that will cause exceptions
Comment #18
vuil@davps Could you post the raised exceptions (and/or screenshot)?
Thank you.
Comment #19
samvada_jain_m commentedPlease review the patch.
Comment #20
samvada_jain_m commentedComment #22
samvada_jain_m commentedComment #24
suresh prabhu parkala commentedPlease review!
Comment #25
vuilComment #26
nikitagupta commentedComment #27
nikitagupta commentedFixed the test cases.
Comment #28
nikitagupta commentedComment #29
davps commentedHere is a combined patch from all comments and with few additional fixes according to phpcs output.
Comment #31
davps commentedComment #33
davps commentedComment #35
davps commentedComment #36
shaktik#35 no longer to applies so i have re-rolled #35 patch kindly check .
Comment #38
msutharsComment #39
shaktikHey @msuthars are you still working on this?
Comment #40
msuthars@shaktik Yes I'm I working on it. I fixed the #36 test case issue. But stuck in other test case issues.
Comment #41
msutharsFixed the testcase issues, Updated the patch. Please review.
Comment #43
megha_kundar commentedComment #45
meena.bisht commentedadding patch.
Comment #47
meena.bisht commentedAttching corrct comment number and interdiff
Comment #48
meena.bisht commentedComment #50
meena.bisht commentedComment #51
megha_kundar commentedComment #52
megha_kundar commentedComment #53
megha_kundar commentedComment #55
shaktiksorry Megha_kundar,
fixed testcase, kindly check.
Comment #56
megha_kundar commentedComment #57
megha_kundar commentedSorry by mistake
Comment #58
mschudders commentednew patch, fixed a few things so the basic functionality works again.
Comment #60
mschudders commentedreverting tests done in patch #55 to the default state on this branch.
Changes done in #55 can't work.
Comment #61
mschudders commentedmy bad, previous patch was a patch from #55 to #59
Attached the full patch
Comment #62
kapilv commentedComment #63
Pooja Ganjage commentedHi,
Creating patch for #61 comment failed case.
Please review the patch.
Thanks.
Comment #64
Pooja Ganjage commentedComment #65
Pooja Ganjage commentedComment #67
Pooja Ganjage commentedComment #68
Pooja Ganjage commentedComment #70
kapilv commentedComment #72
Pooja Ganjage commentedComment #73
Pooja Ganjage commentedComment #75
Pooja Ganjage commentedComment #76
Pooja Ganjage commentedComment #78
Pooja Ganjage commentedComment #79
Pooja Ganjage commentedComment #80
Pooja Ganjage commentedComment #81
Pooja Ganjage commentedComment #82
Pooja Ganjage commentedComment #83
Pooja Ganjage commentedComment #85
Pooja Ganjage commentedComment #86
willempje2 commentedI think
$container->get('entity.manager')->getStorage($entity_type->id()),https://git.drupalcode.org/project/nodeorder/-/blob/8.x-1.x/src/NodeOrde...
Should be:
$container->get('entity_type.manager')->getStorage($entity_type->id()),EntityManager::getStorage is removed from drupal:9.0.0.
Comment #87
xpersonas commentedYep. I updated that (getStorage) deprecation and the db_query_range deprecation. See patch below. I just tacked those two on to what Pooja already did. She basically did all the work. Thank you!
Comment #88
xpersonas commentedComment #96
davps commentedThank you all for helping with this issue. I'll apply all suggested changes in new merge request, feel free to add your changes in the forked branch.
Comment #97
xpersonas commented@davps - I created another issue with a patch. Since it's D9/PHP8 related, I thought it made sense to add a merge request to this fork. Please correct me if I'm wrong.
Still getting used to the new Gitlab workflow. Sorry if I confused anything. This module is super essential to our site so I want to help in any way I can.
Comment #99
segi commentedI upload a new patch after some changes in dev branch. It's more secure to pull that patch from here because it represents a state of the code.
Comment #102
gurvan commentedComment #103
vuilComment #105
bygeoffthompson commentedI need to keep NodeOrder on a site I manage that is updating to Drupal 9 this week.
I downgraded to the develop branch of this project, applied patch #102, and that has NodeOrder Drupal 9 ready according to the Upgrade Status module. The patch was tested and is successful.
Thanks
Comment #106
ralkeon commentedI can't get this working, the patch doesn't change anything cause the compatibility check is done before the module gets patched (and dev module will always be reinstalled).
I saw in commits that the module was updated to "d9 ready" and then reverted here . It needs more work?
Comment #107
maacl commentedThis could help: https://www.drupal.org/docs/develop/using-composer/using-drupals-lenient...
There are failing tests, so we need to fix this.
I looked through some of the patches and used drupal-check and rector locally, and I think in #102 are changes which are not intended. So I will attach my attempt at this, and we will see what the tests have to say.
Comment #108
maacl commentedHm, I can't get the tests to run against D9. Another try...
Or is there something wrong with the settings of this project?
Comment #109
maacl commentedI tried to get the tests to run on my machine, and found some more things to fix. Unfortunately I got stuck with this error:
I am not sure what is happening, and why the table is "taxonomy_index_0". I did not find any examples of a module adding a index to a table either, so not sure if the code is still correct for D9.
Comment #110
byacoubi commentedHello
I created this patch for drupal 9
This patch work very well for me.
thanks.
Comment #111
maacl commented@byacoubi Thanks. Unfortunately your patch does not apply against the dev-version of the module.
> I think in #102 are changes which are not intended.
This assumption was wrong, I have it now integrated in my patch. Using this version now in my projects.
Comment #112
kemsnake commentedComment #113
proweb.ua commented#112 in dev version
in beta2
after click install:
Comment #114
renew commented@proweb.ua Same problem over here.
It doesn't seem a very active subject over here. So does anybody found a good replacement for this module? I hoped Entityqueue would be a good replacement, but I can't make it do what this module does...
Comment #115
dcdenison commentedHaven't been able to find a good replacement either.
Comment #116
alezu commentedOK, I think it's time to continue this work again. I've adapted the code along to Drupal 9.3 and it seems working.
Comment #117
alezu commentedComment #118
dcdenison commentedThank you Alezu! This is a valuable module.
Comment #119
artis.bajars commentedAny chance we could get a 9.x branch / 9.x-dev version going? Otherwise the only way to install this upgrade via composer is to use Drupal's lenient endpoint and then patch it.
Comment #120
dcdenison commentedWould love to see a 9.x branch / 9.x-dev version.
Comment #121
nelo_drup commentedAny news about this module I was trying to apply the patches but I can't find any specific order
Comment #122
alorencI can see that a lot of work has been already done but nothing has been committed.
I am happy to help with creation of d9 version. Do we have any active maintainer in this project?
Comment #124
dcdenison commentedNot a developer, but willing to help any way I can.
Comment #125
dcdenison commentedCould Node Weight replace Node Order?
https://www.drupal.org/project/node_weight
Are there other modules that people are using instead of Node Order?
Comment #126
xpersonas commentedIs it safe to say this module is no longer maintained? There's no D8 version on the release page. The last D8 beta was created on May 2, 2018.
I find this module immensely useful and use it on my most of my larger sites even to this day.
I'm curious what we do now? I'd like to see this module kept up to date. What would be best? Do we just use the fork forever? Can we become maintainers somehow? Just want to see this module continue. I don't think there's a viable alternative, and I don't want to pollute the module list with a clone of this module with a different name.
What do we do?
Comment #127
xpersonas commentedOk, I find this module absolutely necessary on quite a few sites. It was hard enough with Drupal 9, but now that I'm updating to Drupal 10...
I went ahead and created a new module. I'm going to use it to cater to Drupal 9 and 10 only. It's mostly an updated copy of this module's current state (right now), updated to work with Drupal 10 and renamed as to not cause conflicts.
https://www.drupal.org/project/node_order_by_term
Feel free to open up issues, request to co-maintain, etc.. Or maybe I just use it. Either way. I just need this module working on my Drupal 10 upgrade, and I feel like this is going to be the easiest route.
Comment #128
lahoosascoots commentedI believe there is an official way of becoming a maintainer of an abandoned project. I can’t quite find it but I’ve seen it somewhere. Maybe ask in the Drupal Slack?
Comment #129
alezu commented@xpersonas, wouldnt't it be better for you to request for a maintainer role for this module?
Comment #130
xpersonas commentedI would be happy to become a maintainer for this project. But I don't feel like the maintainers are responding. If there's a way to do that for an abandoned project, I'm not aware of it. The original authors and maintainers did a great job with this module. I just need something stable going forward. I can remove my project or keep it private if it causes conflict or this module gets updated.
Comment #131
alezu commented@xpersonas there is a way, described here:
https://www.drupal.org/docs/develop/managing-a-drupalorg-theme-module-or...
You will be interested in point #6.
Comment #132
xpersonas commentedI'm offering to update and maintain this module.
https://www.drupal.org/project/nodeorder
Comment #133
gislexpersonas, if you're interested in becoming a maintainer of Node Order, you need to follow the procedure outlined here: https://www.drupal.org/docs/develop/managing-a-drupalorg-theme-module-or...
Hijacking an existing issue created for a different purpose is not the right way to do this.
Moving back to the project's own issue queue.
If you open a new issue offering to maintain, remember to PM the owner marcp and record the date you sent the PM in the issue summary of the new issue you create. It may be a good idea to PM all the maintainers as well, as they can add you to the team.
Comment #134
xpersonas commentedLOL. Well, I'm failing. I guess I misunderstood the instructions. I jumped straight to #6. Trying to be helpful, but I think I'm doing the opposite. Apologies to everyone. If only I could delete all my posts here.
Comment #135
renew commented@xpersonas Your work and help is much appreciated! After waiting for a long time, trying to find other modules that works, while ignoring the mails telling me I have an unsupported module in my project, it would be great if this module would be alive again!
So thanks again for your efforts!
Comment #136
xpersonas commentedThanks @ReneW. I appreciate that. Yeah just trying to do this the right way. I made a new issue asking to be a maintainer or co-maintainer. I think I have to wait 2 weeks before I can request ownership through drupal.org. So that's what I'm going to try.
Comment #137
davps commentedHello everyone, I'll take a look patches at the weekend.
Next time for quick feedback send message in slack. thanks in advance.
Comment #140
xpersonas commentedDev version has been updated and should be compatible with Drupal 9 now.
Comment #144
davps commentedI am closing the task due to the fact that all the changes have been merged into the 2x branch. Thank you all for your help.