Problem/Motivation
In #2679008: Module weight is not taken into account after module installation weight of the content_translation module changed in some scenarios. We need to ensure our form alter for language content settings runs after content translation module acted on that one.
Proposed resolution
Increase weight of lingotek module.
Remaining tasks
None
User interface changes
None
API changes
None.
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | 2892220-module-weight-15.patch | 231.62 KB | penyaskito |
| #15 | 2892220-module-weight-15.only-tests.patch | 230.38 KB | penyaskito |
Comments
Comment #2
penyaskitoWe will need a hook_update_N for that.
Comment #3
penyaskitoComment #4
penyaskitoComment #5
penyaskitore-uploading
Comment #8
penyaskitoUpgrade path and upgrade path tests.
Comment #11
clemens.tolboom15 is an arbritrary number. I would anticipate on module_get_weight('content_translation'); which is (or was?) not implemented. Then write a test for when core fixes this module_set_weight.
Comment #12
penyaskitomodule_get_weightdoesn't exist, and content_translation already has an arbitrary weight (10).I'm including tests covering the upgrade + a new install. There may be cases where content_translation weight will be 0, as there was no upgrade path on that issue. I'm commenting about that there with further analysis.
Comment #13
penyaskitoDump needs to be done with lower supported version (8.3.x) or they may be schema errors in the tests as its the case.
Comment #14
clemens.tolboomI should have added #1808132: Move module_set_weight() into ModuleHandler::setWeight(), add ModuleHandler::getWeight() to replace missing functionality
Comment #15
penyaskitoThanks, @clemens.tolboom.
Attaching new patch with new dump. No interdiff as it's a binary change.
Comment #18
penyaskitoTests passed and failed as expected (well, aside of the testbot issue writing to disk in random occasions)
Comment #20
penyaskitoCommitted ad06061 and pushed to 8.x-2.x. Thanks!
Comment #21
penyaskito