Delete legacy crowdin.settings

Created on 8 December 2022, over 1 year ago
Updated 30 March 2023, over 1 year ago

Problem/Motivation

As a follow-up to #3291431: Incomplete config schema and wrong file name for settings β†’ , I think the old crowdin.setting should be deleted in an update. IIUC the old behavior was that the same configuration was saved both to crowdin.settings and tmgmt.translator.crowdin, which would imply it's safe just to delete crowdin.settings. However it's not impossible a developer has directly updated crowdin.settings... which would've worked up until 1.4. With hindsight I guess the ideal solution would've been to copy the values from crowdin.settings to tmgmt.translator.crowdin and do the delete as part of the 1.4 release. I don't think it's right to copy the values over now because someone might have upgraded to 1.4 and made a change to their config, only affecting tmgmt.translator.crowdin.

Steps to reproduce

  1. Install and configure 1.3.
  2. Export config.
  3. Upgrade to 1.4.
  4. Export config.

crowdin.settings still exists.

Proposed resolution

Create a post update to check if crowdin.settings exists. If so:

  1. if it contains different values to tmgmt.translator.crowdin then err on the side of caution by not deleting the legacy config (to avoid possible data loss) and just give a message directing the developer to verify the current config and delete the legacy config manually;
  2. if the legacy config matches the current config, delete the legacy config;
  3. add a message to the release notes explaining what happened and to check the output of the update.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom AndyF

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024