Closed (fixed)
Project:
Sitewide Alert
Version:
2.0.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Jun 2022 at 14:14 UTC
Updated:
30 May 2023 at 17:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
erikbrgn commentedComment #4
michelecris commentedHi!
I will try to review this one.
Comment #5
michelecris commentedHi @erickbrgn
I reviewed your code and your test all passed!
But when I try to reproduce the alerts on drupal, I realize that shows just the default language. If I try to translate other language inside the alert, this isn't showing up when I select the correspondent language. Just if I create a new alert and select default the language I want to show. So I will try to fix that.
Comment #7
michelecris commentedHello!
I made some changes in the code, and now its showing all the messages saved from the current language inside the alert not just the default message that was before. I made some screenshots from alerts module view now. If someone could review that I will aprecciate.
Thanks!
Comment #8
erikbrgn commentedHello @michelecris.
Thanks for the review/feedback!
I think it'd be easier if you'd continued the existing fork/MR instead of creating your own with my changes committed as yours.
I've added a test for the scenario you mentioned, which made me change the approach a little by utilizing
EntityQueryandEntityRepositoryto retrieve alerts instead of relying fully on the storage.Comment #9
michelecris commentedHi @erikbrgn
Im sorry about that, Im new here and still learning the rules and how I can help the Drupal community. So I could review your code and see if resolve the problem that I mentioned before here.
Comment #10
michelecris commentedHello again @erikbrgn!
I reviewed your new aproach in #8 and now its working right!
I run the test and all passed too. And I print my drupal page showing how it was before in 2.x branch and now in your branch MR24 with your new changes and return all correct. So I will change the status for RTBC.
Thanks!
Comment #11
michelecris commentedComment #12
erikbrgn commentedExcellent. Thanks for reviewing, @michelecris :)
Comment #13
andre.bononAdding a "snapshot" patch from #8, as the MR's Diff might change.
Comment #15
chrissnyder