Closed (fixed)
Project:
Drupal core
Version:
9.5.x-dev
Component:
forum.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Feb 2021 at 18:46 UTC
Updated:
13 Dec 2022 at 11:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
larowlanThis would actually impact functionality
Comment #3
larowlanComment #4
shashwat purav commentedPatch added
Comment #5
gauravvvv commentedPatch applied cleanly and fixed the typo. Moving to RTBC
Comment #6
gauravvvv commentedComment #7
larowlanWe still need a test here
Comment #8
gauravvvv commentedComment #9
shashwat purav commentedHello @larowlan, please suggest the test that need to perform.
Comment #10
larowlanVisit the add page, and make sure the field value is set correctly
Comment #11
guilhermevp commentedForum creation and containers seems to be working fine after patch.
RTBC +1
Comment #12
ey commentedIt still needs automated tests, see comment #7.
Comment #13
paulocsComment #14
paulocsI tried to write something like:
But even if the key is
forum_controller, the test passes. So not sure how to do it.And not sure how to verify it directly on the add page as the field is not rendered.
Comment #15
larowlanI think the issue is that the default value is zero, so the change here makes no difference
I think if the tests add additional coverage, we should add them.
But I think we should remove the line altogether, it doesn't matter that it says 'forum_controller', because the default of zero is still applied for 'forum_container'.
It could say 'forum_potato' and still work :)
So yeah, if the tests add new coverage, let's add them.
And let's remove the line altogether.
And that also means this is a task, for cleanup, rather than a user-facing bug.
Thanks everyone for their work so far.
Comment #16
larowlanComment #17
shashwat purav commentedAdded interdiff and patch for the changes suggested in #15
Comment #18
larowlanThanks, so we just need to confirm that we have existing coverage that addForum creates a forum (not a container).
If we do, then this is RTBC
Comment #19
ilgnerfagundes commentedI applied the patch and can normally create the forum and the container
Comment #20
catchStill need an answer for #18 I think.
Comment #21
paulocsSo if we add the test that I wrote in comment #14 in the patch, we can confirm that the addForum is creating a Forum.
Or do we need to add anything more?
Comment #22
volkswagenchickTagging for Florida DrupalCamp which is happening today, Feb 10, 12-4pm ET
Thanks
Comment #23
le72I confirm addForum creates a forum after patching with #17 .
Comment #24
le72Comment #25
larowlanThanks folks, we still need to confirm that we have existing test coverage that addForum creates a forum (not a container).
I'll update the issue summary with that step so that this doesn't get marked RTBC again without it.
Comment #26
quietone commentedUpdating tags
Comment #30
bebalachandra commentedPatch #17 implemented as per #15 guidelines. Patch seems like solution for the existing issue. Leaving as needs review for further verifications
Comment #31
larowlanWe have existing test coverage for this form and that the forum_container field is set correctly in
\Drupal\Tests\forum\Functional\ForumTest::createForumSo, the patch in #17 is indeed RTBC
Updated issue summary.
Comment #32
alexpottNot created any screenshots as these didn't answer the question whether we have existing automated test coverage of forum creation. That was answered in #31.
Committed and pushed 3cb6f37cc1 to 10.1.x and 2301594474 to 10.0.x and 1163080ceb to 9.5.x. Thanks!
Not backporting to 9.4.x as this is a task and changes runtime code.