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

Align Google APIs URLs with Discovery docs per #541 #542

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

husseyd
Copy link
Contributor

@husseyd husseyd commented Oct 25, 2023

Align Google APIs URLs with Discovery docs per #541

  • Align Google APIs URLs to Google Cloud Discovery docs. This enables support for Private and Restricted Google APIs configurations.

    • R/bq-request.R
      • Substitute https://bigquery.googleapis.com for https://www.googleapis.com
    • R/gs-object.R
      • Substitute https://storage.googleapis.com for https://www.googleapis.com
    • No updates to OAuth scope URLs
      • (E.G. https://www.googleapis.com/auth...). These do not require change.
  • Update NEWS.md and bump version to 1.4.3

@craigcitro
Copy link
Collaborator

Thanks for sending the PR! I think there are a few more references in the code; IMO probably worth changing all of them? https://github.com/search?q=repo%3Ar-dbi%2Fbigrquery%20www.googleapis.com&type=code

otherwise LGTM, though @hadley or @jennybc should really be the one to approve/merge.

@husseyd
Copy link
Contributor Author

husseyd commented Oct 25, 2023

Hi @hadley, @craigcitro,

MR created for #541, all tests passing. I am unsure how you'd like to handle release but have bumped the version number in NEWS.md - please let me know if I should remove this so you can handle that part yourselves.

@husseyd
Copy link
Contributor Author

husseyd commented Oct 25, 2023

Thanks for sending the PR! I think there are a few more references in the code; IMO probably worth changing all of them? https://github.com/search?q=repo%3Ar-dbi%2Fbigrquery%20www.googleapis.com&type=code

otherwise LGTM, though @hadley or @jennybc should really be the one to approve/merge.

@craigcitro I looked into this - those /auth URLs are not actually called, they are included as scopes for OAuth token generation. All the GCP docs I can find still use scopes in the https://www.googleapis.com/auth... format, so I don't think these should be changed.

Updated PR to reflect this.

@craigcitro
Copy link
Collaborator

ah great catch -- you're totally right, the scopes shouldn't change. LGTM!

NEWS.md Outdated
@@ -1,5 +1,13 @@
# bigrquery (development version)

# bigrquery 1.4.3
Copy link
Member

Choose a reason for hiding this comment

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

Please remove this heading; we add during the release process.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done thanks @hadley

- `R/bq-request.R`
- Substitute `https://bigquery.googleapis.com` for `https://www.googleapis.com`
- `R/gs-object.R`
- Substitute `https://storage.googleapis.com` for `https://www.googleapis.com`
Copy link
Member

Choose a reason for hiding this comment

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

Can you please add the issue number and your name? See details at https://style.tidyverse.org/news.html#acknowledgement.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done thanks @hadley

@hadley hadley merged commit 1b72565 into r-dbi:main Oct 25, 2023
13 checks passed
@hadley
Copy link
Member

hadley commented Oct 25, 2023

Thanks!

@husseyd
Copy link
Contributor Author

husseyd commented Oct 25, 2023

Thanks @hadley @craigcitro!
So I can provide back to my team, what kind of timeline is there for publishing this to CRAN?

@hadley
Copy link
Member

hadley commented Oct 26, 2023

We don't have a release currently scheduled.

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.

3 participants