Needs work
Project:
Message
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
30 Dec 2021 at 11:50 UTC
Updated:
22 Feb 2022 at 23:09 UTC
Jump to comment: Most recent, Most recent file
There is no migration for the global settings of message module currently. Also, migration for a few message template settings is missing.
Comments
Comment #2
srishtiiee commentedComment #3
srishtiiee commentedTesting the patch on D8.
Comment #4
srishtiiee commentedComment #5
huzookaWhat happens if
$value['message_purge_enable']evaluates as FALSE?I think that there won't be any
purge_methodsthen, so this will trigger an error.Could you please add a comment about why this should be enabled?
If purge isn't enabled, then
purge_methodsshould be an empty array.It would be very nice if you have added some test data for message templates and actual messages as well.
d7_messagemigration is missing theContenttag, and since message template is its bundle entity, it should depend ond7_message_template.d7_message_templatemigration is missing theConfigurationtag.Comment #6
srishtiiee commentedAddressed issues listed in #5.
Comment #7
srishtiiee commentedTesting on D8.
Comment #9
wim leersAll that (I think) was needed here, was for this patch to be tested in combination with #3256855-4: Duplicate message texts after migration..
Comment #10
wim leers🐛 s/node_class/message/
Nit: This can use
assertCount($2, result)instead to avoid the manualcount()call 🤓That second one is such a nitpick, that first one can easily be fixed by the maintainer on commit.
So: marking this RTBC — awesome work here!D'oh, the tests are failing on 9.3! 😬I bet this is due to https://www.drupal.org/node/3230199 — i.e. all you need is to re-sort these, if my suspicions is correct.
Same suspicion.
Comment #11
srishtiiee commentedComment #12
srishtiiee commentedRenamed the patch.
Comment #13
wim leersThe 8 failures in #12 (see https://www.drupal.org/pift-ci-job/2302552) are identical to those in #3259735-2: Add daily test against Drupal 9 core minor (see https://www.drupal.org/pift-ci-job/2300844). I manually compared those test results.
That means this is de facto green!
Comment #14
srishtiiee commentedFinal patch to avoid conflicts with Issue #3256855 patch #4.
Comment #16
jhedstromTests are now passing on the main branch, so it looks like this needs a bit of work to get the new tests passing.