Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Head is currently failing, seems like again because of [#2847274]
Proposed resolution
If it's in fact because of the mentioned core change tweak the trait ParagraphsCoreVersionUiTestTrait adapter method.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#24 | fix_head_test_fails-2902554-24.patch | 29.68 KB | Primsi |
#24 | interdiff-fix_head_test_fails-2902554-24.patch.txt | 29.68 KB | Primsi |
#21 | fix_head_test_fails-2902554-21.patch | 98.77 KB | Primsi |
#21 | interdiff-fix_head_test_fails-2902554-21.patch.txt | 6.02 KB | Primsi |
#19 | fix_head_test_fails-2902554-19.patch | 97.71 KB | Primsi |
Comments
Comment #2
Primsi CreditAttribution: Primsi at MD Systems GmbH for MD Systems GmbH commentedChanged the existing method so we don't need to do the same again for future versions.
Comment #4
Primsi CreditAttribution: Primsi at MD Systems GmbH for MD Systems GmbH commentedRetry.
Comment #6
Primsi CreditAttribution: Primsi at MD Systems GmbH for MD Systems GmbH commentedThat renaming definitely didn't go smooth.
Comment #7
Primsi CreditAttribution: Primsi at MD Systems GmbH for MD Systems GmbH commentedComment #9
Primsi CreditAttribution: Primsi at MD Systems GmbH for MD Systems GmbH commentedComment #11
miro_dietikerI don't like to see this code read like outdated 8.3 API and then implicitly make it compatible with >8.3
Instead IMHO it should read like interacting with 8.4+ and implement backwards compatibility.
So there are still some fails left? :-)
Comment #12
BerdirThis is IMHO backwards because as soon as 8.4.0 is stable (if not before, in the past we never cared), there is no reason to keep tests working on 8.3 and we want to remove this stuff again. But then we'd have to change all those calls again.
If we do keep that method, I would recommend to invert it and map to old submit instead.
However, the thing is that all this is only necessary because all our tests have "administer nodes" permission, but you only need that if you want to control revision checkbox or status and a few other things.
Without that permission, it is always just Save, that's what I did in the drag drop test.
So my recommendation would be to remove that permission by default and just do some BC for the few tests that actually need to change revision/status. I would imagine that we have almost no tests doing that.
Comment #13
Primsi CreditAttribution: Primsi at MD Systems GmbH for MD Systems GmbH commentedInitial stab at the above mentioned approach. Hopefully I got that correctly.
Also was not sure if the translations related buttons remain the same or not, let's see.
Comment #14
Primsi CreditAttribution: Primsi at MD Systems GmbH for MD Systems GmbH commentedAddressing search/replace ouches spotted by @Berdir. Bonus scope creep with an additional ;; in paragraphs.module.
Comment #16
Primsi CreditAttribution: Primsi at MD Systems GmbH for MD Systems GmbH commentedFixing translation related stuff (hopefully).
Comment #18
Primsi CreditAttribution: Primsi at MD Systems GmbH for MD Systems GmbH commentedFixing revisions stuff.
Comment #19
Primsi CreditAttribution: Primsi at MD Systems GmbH for MD Systems GmbH commentedFixing this two fails. This should do it for 8.4 (and 8.5?) What should we do then with < 8.4? we switch default testing branch to 8.4 and ignore older versions, or do we use the adapter method?
Comment #21
Primsi CreditAttribution: Primsi at MD Systems GmbH for MD Systems GmbH commentedIf we decide to care only about 8.4+ here is a patch with the removed compatibility trait.
Comment #23
miro_dietikerCommitting this from #19 as tests regularly pass.
For 8.3 it seems there's something wrong with the compatibility layer. The condition looks wrong to me.
Comment #24
Primsi CreditAttribution: Primsi at MD Systems GmbH for MD Systems GmbH commentedIf we care about 8.3- this is the right patch. Fingers crossed.
Comment #25
Berdirthis seems wrong, status FALSE but keep published?
Ah, so a lot of these are needed because we are creating admin roles. Didn't even know that API exists.
Looks like the only reason for example this class does that is to create languages through the UI, but ConfigurableLangugae::createFromLanguage()->save() is much easier than that and then we might be OK with the standard admin permissions/user?
Comment #26
miro_dietikerComment #27
Berdir