- ๐ฎ๐ณIndia urvashi_vora Madhya Pradesh, India
I believe, this will be a valid approach to meet the requirement.
Kaushik1216 โ made their first commit to this issueโs fork.
- @kaushik1216 opened merge request.
- ๐ฎ๐ณIndia urvashi_vora Madhya Pradesh, India
The MR changes looks good to me, but further I would definitely like to test it thoroughly in different setups before moving it to RTBC.
At present, setting the issue status as "Needs Review".
Thanks @Kaushik1216 for the work.
I appreciate your efforts.
- Status changed to Needs work
over 1 year ago 2:39pm 7 March 2023 - ๐ฉ๐ชGermany Harlor Berlin
@Kaushik1216, Look at the tests ;)
Also I'd expect that we have to adjust this test:
// Check that saving a comment produces a success message. $this->drupalGet('comment/' . $comment->id() . '/edit'); $this->submitForm($edit, 'Save'); $this->assertSession()->pageTextContains('Your comment has been posted.');
@Harlor please more elaborate your comment #11 on adjust test . ie where and why we should add this code as I am new here .Thanks in advance !
- ๐ฉ๐ชGermany Harlor Berlin
@Kaushik1216,
If you haven't already make your self familiar with automated testing in drupal. You can find the error I expected to happen in #11 now in https://www.drupal.org/pift-ci-job/2611730 โ .
- @kaushik1216 opened merge request.
- Status changed to Needs review
over 1 year ago 3:26pm 21 March 2023 - ๐ฉ๐ชGermany Harlor Berlin
@Kaushik1216, Ah the two messages just needed to be interchanged so some of the failing tests were actually right ;)
- ๐ฎ๐ณIndia nayana_mvr
Verified the MR!3603 on Drupal version 10.1.x. The patch applied cleanly and now the status message on comment edit is changed to 'Your comment has been updated.' I have added the before and after screenshots for reference. Need RTBC+1.
- ๐ฎ๐ณIndia Rinku Jacob 13 Kerala
Reviewed Merge requests!3603 . After applying the Merge request edit comment message changed to "Your comment has been updated". Need RTBC +1.
@Harlor Thanks for changing MR . A warm Thanks to @nayana_mvr and Rinku Jacob 13 for testing MR
- Status changed to Needs work
over 1 year ago 12:03am 30 March 2023 - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Thanks folks! left some comments on the MR - tl;dr I think this is close, I'd just like to see the message derivation in it's own method to avoid the complexity of if/else/elseif and we need to target 10.1.x because of the string change.
- last update
over 1 year ago Custom Commands Failed - @kaushik1216 opened merge request.
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - ๐ฉ๐ชGermany Harlor Berlin
I'm a bit confused with the branches on which one are we working now?
I am working previously on 10.1 branch but now somehow branch for this issue changed to 11.0.x
- last update
about 1 year ago 29,482 pass - @harlor opened merge request.
- last update
about 1 year ago 29,464 pass, 4 fail - Status changed to Needs review
about 1 year ago 9:47am 20 September 2023 - ๐ฉ๐ชGermany Harlor Berlin
I couldn't figure out how the branch could be fixed so I created a new branch from 10.1.x and cherry-picked the relevant commits...
I also added the doc-block for the getStatusMessage method
- last update
about 1 year ago 29,482 pass - ๐บ๐ธUnited States smustgrave
Change looks good. Believe @larowlan did a review but branch will have to be updated to 11.x please
- last update
about 1 year ago 29,482 pass 29:29 28:55 Running- last update
about 1 year ago 30,168 pass - Status changed to RTBC
about 1 year ago 1:38pm 22 September 2023 - ๐บ๐ธUnited States smustgrave
Yup, as long as the MR still applies you can click "Add test/retest" underneath it.
Reran for 11.x and all green and confirmed the new message.
- last update
about 1 year ago 30,205 pass - last update
about 1 year ago 30,363 pass - last update
about 1 year ago 30,365 pass - Status changed to Needs work
about 1 year ago 1:17am 30 September 2023 - ๐บ๐ธUnited States xjm
Can we please close all the MRs except the correct one?
Also, we don't tag string changes anymore.
Thanks!
- ๐ฉ๐ชGermany Harlor Berlin
Sorry, I closed my obsolete MR.
@Kaushik1216 Could you please close https://git.drupalcode.org/project/drupal/-/merge_requests/3982? It seems that I don't have the permission to do that.
- Status changed to RTBC
about 1 year ago 10:08am 4 October 2023 - last update
about 1 year ago 30,379 pass - last update
about 1 year ago 30,377 pass - last update
about 1 year ago 30,382 pass - last update
about 1 year ago 30,392 pass - last update
about 1 year ago 30,394 pass - last update
about 1 year ago 30,397 pass - last update
about 1 year ago 30,412 pass - last update
about 1 year ago 30,417 pass 28:08 26:56 Running- last update
about 1 year ago 30,426 pass - last update
about 1 year ago 30,436 pass - last update
about 1 year ago 30,438 pass - last update
about 1 year ago 30,464 pass - last update
about 1 year ago 30,481 pass - last update
about 1 year ago 30,483 pass - last update
about 1 year ago 30,486 pass - last update
about 1 year ago 30,486 pass - last update
about 1 year ago 30,493 pass - Status changed to Needs work
about 1 year ago 10:22pm 9 November 2023 - ๐บ๐ธUnited States xjm
Posted a couple minor suggestions on the MR. Thanks!
Kaushik1216 โ changed the visibility of the branch 3346218-d11-fix-comment-update-message to hidden.
- Status changed to Needs review
7 months ago 12:13pm 5 April 2024 - ๐ฉ๐ชGermany Harlor Berlin
Harlor โ changed the visibility of the branch 3346218-d11-fix-comment-update-message to active.
- ๐ฉ๐ชGermany Harlor Berlin
Harlor โ changed the visibility of the branch 3346218--patch-b83b to hidden.
- ๐ฉ๐ชGermany Harlor Berlin
Harlor โ changed the visibility of the branch 10.1.x to hidden.
- Status changed to Needs work
7 months ago 1:06pm 5 April 2024 - Status changed to Needs review
7 months ago 9:02am 8 April 2024 - ๐ฉ๐ชGermany Harlor Berlin
I merged 11.x into the MR's branch - and the tests succeeded.
- Status changed to RTBC
7 months ago 1:51pm 9 April 2024 - Status changed to Needs work
7 months ago 2:09pm 9 April 2024 - ๐ฌ๐งUnited Kingdom catch
@xjm's feedback on the MR hasn't been addressed - suggestion was to make $is_new the second parameter. Also I'm not sure we need that parameter at all, since $comment->isNew() should work?
- ๐ฎ๐ณIndia pradhumanjainOSL
pradhumanjain2311 โ made their first commit to this issueโs fork.
- ๐ฉ๐ชGermany Harlor Berlin
@catch, @pradhumanjain2311, We need the $is_new variable because the status message is generated after $comment->save(); and the comment is no longer new.
Sorry, I forgot to interchange the parameters :S
- Status changed to Needs review
7 months ago 9:00am 10 April 2024 - ๐ฉ๐ชGermany Harlor Berlin
I reverted to the variant with two parameters and interchanged the parameters.
- Status changed to RTBC
7 months ago 5:54pm 10 April 2024 - ๐บ๐ธUnited States smustgrave
Sorry for jumping the gun in #49 but seeing $is_new as the 2nd parameter now
- Status changed to Needs work
7 months ago 9:37pm 11 April 2024 - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Left a minor comment on the MR
- Status changed to Needs review
7 months ago 9:27am 12 April 2024 - ๐ฉ๐ชGermany Harlor Berlin
I applied the suggested changes - this time using gitlab :D
- Status changed to RTBC
7 months ago 6:50pm 17 April 2024 - ๐บ๐ธUnited States xjm
Saving issue credits. I granted credit for the manual testing in #20 as well as that in #18, because in this scenario (where the original message is correct sometimes, and the new message is correct others), the video is actually really helpful over screenshots. (Normally we would not grant credit for duplicate manual testing.)
- ๐บ๐ธUnited States xjm
This looks great now. I made a small change to the docblock to add an explanation of
$is_new
, since @catch question was a totally sensible one. - Status changed to Fixed
7 months ago 11:15pm 17 April 2024 - ๐บ๐ธUnited States xjm
Committed to 11.x and cherry-picked to 10.3.x. I did not backport it to 10.2.x as it includes a string addition and slight behavior change. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.