Closed bloodearnest closed 17 hours ago
The study purpose was previously updated to limit it to a max of 300 words (issue). Unfortunately, we didn't record why we were requested to change it. I'm adding a comment here to prompt us to investigate a bit further before we make the change.
Speaking to Juliet, some options to consider:
For clarity/posterity, why do we need to record URLs in the description? Is it to link to another project on Job Server, or something else?
Forgot to add that, it's quite a random selection of links, sometimes to job-server, but not frequently. Often it will be to another paper, study, or article, but these are random links, not specific sites.
Could I check my understanding? Is the model field in question StudyInformationPage.study_purpose
or StudyPurposePage.description
? (I think the latter.) Neither model field currently has a limit, although the form field that corresponds to the latter has a 1500-character limit. (I think we want to increase it to a 2500-character limit.)
Both model fields have had 1500-character limits, but these have been removed. I think this accounts for the distributions of the lengths of these fields.
Model field | min | median | max |
---|---|---|---|
StudyInformationPage.study_purpose |
0 | 1142.5 | 15736 |
StudyPurposePage.description |
0 | 874.0 | 3470 |
Notice that the length of the longest description is longer than the proposed 2500-character limit. Nevertheless, half of descriptions are less than 874 characters. So, our database will remain out of sync with our UI (no problem!) but half of descriptions are well within the existing character limit. Indeed, looking at the deciles, 90% of descriptions are less than 1500 characters.
I've asked @JulietUnderdown1 to confirm the correct model/form field on Slack.^1
Via Juliet:
More context: https://bennettoxford.slack.com/archives/C31D62X5X/p1718371802560939