Page MenuHomePhabricator

Do not limit the new ISA Campaign title length
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
In the past I created many campaigns, there were no such restrictions.

Currently the title is limited to 20 chars:

<input class="form-control form-control-sm" id="campaign_name" maxlength="20" minlength="2" name="campaign_name" required="" type="text" value="">

What should have happened instead?:

Don't limit it.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

The max string length in the database is 200 characters (String(200)). Not sure if that's characters or bytes. I don't know a lot about databases, but I think you kinda have to set a limit on string length (which is annoying).

200 is okay, but surely 20 is too short. Who decided to shorten it to 20?

Anyone working on this? I can send a fix quickly, but does anyone know why a limit was set and to 20? Maybe we are missing something?

If no one replies within a week, feel free to fix this annoying bug.

Change 956462 had a related patch set uploaded (by Mh-3110; author: Mahuton):

[labs/tools/Isa@main] Increase limit of new ISA Campaign title length

https://gerrit.wikimedia.org/r/956462

Hi,
Does anyone know when this fix will be in prod? It already passes the review with success: https://gerrit.wikimedia.org/r/c/labs/tools/Isa/+/956462/

Ping: @Eugene233 @Bennylin

Thanks

Anthere triaged this task as High priority.Jan 18 2024, 7:33 PM

Change 956462 merged by jenkins-bot:

[labs/tools/Isa@main] Increase limit of new ISA Campaign title length

https://gerrit.wikimedia.org/r/956462