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

enhanced copy methods for astrapy objects #221

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

hemidactylus
Copy link
Collaborator

This PR adds the possibility to supply override to any parameter during calls to the copy() method (for AstraDB, AstraDBCollection, +the two async counterparts, and AstraDBOps).

Building on this, care is taken that the constructor for AstraDBCollection (+async) does not silently discard some of the parameters when the astra_db is passed (namely namespace, token and endpoint), rather treats them as overrides on the passed astra_db.

Full testing is also added.

@hemidactylus hemidactylus added the enhancement New feature or request label Feb 28, 2024
@erichare
Copy link
Collaborator

Fantastic @hemidactylus . i've been out as you know and seeing this made me very happy :D and as always a very thorough test. LGTM and thank you for taking care of this!

@hemidactylus hemidactylus merged commit 668812b into master Feb 28, 2024
2 checks passed
@hemidactylus hemidactylus deleted the SL-enhanced-copy-methods branch February 28, 2024 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants