firefly icon indicating copy to clipboard operation
firefly copied to clipboard

Create config migration script

Open awrichar opened this issue 2 years ago • 1 comments

The goal here is to have a script that can detect configuration which was deprecated in a particular version of FireFly and then convert it to the newest format. By progressively iterating through versions, a config file may be brought up to date with the latest expected format.

The secondary goal is for this script to be as easy to maintain as possible. ~~I've prototyped a partial solution in both Python and Go. Both have their advantages, so I'm looking for input on the final choice.~~ In the end, the Python solution was not significantly simpler than the Go version, and would introduce a new language, packaging system, etc. I've decided to stick with Go.

awrichar avatar Aug 05 '22 15:08 awrichar

Codecov Report

Merging #934 (61fe7e6) into main (e22d84a) will decrease coverage by 0.01%. The diff coverage is 100.00%.

:exclamation: Current head 61fe7e6 differs from pull request most recent head e1042e6. Consider uploading reports for the commit e1042e6 to get more accurate results

@@            Coverage Diff             @@
##             main     #934      +/-   ##
==========================================
- Coverage   99.98%   99.97%   -0.02%     
==========================================
  Files         299      301       +2     
  Lines       19478    19687     +209     
==========================================
+ Hits        19475    19682     +207     
- Misses          3        4       +1     
- Partials        0        1       +1     
Impacted Files Coverage Δ
ffconfig/migrate/config.go 100.00% <100.00%> (ø)
ffconfig/migrate/migrations.go 100.00% <100.00%> (ø)
internal/tokens/fftokens/fftokens.go 99.53% <0.00%> (-0.47%) :arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov-commenter avatar Aug 09 '22 03:08 codecov-commenter