Skip to content

Increase description length - #533

Merged
jotoeri merged 1 commit into
masterfrom
enh/description_length
Jul 30, 2020
Merged

Increase description length#533
jotoeri merged 1 commit into
masterfrom
enh/description_length

Conversation

@jotoeri

@jotoeri jotoeri commented Jul 29, 2020

Copy link
Copy Markdown
Member

Ok, just did it now... 馃構
Fixes #529

@jotoeri jotoeri added enhancement New feature or request 3. to review Waiting for reviews feature: 馃搼 form creation labels Jul 29, 2020
@jotoeri jotoeri added this to the 2.1 milestone Jul 29, 2020
@skjnldsv
skjnldsv requested a review from nickvergessen July 30, 2020 07:23
@skjnldsv skjnldsv modified the milestones: 2.1, 2.0.2 Jul 30, 2020
@nickvergessen

Copy link
Copy Markdown
Member

Just make sure there is no attempt of an index on that column.

@jotoeri

jotoeri commented Jul 30, 2020

Copy link
Copy Markdown
Member Author

There is no index on description 馃憤

@skjnldsv @jancborchardt Just thought about, as we are changing lengths anyways, if we should also increase the length of the answers, too? As in #527 there was already somebody having a answer on long-text-question, longer than 2048 chars? Or even look at all sizes again? 馃

Comment thread lib/Controller/PageController.php Outdated
Comment on lines 87 to 92
private $maxStringLengths = [
'formTitle' => 256,
'formDescription' => 2048,
'formDescription' => 8192,
'questionText' => 2048,
'optionText' => 1024,
'answerText' => 2048,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...these lengths are currently set.

@skjnldsv

Copy link
Copy Markdown
Member

As in #527 there was already somebody having a answer on long-text-question, longer than 2048 chars? Or even look at all sizes again?

Sure 馃憤
4096?

Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
@jotoeri
jotoeri force-pushed the enh/description_length branch from 0440045 to 726a405 Compare July 30, 2020 11:21
@jotoeri

jotoeri commented Jul 30, 2020

Copy link
Copy Markdown
Member Author

Done 馃憤 The other lengths are good for you?
Also changed the old migration now, to not cut the answers and then increase the lengths again for those who did not update yet. Should work in this case to backward-change the migration.

@skjnldsv

skjnldsv commented Jul 30, 2020

Copy link
Copy Markdown
Member

Done The other lengths are good for you?

Seems good to me 馃し
Merge and release?

@jotoeri
jotoeri merged commit fc2f4d7 into master Jul 30, 2020
@jotoeri
jotoeri deleted the enh/description_length branch July 30, 2020 11:26
@jancborchardt

Copy link
Copy Markdown
Member

@jotoeri good stuff! :) And yes, if there are any further issues with sizes, people will report it and we can adjust again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement New feature or request feature: 馃搼 form creation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Increase the size of the form description field (allow longer text)

4 participants