- Issue created by @smustgrave
- First commit to issue fork.
- Assigned to jigarius
- Merge request !5469Issue #3402440: Create a constant for root term ID โ (Open) created by jigarius
- Status changed to Needs review
about 1 year ago 7:46pm 19 November 2023 - ๐จ๐ฆCanada jigarius Montrรฉal
I didn't change it in any tests though. Maybe we should continue to verify a hard-corded '0' in the tests. Opinions? Suggestions?
- Status changed to Needs work
about 1 year ago 1:16pm 20 November 2023 - ๐บ๐ธUnited States smustgrave
Think if we are going to add a constant we should use it in the tests also.
- Status changed to Needs review
about 1 year ago 1:51am 21 November 2023 - ๐จ๐ฆCanada jigarius Montrรฉal
I've updated the tests to use TermInterface::ID_ROOT. Additionally, I found some more instances of "0", which I've replaced.
- Status changed to Needs work
about 1 year ago 2:07pm 21 November 2023 - ๐บ๐ธUnited States smustgrave
Just in OverviewTerms.php there seem to be 6 places the constant could be used.
- First commit to issue fork.
- Status changed to Needs review
about 1 year ago 5:14pm 21 November 2023 - ๐ฎ๐ณIndia ankithashetty Karnataka, India
MR updated with relevant changes, please review.
Thanks!
- ๐บ๐ธUnited States smustgrave
@ankithashetty thanks but this was assigned to another user just fyi.
- ๐ฎ๐ณIndia ankithashetty Karnataka, India
My apologies. I kind of missed it. Will make sure to check that next time.โ๐ผ
- Status changed to RTBC
about 1 year ago 2:47pm 23 November 2023 - ๐บ๐ธUnited States smustgrave
Believe instances have been addressed, left a question for the committer.
- Status changed to Needs work
about 1 year ago 12:44am 24 November 2023 - ๐ณ๐ฟNew Zealand quietone
hanks for working on improving Drupal core.
The issue summary here should explain the problem being solved. This needs an issue summary update to add that and to provide links to the relevant comments in the other issue. Remember, that not all reviewers or committers will be familiar with the originating issue. Let's make an issue inviting for reviewers and committers. Issue summaries do matter. โ
Thanks.
- Status changed to Needs review
about 1 year ago 4:33pm 24 November 2023 - Issue was unassigned.
- Status changed to RTBC
about 1 year ago 12:42am 26 November 2023 - Status changed to Needs work
12 months ago 6:10am 24 December 2023 - ๐ณ๐ฟNew Zealand quietone
@ankithashetty, thanks for updating the Issue Summary. It is much easier to understand and thus inviting for a reviewer.
The diff no longer applies, this needs to be rebased locally.
I do think this needs a different name for the constant, as stated in the MR. Ideas?
How can we be sure that all test instances have been changed? What can I do as a reviewer to be sure? For example, I did a little digging and found there is a method \Drupal\Tests\taxonomy\Functional\TermTest::getParentTids that refers top 0 and not the new constant. Nor, have the usages of that method been changed to use the new constant.
Setting to NW for the above.
The constant name 'TERM_ROOT_ID' can be misleading as it might be interpreted as the ID for the root term itself.
However, the constant actually holds the ID for the parent of the root term.
It would be more accurate to name the constant something like "ROOT_TERM_PARENT_ID."I have identified other scenarios where this constant needs to be used, and I am currently working on it.
- Status changed to Needs review
11 months ago 3:26pm 2 January 2024 I have renamed ID_ROOT to ROOT_TERM_ID and updated few more places with new constant.
I see parent term id hardcoded in many test files. Do we need to replace those test files?
- Status changed to Needs work
11 months ago 10:32pm 2 January 2024 - ๐บ๐ธUnited States smustgrave
Believe we should use the constant in tests also.
- Status changed to Needs review
11 months ago 1:16pm 5 January 2024 - Status changed to RTBC
11 months ago 3:08pm 8 January 2024 - ๐บ๐ธUnited States smustgrave
Believe test replacements have been completed.
- Status changed to Needs work
9 months ago 4:59pm 25 February 2024 The Needs Review Queue Bot โ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- First commit to issue fork.
- Status changed to Needs review
9 months ago 11:04am 1 March 2024 - ๐ท๐บRussia kostyashupenko Omsk
Rebased, conflicts were resolved carefully. However it needs review again.
- Status changed to Needs work
9 months ago 12:49pm 1 March 2024