-
Notifications
You must be signed in to change notification settings - Fork 15
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
File attribute, character limit when adding via Admin pages #2066
Comments
Hi @luistoptal, After checking the database schema (which allow long sample values), the issue seems to be only an HTML issue (max 50 limit in HTML). This issue would benefit from a new test scenarios being added to |
@rija in CREATE TABLE file_attributes (
id integer NOT NULL,
file_id integer NOT NULL,
attribute_id integer NOT NULL,
value character varying(50),
unit_id character varying(30)
); wouldn't that mean that teh max value length is set to 50 also from the DB schema? |
Hi @luistoptal,
if you do that, you will see that the max value is actually 1000, not 50, nor 150. |
Hi @luistoptal,
|
) max length for attribute value set to 1000 in the view and models Refs: #2066
Hi @luistoptal, I suggest you rebase your PR onto develop to get the main fix, and focus your PR on implementing the third scenario? |
@rija I updated my PR with the suggested changes |
…for long values(Merge pull request #2081) Extend max length for file attribute values to 150 merged with fix-2066: max length for attribute value set to 1000 #2069 (by merging develop branch) so new max length is 1000 create column layout for new attr form added partial that takes care of expanding / collapsing long descriptions protected/views/shared/_longTextToggler.php, it can be reused in other similar cases Refs: #2066
User story
Acceptance tests
Additional infos
Describe the bug
There is a character limit on File Attributes when added via the File Admin page.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When I paste "embryophyta_odb10 C:99.1%[S:77.9%,D:21.2%],F:0.4%,M:0.5%,n:1614" I want the whole value to be pasted in.
Screenshots
![Screenshot 2024-10-22 at 14 28 54](https://private-user-images.githubusercontent.com/1359170/378859486-ebc8d5ce-1055-4554-9ef9-4aee3587a0ef.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NzkyNDMsIm5iZiI6MTczODg3ODk0MywicGF0aCI6Ii8xMzU5MTcwLzM3ODg1OTQ4Ni1lYmM4ZDVjZS0xMDU1LTQ1NTQtOWVmOS00YWVlMzU4N2EwZWYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDZUMjE1NTQzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NWUxNDgxYzM3MTI1OWU5MjZjY2NhMGJkOTVjZDgyOTQ0OGQ3OWNjZjE2YmM4NGU1YzJiNjJkOGYwOTcxMmQzZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.EkixZoSIN2D53uOKLOv5a3w_XB2WZM1NF3UsXFysE4s)
Desktop (please complete the following information):
iOS Venture 13.4
Browser Safari
Version 16.5
Additional context
This is for a dataset that I am making public. I can still do so w/o these values (I can add them later), but it's something that I'd like fixed soon please.
The text was updated successfully, but these errors were encountered: