[resolved] How to migrate FC parameter location

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

[resolved] How to migrate FC parameter location

Post by uwestoehr »

Recently I stumbled about inconsistent parameter locations for the NaviCube. In order to uniform the location, I made this PR:
https://github.com/FreeCAD/FreeCAD/pull/7035

Since I change there a parameter location, I need to migrate the location. How is that done? Do we have an existing routine for this or how was this handled in the past?
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: How to migrate FC parameter location

Post by wmayer »

Since I change there a parameter location, I need to migrate the location. How is that done? Do we have an existing routine for this or how was this handled in the past?
I just wouldn't implement any migration function at all. A user who doesn't use the default values only has to adjust them once.
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: How to migrate FC parameter location

Post by uwestoehr »

wmayer wrote: Tue Jul 05, 2022 2:20 pm I just wouldn't implement any migration function at all. A user who doesn't use the default values only has to adjust them once.
Thanks. I also think so meanwhile.
Also thanks for reviewing my PR.
Post Reply