Page MenuHomePhabricator

Mailman3 import script is unnecessarily truncating list descriptions
Closed, ResolvedPublic

Description

  • The import script cuts the description while it doesn't need to.

https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/utilities/importer.py#L198

Even though we made the column bigger, the model is still SAUnicode, so it thinks it needs to truncate. I can cherry-pick the model change and upload a new mailman package so that the import script stops truncating.

Event Timeline

One thing I was thinking was that we can simply set the description from the old file (similar to how we handle templates), post-creation if that's easier than cherry-picking upstream

Change 685212 had a related patch set uploaded (by Legoktm; author: Legoktm):

[operations/puppet@production] mailman3: Copy "info" field over manually

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

One thing I was thinking was that we can simply set the description from the old file (similar to how we handle templates), post-creation if that's easier than cherry-picking upstream

Yep, much easier :D

Change 685212 merged by Legoktm:

[operations/puppet@production] mailman3: Copy "info" field over manually

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