Skip to content
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

Allow plugin names to be up to 60 characters instead of 40 #19795

Merged
merged 6 commits into from Oct 28, 2022
Merged

Conversation

peterhashair
Copy link
Contributor

Description:

Fixes: #18727
adding plugin name checks with 60 characters limit

Review

adding plugin name checks with 60 characters limit
@peterhashair peterhashair added this to the 5.0.0 milestone Sep 30, 2022
extend change log for plugin name
@peterhashair peterhashair linked an issue Sep 30, 2022 that may be closed by this pull request
@peterhashair peterhashair added the Needs Review PRs that need a code review label Oct 3, 2022
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@peterhashair Did you check the other code for required changes? There is at least

if(strlen($pluginName) > 40) {
throw new \RuntimeException('Your plugin name cannot be longer than 40 characters');
}

which needs to be removed. Not sure if there are other places where similar stuff is checked.

tests/PHPUnit/Integration/Plugin/ManagerTest.php Outdated Show resolved Hide resolved
@sgiehl sgiehl removed the Needs Review PRs that need a code review label Oct 4, 2022
remove strlen check on plugin put onto regex
@peterhashair
Copy link
Contributor Author

peterhashair commented Oct 5, 2022

@sgiehl I couldn't find anywhere else that has a 40 char limit, anywhere I need to be aware?

CHANGELOG.md Outdated Show resolved Hide resolved
tests/PHPUnit/Integration/Plugin/ManagerTest.php Outdated Show resolved Hide resolved
Co-authored-by: Stefan Giehl <stefan@matomo.org>
@peterhashair peterhashair added Needs Review PRs that need a code review and removed Needs Review PRs that need a code review labels Oct 16, 2022
@peterhashair
Copy link
Contributor Author

This PR maybe require other docs to update.

@peterhashair peterhashair added the Needs Review PRs that need a code review label Oct 27, 2022
@sgiehl sgiehl merged commit 57b7d1e into 5.x-dev Oct 28, 2022
@sgiehl sgiehl deleted the m18727 branch October 28, 2022 12:57
@elabuwa elabuwa changed the title Adding plugin name checks with 60 characters limit Allow plugin names to be up to 60 characters instead of 40 Nov 22, 2022
@elabuwa elabuwa added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Nov 22, 2022
bx80 pushed a commit that referenced this pull request Nov 25, 2022
* adding plugin name checks with 60 characters limit

adding plugin name checks with 60 characters limit

* extend change log for plugin name

extend change log for plugin name

* remove strlen check on plugin put onto regex

remove strlen check on plugin put onto regex

* Update CHANGELOG.md

Co-authored-by: Stefan Giehl <stefan@matomo.org>

* update function name

update function name

Co-authored-by: Stefan Giehl <stefan@matomo.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restrict plugin name to 60 characters
3 participants