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

Hide Private headers and LocalCache.hh #109

Merged
merged 10 commits into from
Sep 1, 2020
Merged

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Aug 24, 2020

This PR is related with these issues: #44 and #29

Private headers and LocalCache.hh moved to the src folder.

Signed-off-by: ahcorde [email protected]

@ahcorde ahcorde added enhancement New feature or request 🔮 dome Ignition Dome labels Aug 24, 2020
@ahcorde ahcorde requested a review from scpeters August 24, 2020 09:33
@ahcorde ahcorde requested a review from nkoenig as a code owner August 24, 2020 09:33
@ahcorde ahcorde self-assigned this Aug 24, 2020
@scpeters
Copy link
Member

I think we can remove the following exclusion in the include folder's CMakeLists.txt:

@codecov
Copy link

codecov bot commented Aug 25, 2020

Codecov Report

Merging #109 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #109   +/-   ##
=======================================
  Coverage   76.23%   76.23%           
=======================================
  Files          19       19           
  Lines        2554     2554           
=======================================
  Hits         1947     1947           
  Misses        607      607           
Impacted Files Coverage Δ
src/FuelClient.cc 65.85% <ø> (ø)
src/LocalCache.cc 80.12% <ø> (ø)
src/Model.cc 87.50% <ø> (ø)
src/ModelIter.cc 100.00% <ø> (ø)
src/WorldIter.cc 91.01% <ø> (ø)

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 4e6f2f1...3aa0644. Read the comment docs.

Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should tick-tock the headers that were being installed, because there may be users counting on them. That would be ModelIterPrivate, ModelPrivate and LocalCache.

The process would be:

  • Dome: add IGN_DEPRECATED to all constructors and static functions of the classes to be removed
  • Ign-E: Move the headers to src

@chapulina
Copy link
Contributor

Just checking @scpeters and @nkoenig - your approvals mean you don't think a tick-tock cycle is needed? I could agree with that for the Private classes, but I really think we should tick-tock the LocalCache.

@scpeters
Copy link
Member

Just checking @scpeters and @nkoenig - your approvals mean you don't think a tick-tock cycle is needed? I could agree with that for the Private classes, but I really think we should tick-tock the LocalCache.

it was a lazy review on my part. I think tick-tocking is probably right for LocalCache, but since it's targeted at the next major version, I think the Private header files could just be removed

@ahcorde
Copy link
Contributor Author

ahcorde commented Aug 26, 2020

I'm fine doing this:

  • Dome: add IGN_DEPRECATED to all constructors and static functions of the classes to be removed
  • Ign-E: Move the headers to src

But I have a question @chapulina. Right now the collection-dome.yaml is pointing to master, which means there is no difference right now between Dome and ign-E.

  • Should we wait until a tag for ign-fuel-tools in Dome (ign-fuel-tools5) is created ?
  • Which other way to proceed ?

@chapulina
Copy link
Contributor

no difference right now between Dome and ign-E.

Yup, you're right. What we usually do is add the deprecations now, and once we branch ign-fuel-tools5 off of master, we bump master's version and also remove the deprecated functions.

@ahcorde
Copy link
Contributor Author

ahcorde commented Aug 27, 2020

Deprecated LocalCache constructor. The other headers are moved to src

@ahcorde ahcorde requested a review from chapulina August 27, 2020 07:26
Signed-off-by: ahcorde <[email protected]>
Signed-off-by: ahcorde <[email protected]>
@chapulina
Copy link
Contributor

Can you fix the conflicts, @ahcorde ? Then if CI is clear this LGTM.

@ahcorde
Copy link
Contributor Author

ahcorde commented Aug 31, 2020

Done @chapulina ;)

Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should suppress the deprecation warnings caused by LocalCache. Here's an example of how we usually do it.

Also, please add a 4.X to 5.X section to Migration.md with a note that the Private classes are no longer installed and the LocalCache is deprecated.

Signed-off-by: ahcorde <[email protected]>
Signed-off-by: ahcorde <[email protected]>
@chapulina
Copy link
Contributor

@osrf-jenkins run tests por favor

@ahcorde ahcorde requested a review from chapulina September 1, 2020 07:50
@chapulina chapulina merged commit d892487 into master Sep 1, 2020
@chapulina chapulina deleted the ahcorde/hidde/headers branch September 1, 2020 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔮 dome Ignition Dome enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Private headers shouldn't be installed [Fuel backend] Some headers should or shouldn't be installed
4 participants