Problem/Motivation
Avoid any core or page update to be blocked by a patch that does not apply, mantainers will release new version as asap when that occurs.
Proposed resolution
Add suggest to composer.json & include documentation instead providing patches directly?
Add to status report page message? TBD
Issue fork vlsuite-3362621
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
crzdev commentedComment #4
alejandro cabarcos commentedIm not sure how we should handle the patches dependency. After reading composer docs and checking other contrib modules, the suggest composer property is used to suggest packages that can improve/boost/help this package.
https://getcomposer.org/doc/04-schema.md#suggest
For example, we could use this property to recommend the Ajax Loader module, but in this case, we need these patches to be applied.
I think we should provide help so those issues are fixed, and until then, create forks for these modules with the patches applied.
What do you think?
Comment #5
crzdev commentedMaybe we should reconsider this with more time, those patches are essential in order to get suite working as expected (removing them may even make some future unit test impossible to pass). Changing MUST to SHOULD to launch first stable version.
The unique point of having them included is that may block some site update due patch does not apply in composer until is adjusted in suite (& we should get notified due automated testing already set for D9 & D10 stable versions in case that happens, even we can add other with dev versions in order to have more time to make any adjustment).
Comment #6
tunicI think there 3 options:
Option 3 is nto acceptable if we have to patche the core, we can't force users to use a certain core. WE would have to release a new VLSuite release on each core release.
Option 1 seems handy but it will break in the future.
So I guess the only option is 2. We may use the composer's Drupal Project Message Plugin to display a message about the required patches. Also, we have to list the patches oin the README and in the module's page, ideally with a little explanation on why the patch is needed and for what functionality.
Comment #7
tunicOne of the biug drawbacks of option 2 is testing coverage. I thought we could not test anything that require a patch. However, I've just discovered that you can run commands before tests, so we may go with option 2 having complete test coverage.
https://www.drupal.org/drupalorg/docs/drupal-ci/customizing-drupalci-tes...
Comment #8
crzdev commentedComment #9
mortona2k commentedThe patch in the module conflicts with drupal 10.3.
Comment #10
crzdev commentedThanks @mortona2k, identified patches that does not apply into 10.3.0-beta1:
Working on that asap!
Comment #11
crzdev commentedComment #12
crzdev commented3034979 will be replaced by 3045509, created MR & applied into dev version to do some tests.
Other 3080606 is for 3417795 (postponed & not mandatory for stock vlsuite installation).
Comment #13
crzdev commentedRe-roll for 10.3.0 of 3080606 (reorder sections core patch) up into that issue
Comment #14
mortona2k commentedThanks I was able to install on 10.3 without composer errors.
Comment #15
crzdev commentedRelease 1.1.7 ready for core 10.3.0 compatibility!
Comment #16
mortona2k commentedThis patch has been merged into Section Library and is no longer needed.
https://www.drupal.org/project/section_library/issues/3217647
Comment #17
mortona2k commentedComment #19
crzdev commentedGreat, thanks @mortona2k, minimal required version constraint should be "^1.2", releasing asap!
Comment #22
crzdev commentedIntegrated changes, another patch down!
Comment #23
crzdev commented2.2.1 Out!