Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make some moi_xxx functions private #2548

Closed
wants to merge 5 commits into from
Closed

Make some moi_xxx functions private #2548

wants to merge 5 commits into from

Conversation

odow
Copy link
Member

@odow odow commented Mar 30, 2021

Do we have a policy on how we un-export functions that were mistakenly exported? (i.e., do they need deprecation warnings?)

Here we clearly want people to use mode, add_constraint, and bridge_constraints, not their moi_xxx equivalents.

Before 1.0, we should go through all exported functions and check whether we want to export them.

@codecov
Copy link

codecov bot commented Mar 30, 2021

Codecov Report

Merging #2548 (79d0595) into master (0746f83) will decrease coverage by 0.59%.
The diff coverage is 100.00%.

❗ Current head 79d0595 differs from pull request most recent head 7a6ecb2. Consider uploading reports for the commit 7a6ecb2 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2548      +/-   ##
==========================================
- Coverage   93.53%   92.94%   -0.60%     
==========================================
  Files          43       44       +1     
  Lines        5401     5456      +55     
==========================================
+ Hits         5052     5071      +19     
- Misses        349      385      +36     
Impacted Files Coverage Δ
src/precompile.jl 0.00% <ø> (ø)
src/JuMP.jl 82.30% <100.00%> (-2.32%) ⬇️
src/constraints.jl 94.97% <100.00%> (+0.10%) ⬆️
src/Containers/vectorized_product_iterator.jl 68.75% <0.00%> (-26.49%) ⬇️
src/parse_nlp.jl 91.20% <0.00%> (-5.14%) ⬇️
src/Containers/container.jl 95.83% <0.00%> (-1.67%) ⬇️
src/nlp.jl 92.06% <0.00%> (-1.40%) ⬇️
src/Containers/DenseAxisArray.jl 87.15% <0.00%> (-1.25%) ⬇️
src/Containers/SparseAxisArray.jl 91.76% <0.00%> (-1.18%) ⬇️
... and 11 more

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 41c7b43...7a6ecb2. Read the comment docs.

@odow odow requested a review from blegat April 5, 2021 22:56
@blegat blegat requested a review from mlubin April 6, 2021 14:57
@mlubin
Copy link
Member

mlubin commented Apr 6, 2021

This is a breaking change, we should wait for the next 0.xx release:
https://github.com/zavalab/Plasmo.jl/blob/69f564f56068529502bee658cd9d8d096039143d/src/optimizer_interface.jl#L4

@odow odow mentioned this pull request Apr 20, 2021
@odow
Copy link
Member Author

odow commented Sep 27, 2021

Closing for now because #2610 is changing some things. We can revisit.

@odow odow closed this Sep 27, 2021
@odow odow deleted the od/exports branch September 27, 2021 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants