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

Extend length of project orderNumber string #2824

Closed
iusgit opened this issue Oct 7, 2021 · 4 comments · Fixed by #2828
Closed

Extend length of project orderNumber string #2824

iusgit opened this issue Oct 7, 2021 · 4 comments · Fixed by #2828
Milestone

Comments

@iusgit
Copy link
Contributor

iusgit commented Oct 7, 2021

Is your feature request related to a problem? Please describe.
The project orderNumber string is limited to 20 characters. Sometimes costumers have complicated ways to create their numbers and we have hit the limit several times.

Describe the solution you'd like
Can we extend the limit to some generic value e.g. 256?
I think I could try to do that with some guidance.

As far as I understand it would mean to:

Describe alternatives you've considered
We have also purchased the MetaFieldsBundle and could create a custom field. However, I think our proposal could save some trouble in the future.

@kevinpapst
Copy link
Member

Yeah, in 20 character you can fit billions of combinations and 255 character is way too much.
What is the longest number you saw in reality?

@iusgit
Copy link
Contributor Author

iusgit commented Oct 7, 2021

So, order "numbers", which made problems, had strings with a structure like 1234567890/WXYZ/SUBPROJECT/EMPLOYEE.
To allow this, one would need at least 50 characters.

Is it necessary to be strict with that field?

@kevinpapst
Copy link
Member

I am not saying no, but blindly increasing every field to 255 chars is just not the right way to go.
For large queries increased field sizes might put more load on the entire system. There is a reason why you can limit the field size in databases, right?

If you can live with 50 characters, I am fine with increasing the field accordingly.

Besides the linked code pieces, please adjust this test as well:
https://github.com/kevinpapst/kimai2/blob/master/tests/API/ProjectControllerTest.php#L291
Simply add a 50 character long string and compare it afterwards.

@github-actions
Copy link

github-actions bot commented May 3, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging a pull request may close this issue.

2 participants