acsone / click-odoo

Run python scripts in a Odoo environment
GNU Lesser General Public License v3.0
115 stars 44 forks source link

[REF] 2.0.0 #15

Closed blaggacao closed 6 years ago

blaggacao commented 6 years ago

And yet another refactoring intent:

codecov[bot] commented 6 years ago

Codecov Report

Merging #15 into master will increase coverage by 2.75%. The diff coverage is 95.91%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #15      +/-   ##
==========================================
+ Coverage   82.95%   85.71%   +2.75%     
==========================================
  Files           4        5       +1     
  Lines         176      196      +20     
  Branches       26       28       +2     
==========================================
+ Hits          146      168      +22     
+ Misses         21       20       -1     
+ Partials        9        8       -1
Impacted Files Coverage Δ
click_odoo/options.py 100% <100%> (ø)
click_odoo/env.py 85.71% <100%> (+1.58%) :arrow_up:
click_odoo/__init__.py 100% <100%> (ø) :arrow_up:
click_odoo/cli.py 93.39% <95.06%> (-0.81%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5508e9c...1c014e7. Read the comment docs.

sbidoul commented 6 years ago

I still don't understand what problem you are trying to resolve... so I don't see any compelling reason to do such a big, backward incompatible change.

blaggacao commented 6 years ago

I guess this solves #16 and other problems/shortcomings that might arise and have already been solved by click in an elegant way over time.

blaggacao commented 6 years ago

I also feel there is a slight inconsistency in your argument:

I can see however how the question of "when" is much in favour of a time where adoption is only slowly picking up; that is: asap.

As I said: no need to deprecated 1.x.x just yet. And I'm happy to keep 2.x.x at feature parity, so you don't have to bear the maintenance load.

That's just how other projects usually do things.

blaggacao commented 6 years ago

Concrete suggestion to move on:

I don't see any compelling reason that could be raised against such procedure, given that I offer to forward port fixes and features from 1.x and given the arguments (PR bullet points) in favor of this 2.0.0.

blaggacao commented 6 years ago

Closing as replaced by #17 (for maintainability reasons on my end) , but let's keep discussing it here.