Open zohaibihs opened 8 years ago
Text limit is 255 characters as discussed with @maimoonak. Please tell me if it to be changes. Closed similar tickets and clubbed into one
It need to be change as 255 characters for text fields is too much, like 20 characters should be allowed because it is not a text box to accept 255 characters.
@maimoonak You said 20 was too less. What should the new limit be is 255 is too much?
I would say it should be more than 100. 100-150 is a safe limit.
Should we keep 120 then
On 09-Aug-2016 1:02 PM, "maimoonak" notifications@github.com wrote:
I would say it should be more than 100. 100-150 is a safe limit.
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/OpenSRP/openmrs-module-cohort/issues/15#issuecomment-238475911, or mute the thread https://github.com/notifications/unsubscribe-auth/ALJuG04gONJQe6FtF6VREdSwQRTYQjDZks5qeC0KgaJpZM4JafWZ .
As per discussion with Maimoona, it should be 100 characters.
@maimoonak I'm not able to determine where I should be making the changes. Could you help me out? Which file(s) needs to be modified. I'm pretty sure it's not liquibase.xml. Is it in the hibernate mappings?
Is this constraint implemented on DB level? If you cant find it in liquibase and hbms then I think its just on UI level. I would suggest to keep it as it is on DB level and donot make any change to default string len which is 255 chars! Just implement in Validator in Controller to limit input to 100 characters. You can also limit by adding size or maxlen attribute of html on control itself.
Ok I will make the change in the HTML form
Fixed in commit https://github.com/OpenSRP/openmrs-module-cohort/commit/b2f930448046f10ac1d896bef281939b668e77e6 . Also, hope we can close the issues with tags 'resolved' soon
Yeh. You can mark all resolved issues with tag 'resolved'. QA team would Close the issue after confirmation in next release
Cohort member role - No character limit is available on Enter Role Name field (There should be a character limit of 100 characters on text fields).
@zohaibihs just issues a commit which fixes that 7bae54e61dae10e63c5d611c6c0773d2ff037c74
Yes, I have seeing your code but its not working fine on front end. Cohort member role - No character limit is available on Enter Role Name field.
I JUST issued it. It's fixes If you recompile the module
On 19-Aug-2016 3:57 PM, "zohaibihs" notifications@github.com wrote:
Yes, I have seeing your code but its not working fine on front end. Cohort member role - No character limit is available on Enter Role Name field.
[image: image] https://cloud.githubusercontent.com/assets/20788534/17806958/0af57dcc-6621-11e6-88be-73930be8fa3c.png
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/OpenSRP/openmrs-module-cohort/issues/15#issuecomment-240983923, or mute the thread https://github.com/notifications/unsubscribe-auth/ALJuG70zjqPbG-cOtmnusU19ezjf41PCks5qhYUjgaJpZM4JafWZ .
Add Cohort role - No character limit is available on Enter Role Name field (There should be a character limit of 20 characters on text fields).