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

Implement AddParent() method #34

Merged
merged 1 commit into from
Jun 16, 2021
Merged

Implement AddParent() method #34

merged 1 commit into from
Jun 16, 2021

Conversation

chirino
Copy link
Contributor

@chirino chirino commented Jun 14, 2021

No description provided.

@codecov
Copy link

codecov bot commented Jun 14, 2021

Codecov Report

Merging #34 (c662349) into master (02504b0) will increase coverage by 0.23%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #34      +/-   ##
==========================================
+ Coverage   93.86%   94.10%   +0.23%     
==========================================
  Files          16       16              
  Lines         522      543      +21     
==========================================
+ Hits          490      511      +21     
  Misses         21       21              
  Partials       11       11              
Impacted Files Coverage Δ
container.go 100.00% <100.00%> (ø)
schema.go 96.42% <100.00%> (+1.98%) ⬆️

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 02504b0...c662349. Read the comment docs.

@chirino
Copy link
Contributor Author

chirino commented Jun 14, 2021

this would resolved #33

@defval
Copy link
Owner

defval commented Jun 14, 2021

@chirino Thanks for the pull request. I will check this tomorrow

Copy link
Owner

@defval defval left a comment

Choose a reason for hiding this comment

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

Do you want the cleanup function to be called for each container separately?

schema.go Show resolved Hide resolved
@chirino
Copy link
Contributor Author

chirino commented Jun 15, 2021

Do you want the cleanup function to be called for each container separately?

Yes. I think the typical usage will have child containers having a shorter lifespan than parents. So I’m not sure we can do much to safeguard proper cleanup. It’s up to the user to clean up parent containers once they are not being used by children.

@defval
Copy link
Owner

defval commented Jun 16, 2021

@chirino It looks good. I plan to merge this into the master today and test it a bit on my apps before release

@defval defval merged commit 35a10cd into defval:master Jun 16, 2021
@chirino
Copy link
Contributor Author

chirino commented Jun 23, 2021

@defval Is it ready for a release yet?

@defval
Copy link
Owner

defval commented Jun 24, 2021

@chirino Yes, sorry for delay. I will prepare release today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants