New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enh: harmonise term enabled/disabled vs active/inactive for modules #6745
Conversation
08a472c
to
88bf8f7
Compare
Have rebased on top of |
@martin-rueegg Thanks! We should also prepare PRs for the following modules that check whether the friendship system is enabled.
Did I understand correctly, that |
I couldn't find any other uses of @yurabakhtinDo you have any ideas where there is a need for migration? |
@luke- I could not find where |
Yes, that's correct, as long as the module extends from
Yes, I guess also this is true as the friendship module is enabled by default and cannot be disabled either. |
This may be a no-brainer. But it is importent to check both
Although, also here no fatal error is expected, as |
Ok great, then the migration effort only affects the modules which checks for enabled friendship: #6745 (comment) |
@luke- what is currently holding back this PR? |
@martin-rueegg Missing PR's for the modules listed here: #6745 (comment) Besides that, the PR looks good for me and is ready to merge! |
88bf8f7
to
cc42ad9
Compare
|
@luke- I've created some PRs to the best of my knowledge. I'm not sure, if older HH versions should be supported, in which case a version check would have to be made before calling the method. The tests of cours fail, as this current PR has not yet been merged. |
@martin-rueegg Thanks for the PRs. We'll merge them and release a module version shortly before the v1.16 release. |
@martin-rueegg FYI, I've reverted the UI wording changes. We need to discuss this internally. |
Thanks for your info. I guess it would make most sense that the two terms are identical. Hence, if you decide to keep "enable/disable" in the UI, maybe the same should be the case for the code. Either way, the adjective "successful" in line https://github.com/humhub/humhub/pull/6745/files#diff-ac4e86a568e376b4163bc52621367fad02dfdf2341771df1ed39132d7ecea53cR24 should still be an adverb (successfully). :-) |
Renaming thought the code (of core) the terms that relate to Module's enabled state:
active
=>enabled
activate
=>enable
deactivate
=>disable
PR Admin
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
If yes, please describe the impact and migration path for existing applications:
documented in MIGRATE-DEV.md
The PR fulfills these requirements
develop
branch, not themaster
branch if no hotfixFix #xxx[,#xxx]
, where "xxx" is the Github issue number)If adding a new feature, the PR's description includes:
Other information:
See