Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [embed-cdt-dev] Renaming features without breaking compatibility?

Hi,

We went through such rename during a move from linuxtools project to tracecompass. See for example of a feature supporting both ids

From what I remember (this was years ago now), we only supported *features* being updated to the new ids (I don’t know if you can do the same p2.inf trick for plugins, probably). But we did rename the plugins at the same time along with their packages. Therefore, this was a break of API but not a break of user installations. Since plugin ids are used as a key to store preferences, I believe we did support loading preferences from both old and new ids for a while. I think some extensions ids or some of their attributes were also kept as is to maximize compatibility (I think they were saved/loaded in the workspace). I guess there is no rule of the thumb for how much effort you should put in maintaining compatibility and not breaking API, but I feel like keep a user installation and workspace working through upgrade is more important.

Marc-André
PS: I wasn’t subscribed to the mailing list yet so I can reply to any message in a thread. Hopefully this reply works.

On Oct 30, 2020, at 1:37 AM, Liviu Ionescu <ilg@xxxxxxxxxx> wrote:

Hi Marc,

Some time ago you mentioned a solution to rename features without breaking compatibility:

On 14 Oct 2020, at 01:00, Marc-Andre Laperle <malaperle@xxxxxxxxx> wrote:

Hi! I don’t know if you have done this or seen this before but you can allow installable units to be upgraded to a different id, in p2.inf. At least I know for a fact that it works for features. We have done this in the past a few times in Trace Compass project when things got renamed and moved between projects. Let me know if that’s something that would be useful for embed-cdt in a rename effort that would be transparent to users.


Can you provide some details, and possibly a link to a functional example?

Preferably please use the embed-cdt-dev list, where this discussion started:

https://www.eclipse.org/lists/embed-cdt-dev/msg00124.html


Thank you,

Liviu



Back to the top