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 numbers in custom objects system names #18802

Merged

Conversation

cedric-anne
Copy link
Member

@cedric-anne cedric-anne commented Jan 23, 2025

Checklist before requesting a review

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my code.
  • I have added tests that prove my fix is effective or that my feature works.

Description

People may want to use numbers in custom assets system names. Prior to GLPI 9.4, it was possible to use classnames with numbers in the search engine, for instance via the genericobject plugin. This possibility disappeared when the search engine was refactored, and we did not reverted this limitation because the issue was detected only after the GLPI 9.4.0 release (see #5495).

I think we could reintroduce the possibility to use numbers in itemtypes. The search engine has many test and some of them will probably fail if an unexpected side effect is introduced by this change.

@cedric-anne cedric-anne added this to the 11.0.0 milestone Jan 23, 2025
@cedric-anne cedric-anne self-assigned this Jan 23, 2025
@cedric-anne cedric-anne force-pushed the 11.0/allow-numbers-in-custom-assets branch from ea302ac to 59a8c8a Compare January 27, 2025 08:34
@cedric-anne
Copy link
Member Author

@orthagh @trasher Would you agree to reintroduce the ability to use numbers in itemtype classnames (e.g. Glpi\CustomDropdown\Alpha3CountryCode) ?

@orthagh
Copy link
Contributor

orthagh commented Jan 29, 2025

Yes, it could be useful

@trasher
Copy link
Contributor

trasher commented Jan 30, 2025

Yes, no problem

@cedric-anne cedric-anne force-pushed the 11.0/allow-numbers-in-custom-assets branch from 59a8c8a to 47d641b Compare January 30, 2025 09:44
@cedric-anne cedric-anne force-pushed the 11.0/allow-numbers-in-custom-assets branch from 47d641b to 24f6935 Compare January 30, 2025 10:16
@cedric-anne cedric-anne marked this pull request as ready for review January 30, 2025 10:25
@cedric-anne cedric-anne merged commit ce8096d into glpi-project:main Jan 30, 2025
9 checks passed
@cedric-anne cedric-anne deleted the 11.0/allow-numbers-in-custom-assets branch January 30, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants