Giter Site home page Giter Site logo

Comments (3)

benlk avatar benlk commented on September 27, 2024

We'd need to write a migration function, like how Link Roundups and Largo update.

Are there any parts of the migration that require human decisions, or can we automate this?

from doubleclick-for-wp.

benlk avatar benlk commented on September 27, 2024

Per discussion in Asana, reproduced below, we're making this a breaking change:

@aschweigert:

how many people are actually using the plugin? I'm not that worried about it if it just means we have to go in and change a few options for a few sites

@benlk:

https://wordpress.org/plugins/doubleclick-for-wp/ claims 70+ installs>

There are 7 installs in the largoproject umbrella, RNS, Rivard, Cornell Sun, and Kinsey.

@aschweigert:

What would it take to write an update script for this (and for the plugin, generally)? I don't really have any way to cover/justify that cost so if it's going to be expensive, we're going to need to bite the bullet and just make the breaking change and note it in the release notes.

@benlk:

We have existing migration scripts for plugins, like the stuff for Link Roundups: https://github.com/INN/link-roundups/blob/master/inc/updates/index.php

The settings that will need to be migrated are in the widgets and in the plugin. The breakpoint settings remain the same, iirc, but what we do with them in the widget changes. We're moving from "display this ad unit on breakpoints X, Y, Z" to "at breakpoint X, display , at Y, display, at Z, display ". We have X, Y, and Z from the old settings, and we have from the old display size. I guess we can copy into all the breakpoints for all the widgets.

That will take a day, and it won't solve the problem of widgets now displaying inappropriate sizes at different resolutions. I can't think of any easy way to merge two widgets in widget area that were set to display at the different resolutions, so this would still require a human element.

Yeah, this is just going to have to be a breaking change. I'm in favor of making it version 1.x, because it is a breaking change.

We'll want to write docs for the update process, and do some testing to see what stays around after an update. Update-specific docs might take a day, but we're writing docs for this area already.

@aschweigert:

why would update docs take a day? don't we just need to go site by site (for our sites) and update a few settings? or am I missing something larger here?

@benlk:

You're not missing anything; I was thinking that we should provide strong update docs for non-us users so that their transition would be pretty low-stress. (I'm bad at estimating time for documentation, I guess)

@aschweigert :

ok, yeah, I think all we need is just a note in the release notes that there's a breaking change + a short description of what needs to be done to address this (so, maybe 30 minutes)

@benlk:

Is https://github.com/INN/DoubleClick-for-WordPress/blob/master/readme.txt#L36 sufficient?

@aschweigert:

yep

from doubleclick-for-wp.

benlk avatar benlk commented on September 27, 2024

Updating this with a correction:

Production is at 0668f6e
The released version is 31b3090, several commits later

The released version contains #3 , which is what I thought would cause a breaking change in non-INN users. It turns out that the 70+ users who installed from wordpress.org are already after the commit that would cause the change, so we're actually in the clear for them. We'll just need to plan migrations for the INN site.

from doubleclick-for-wp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.