Enforce minor version changes and eLab 5.5 support #176
Merged
Conversation
Merge dev into main
- Add type hint
Closed
alexander-haller
approved these changes
Apr 1, 2026
Contributor
alexander-haller
left a comment
There was a problem hiding this comment.
warn_minor_only as the new default 👍
TY!
Member
Author
|
I updated the description to add |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Better Version Enforcing
Given @NicolasCARPi's word elabftw/elabftw#6581 (comment) that minor version updates wouldn't break APIs ;) we can now confidently enforce the minor versions. This PR adds support for
abort_minor_onlyandwarn_minor_onlyfor theelab_strict_version_matchconfiguration field.warn_minor_onlyis also now the default value for whenelab_strict_version_matchdoesn't exist. The*_minor_onlyvalue is triggered when the installed minor versionX.Y.Z->X.Ydoesn't match elAPI's most supported versionA.B. Withabort_minor_onlyelAPI will show an error and quit, withwarn_minor_onlyelAPI will show a warning and let the API request go through anyway.elab_strict_version_match: abortnow can be seen as the more aggressive counterpart where the whole version stringX.Y.Zmust match.This also means we need not to worry about falling behind adding version strings to elAPI as soon as eLabFTW updates.
Recent Versions Support
This PR adds support for eLabFTW 5.4 - 5.5.5. So far no breaking changes. All plugins and examples are working without changes.