Skip to content

feat: named database support #398

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

Merged
merged 2 commits into from
Feb 3, 2023
Merged

feat: named database support #398

merged 2 commits into from
Feb 3, 2023

Conversation

rwhogg
Copy link
Contributor

@rwhogg rwhogg commented Jan 10, 2023

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

@product-auto-label product-auto-label bot added size: l Pull request size is large. api: datastore Issues related to the googleapis/python-datastore API. labels Jan 10, 2023
@rwhogg rwhogg force-pushed the mdb branch 5 times, most recently from 320ead0 to 53095e5 Compare January 10, 2023 20:36
@rwhogg rwhogg force-pushed the mdb branch 3 times, most recently from 8e87c00 to b88fdca Compare January 11, 2023 21:28
@rwhogg rwhogg force-pushed the mdb branch 3 times, most recently from 8c60490 to 29555fe Compare January 23, 2023 16:47
@rwhogg rwhogg changed the title WIP feat: named database support feat: named database support Jan 23, 2023
@rwhogg rwhogg force-pushed the mdb branch 5 times, most recently from c864b54 to b8a5250 Compare January 26, 2023 16:01
@rwhogg rwhogg marked this pull request as ready for review January 26, 2023 16:02
@rwhogg rwhogg requested review from a team as code owners January 26, 2023 16:02
@rwhogg rwhogg requested a review from Mariatta January 26, 2023 16:02
Copy link

@pl04351820 pl04351820 left a comment

Choose a reason for hiding this comment

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

LG. Minor comment for style.

@rwhogg rwhogg force-pushed the mdb branch 2 times, most recently from 6321dae to b5a44f8 Compare January 27, 2023 20:05
@rwhogg rwhogg force-pushed the mdb branch 2 times, most recently from 04690bb to 9eed6af Compare January 30, 2023 14:29
@rwhogg rwhogg changed the base branch from main to multi-db February 2, 2023 19:20
@Mariatta Mariatta merged commit 88ce3f0 into googleapis:multi-db Feb 3, 2023
@rwhogg rwhogg deleted the mdb branch February 3, 2023 21:51
Mariatta pushed a commit that referenced this pull request May 9, 2023
* feat: Add named database support

* test: Use named db in system tests
@Mariatta Mariatta mentioned this pull request May 9, 2023
4 tasks
Mariatta pushed a commit that referenced this pull request May 9, 2023
* feat: Add named database support

* test: Use named db in system tests
m-strzelczyk pushed a commit that referenced this pull request Jun 21, 2023
* feat: named database support (#398)

* feat: Add named database support

* test: Use named db in system tests

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Handle the case when client doesn't have database property

* fix: add custom routing headers

* Fixing tests for easier merge

* fixing code coverage

* addressing pr comments

* feat: Multi db test parametrization (#436)

* Feat: Parametrize the tests for multidb support

Remove "database" argument from Query and AggregationQuery constructors.
Use the "database" from the client instead.
Once set in the client, the "database" will be used throughout and cannot be re-set.

Parametrize the tests where-ever clients are used.

Use the `system-tests-named-db` in the system test.

* Add test case for when parent database name != child database name

* Update owlbot, removing the named db parameter

* Reverted test fixes

* fixing tests

* fix code coverage

* pr suggestion

* address pr comments

---------

Co-authored-by: Vishwaraj Anand <vishwaraj.anand00@gmail.com>

---------

Co-authored-by: Bob "Wombat" Hogg <wombat@rwhogg.site>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Vishwaraj Anand <vishwaraj.anand00@gmail.com>
Co-authored-by: meredithslota <meredithslota@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the googleapis/python-datastore API. size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants