GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add snippets to Storage's javadoc by mziccard · Pull Request #1146 · googleapis/google-cloud-java Conversation
|
|
/cc @lesv |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Either you write tests for this stuff, or I have to next Q. LGTM |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
I understand. I still haven't come up with an effective way of testing this stuff:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yep - we try to test against an actual service. Totally understand the problem. What might make sense is to:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I am working in this direction right now. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
- Add script to append snippets to service interface - Modify StorageSnippets class to make it testable - Add profile for snippet testing - Add integration tests for StorageSnippets
2fce8bc to
68c2e64
Compare
|
@lesv I updated the snippets to make them testable, added a script that parses a class containing snippets and adds them to the corresponding methods. I also added integration tests for |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| // [SNIPPET VARIABLE "my_unique_bucket"] | ||
| // [SNIPPET VARIABLE "my_blob_name"] | ||
| public Blob createBlob(String bucketName, String blobName) { | ||
| // [SNIPPET START] |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
56f663c to
6c414d4
Compare
6c414d4 to
9a291ce
Compare
| /** | ||
| * Creates a new bucket. | ||
| * | ||
| * <p>Example of creating a bucket. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I need to spend a bit more time here, but it appears you are also doing substitution with your script. Are you inserting into the JavaDocs? If so, why do you have hardcoded examples still? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
And, YES - this is moving in the right direction for making me happy. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Also, is this stuff running on Jenkins somewhere? If so, send me some info to my email. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
What do you mean with this stuff? We use Travis but as I said in a previous commit, the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@mziccard I sent you an internal email, if you don't use that often, could you reply with the correct email. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@mziccard I'm still reading your python script, but what I don't see is how it lets you fix a snippet and update the code. (ie. I see it written as a one time thing). If you passed a working directory, and wrote a new file that we generated the JavaDocs from, but never checked in, it would make sense. (or am I just missing something?) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
You are right, the script doesn't do that yet. As you said it's a one-time thing, if you want to update the snippets you need to remove them from the javadoc by hand. I know this is very suboptimal. I didn't mean this PR to be a "silver bullet" so there's ton of room for improvements. If you see this feature as a blocker I'll work on that immediately. Otherwise I encourage you to open an issue. I am fine either way. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I hate to make work for anyone, but it seems like it makes more sense to run this just before release rather than as a pre-commit action.
The first bug fix will require that you manually delete all the code from the source, and that will be a pain . Datastore needs the Async API's soon, that will require redoing all this stuff. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I can change the script to automatically delete the snippets from the javadoc first (if any) and then write the new ones. That way the script can still be used as a pre-commit action (and we have complete javadoc + snippets in the repo) as well as post-release action (when/if we decide to use it as post-release action). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Totally happy with that, I was thinking I was suggesting a simpler process for you. (Not sure how you find the snippets in the code, especially if they have changed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@lesv I updated the script to delete snippets first and the add new ones, PTAL |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
f044e46 to
4ea1146
Compare
|
LGTM - #1190 opened. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@lesv thanks for the precious help on this! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…20.0 (#1146) [](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.19.0` -> `26.20.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>googleapis/java-cloud-bom (com.google.cloud:libraries-bom)</summary> ### [`v26.20.0`](https://togithub.com/googleapis/java-cloud-bom/blob/HEAD/CHANGELOG.md#26200-2023-07-27) ##### Features - add table of modules for a libraries-bom version to README ([#​6083](https://togithub.com/googleapis/java-cloud-bom/issues/6083)) ([c1df19d](https://togithub.com/googleapis/java-cloud-bom/commit/c1df19de42c259b85004f386ca9e25ab9586936d)) ##### Dependencies - update dependency com.google.cloud:first-party-dependencies to v3.13.1 ([#​6102](https://togithub.com/googleapis/java-cloud-bom/issues/6102)) ([9166395](https://togithub.com/googleapis/java-cloud-bom/commit/91663952fd4d6996701428c4297ea974de202a8a)) - update dependency com.google.cloud:gapic-libraries-bom to v1.16.0 ([#​6108](https://togithub.com/googleapis/java-cloud-bom/issues/6108)) ([d503ac0](https://togithub.com/googleapis/java-cloud-bom/commit/d503ac0db80d8bd551a37c0763e42069e14729e2)) - update dependency com.google.cloud:google-cloud-bigquery to v2.31.0 ([#​6121](https://togithub.com/googleapis/java-cloud-bom/issues/6121)) ([3fec4ac](https://togithub.com/googleapis/java-cloud-bom/commit/3fec4ac0c93d722c35d211fe39e080b0679ac895)) - update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v2.41.0 ([#​6111](https://togithub.com/googleapis/java-cloud-bom/issues/6111)) ([e766185](https://togithub.com/googleapis/java-cloud-bom/commit/e766185490eb8a1230382944e21256d421cc4d52)) - update dependency com.google.cloud:google-cloud-bigtable-bom to v2.25.1 ([#​6116](https://togithub.com/googleapis/java-cloud-bom/issues/6116)) ([295c40d](https://togithub.com/googleapis/java-cloud-bom/commit/295c40ddd31fdb5a8fd9895cc95fa15e53b434eb)) - update dependency com.google.cloud:google-cloud-datastore-bom to v2.16.2 ([#​6112](https://togithub.com/googleapis/java-cloud-bom/issues/6112)) ([7e64cc3](https://togithub.com/googleapis/java-cloud-bom/commit/7e64cc33da2911117118b37214522a649189910e)) - update dependency com.google.cloud:google-cloud-firestore-bom to v3.13.6 ([#​6103](https://togithub.com/googleapis/java-cloud-bom/issues/6103)) ([1dd904f](https://togithub.com/googleapis/java-cloud-bom/commit/1dd904fdef347570046e8ecb372d26d9f0995ce9)) - update dependency com.google.cloud:google-cloud-firestore-bom to v3.13.7 ([#​6132](https://togithub.com/googleapis/java-cloud-bom/issues/6132)) ([03466f0](https://togithub.com/googleapis/java-cloud-bom/commit/03466f06143a4de25a824b5053cc34148eb09edc)) - update dependency com.google.cloud:google-cloud-logging-bom to v3.15.7 ([#​6110](https://togithub.com/googleapis/java-cloud-bom/issues/6110)) ([7bdd227](https://togithub.com/googleapis/java-cloud-bom/commit/7bdd22765ebfd22fb0170cfb38c2bb2a2ddc321c)) - update dependency com.google.cloud:google-cloud-logging-logback to v0.130.19-alpha ([#​6118](https://togithub.com/googleapis/java-cloud-bom/issues/6118)) ([86deddd](https://togithub.com/googleapis/java-cloud-bom/commit/86deddd65170f4b4c544baa1ccb31fcfe746093e)) - update dependency com.google.cloud:google-cloud-nio to v0.127.0 ([#​6130](https://togithub.com/googleapis/java-cloud-bom/issues/6130)) ([b9ea753](https://togithub.com/googleapis/java-cloud-bom/commit/b9ea753ab1552a43302bfb53dc1bd4b51f9261f4)) - update dependency com.google.cloud:google-cloud-pubsub-bom to v1.123.19 ([#​6119](https://togithub.com/googleapis/java-cloud-bom/issues/6119)) ([421d98c](https://togithub.com/googleapis/java-cloud-bom/commit/421d98ce9c2dd0c76bc42ed3be8c60f8aca61885)) - update dependency com.google.cloud:google-cloud-pubsub-bom to v1.123.20 ([#​6129](https://togithub.com/googleapis/java-cloud-bom/issues/6129)) ([18c5c70](https://togithub.com/googleapis/java-cloud-bom/commit/18c5c7065e2694ecdb73967972294ffba66afc16)) - update dependency com.google.cloud:google-cloud-pubsub-bom to v1.124.0 ([#​6133](https://togithub.com/googleapis/java-cloud-bom/issues/6133)) ([177ffee](https://togithub.com/googleapis/java-cloud-bom/commit/177ffeebf9b9e2ea4ff020568864618a5b76b558)) - update dependency com.google.cloud:google-cloud-pubsublite-bom to v1.12.12 ([#​6123](https://togithub.com/googleapis/java-cloud-bom/issues/6123)) ([002259c](https://togithub.com/googleapis/java-cloud-bom/commit/002259c4798c0ded47397f33ea0fa5143e8aaded)) - update dependency com.google.cloud:google-cloud-spanner-bom to v6.44.0 ([#​6131](https://togithub.com/googleapis/java-cloud-bom/issues/6131)) ([e43f168](https://togithub.com/googleapis/java-cloud-bom/commit/e43f16842e3bb1e64e2f070bf7132f26abf33b13)) - update dependency com.google.cloud:google-cloud-spanner-jdbc to v2.11.5 ([#​6135](https://togithub.com/googleapis/java-cloud-bom/issues/6135)) ([e601ce8](https://togithub.com/googleapis/java-cloud-bom/commit/e601ce82d1829f56166dd3e5d4288c22503d67dd)) - update dependency com.google.cloud:google-cloud-storage-bom to v2.25.0 ([#​6054](https://togithub.com/googleapis/java-cloud-bom/issues/6054)) ([cf25374](https://togithub.com/googleapis/java-cloud-bom/commit/cf25374148ca9fb48dc6851debfc5186a6cd8472)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-logging-logback). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4yNC4yIiwidXBkYXRlZEluVmVyIjoiMzYuMjQuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
* feat: Add PKCE to 3LO exchange.
🤖 I have created a release *beep* *boop* --- ## [1.16.0](https://togithub.com/googleapis/google-auth-library-java/compare/v1.15.0...v1.16.0) (2023-02-15) ### Features * Add PKCE to 3LO exchange. ([#1146](https://togithub.com/googleapis/google-auth-library-java/issues/1146)) ([5bf606b](https://togithub.com/googleapis/google-auth-library-java/commit/5bf606bb8f6d863b44e87587eebf51eaeea4a0ae)) ### Bug Fixes * Create and reuse self signed jwt creds for better performance ([#1154](https://togithub.com/googleapis/google-auth-library-java/issues/1154)) ([eaaa8e8](https://togithub.com/googleapis/google-auth-library-java/commit/eaaa8e89cf69d1e0d581443121f315854d52c75f)) * Java doc for DefaultPKCEProvider.java ([#1148](https://togithub.com/googleapis/google-auth-library-java/issues/1148)) ([154c127](https://togithub.com/googleapis/google-auth-library-java/commit/154c1279b3ec96cc34a3225e5e78800ccdda927c)) * Removed url pattern validation for google urls in external account credential configurations ([#1150](https://togithub.com/googleapis/google-auth-library-java/issues/1150)) ([35495b1](https://togithub.com/googleapis/google-auth-library-java/commit/35495b1207ffe11712ee996d3e305449752fb87c)) ### Documentation * Clarified Maven artifact for HTTP-based clients ([#1136](https://togithub.com/googleapis/google-auth-library-java/issues/1136)) ([b49fc13](https://togithub.com/googleapis/google-auth-library-java/commit/b49fc13b10d0e326c7296e2aad7a50ea03e774f5)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
* feat: Add PKCE to 3LO exchange.
🤖 I have created a release *beep* *boop* --- ## [1.16.0](https://togithub.com/googleapis/google-auth-library-java/compare/v1.15.0...v1.16.0) (2023-02-15) ### Features * Add PKCE to 3LO exchange. ([#1146](https://togithub.com/googleapis/google-auth-library-java/issues/1146)) ([d08c70f](https://togithub.com/googleapis/google-auth-library-java/commit/d08c70f0a717890880479c947e0b38198b829d09)) ### Bug Fixes * Create and reuse self signed jwt creds for better performance ([#1154](https://togithub.com/googleapis/google-auth-library-java/issues/1154)) ([3240c29](https://togithub.com/googleapis/google-auth-library-java/commit/3240c29f4d8092deb211e64116cda5d6f9b526d3)) * Java doc for DefaultPKCEProvider.java ([#1148](https://togithub.com/googleapis/google-auth-library-java/issues/1148)) ([5347450](https://togithub.com/googleapis/google-auth-library-java/commit/534745094f9684cbe31696ac4a91de53eb9de40a)) * Removed url pattern validation for google urls in external account credential configurations ([#1150](https://togithub.com/googleapis/google-auth-library-java/issues/1150)) ([c4d7124](https://togithub.com/googleapis/google-auth-library-java/commit/c4d7124407bf128e49cb6e7b99cf129020eaf101)) ### Documentation * Clarified Maven artifact for HTTP-based clients ([#1136](https://togithub.com/googleapis/google-auth-library-java/issues/1136)) ([36fb92e](https://togithub.com/googleapis/google-auth-library-java/commit/36fb92ebc14e7009624533c56ceae0a775df2b80)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
…v6.37.0 (googleapis#1146) [](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-spanner-bom](https://togithub.com/googleapis/java-spanner) | `6.36.1` -> `6.37.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>googleapis/java-spanner</summary> ### [`v6.37.0`](https://togithub.com/googleapis/java-spanner/blob/HEAD/CHANGELOG.md#​6370-httpsgithubcomgoogleapisjava-spannercomparev6361v6370-2023-03-03) [Compare Source](https://togithub.com/googleapis/java-spanner/compare/v6.36.1...v6.37.0) ##### Features - Adding new fields for Serverless analytics ([#&googleapis#8203;2315](https://togithub.com/googleapis/java-spanner/issues/2315)) ([ce9cd74](https://togithub.com/googleapis/java-spanner/commit/ce9cd7469e2fed15711a8dffe944934cdaa45ce8)) ##### Bug Fixes - Update test certificate name. ([#&googleapis#8203;2300](https://togithub.com/googleapis/java-spanner/issues/2300)) ([18e76d6](https://togithub.com/googleapis/java-spanner/commit/18e76d6636c530c9cfc0ac872d72e321e75c990e)) ##### Dependencies - Update dependency com.google.api.grpc:proto-google-cloud-spanner-executor-v1 to v1.3.0 ([#&googleapis#8203;2306](https://togithub.com/googleapis/java-spanner/issues/2306)) ([8372250](https://togithub.com/googleapis/java-spanner/commit/8372250e0aaae68b0d610d59c1ee88c4dc0d9e8b)) - Update dependency com.google.cloud:google-cloud-monitoring to v3.13.0 ([#&googleapis#8203;2311](https://togithub.com/googleapis/java-spanner/issues/2311)) ([6ba613b](https://togithub.com/googleapis/java-spanner/commit/6ba613b44598e48699aca320683e65572a730fc7)) - Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.4.0 ([#&googleapis#8203;2312](https://togithub.com/googleapis/java-spanner/issues/2312)) ([266c49c](https://togithub.com/googleapis/java-spanner/commit/266c49cc58beaa935a328599a3e75d3b1fb4988d)) - Update dependency com.google.cloud:google-cloud-trace to v2.12.0 ([#&googleapis#8203;2313](https://togithub.com/googleapis/java-spanner/issues/2313)) ([e5f76c6](https://togithub.com/googleapis/java-spanner/commit/e5f76c6598887b616d371b4d0b3551e236e080f8)) - Update dependency org.json:json to v20230227 ([#&googleapis#8203;2310](https://togithub.com/googleapis/java-spanner/issues/2310)) ([badcc14](https://togithub.com/googleapis/java-spanner/commit/badcc14182244929042412f97e5a7e05799eea22)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-spanner-jdbc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNDYuMiIsInVwZGF0ZWRJblZlciI6IjM0LjE0Ni4yIn0=-->
🤖 I have created a release *beep* *boop* --- ## [2.9.8](https://togithub.com/googleapis/java-spanner-jdbc/compare/v2.9.7...v2.9.8) (2023-03-04) ### Dependencies * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.4.0 ([googleapis#1145](https://togithub.com/googleapis/java-spanner-jdbc/issues/1145)) ([e891fa5](https://togithub.com/googleapis/java-spanner-jdbc/commit/e891fa5bb002cc1cc86fdb40fe32857cf6169172)) * Update dependency com.google.cloud:google-cloud-spanner-bom to v6.37.0 ([googleapis#1146](https://togithub.com/googleapis/java-spanner-jdbc/issues/1146)) ([e877517](https://togithub.com/googleapis/java-spanner-jdbc/commit/e87751706a1fe2518cd2fe0da871203639e6d1d1)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
[](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/github-script](https://togithub.com/actions/github-script) | action | major | `v3` -> `v5` | --- ### Release Notes <details> <summary>actions/github-script</summary> ### [`v5`](https://togithub.com/actions/github-script/compare/v4...v5) [Compare Source](https://togithub.com/actions/github-script/compare/v4...v5) ### [`v4`](https://togithub.com/actions/github-script/compare/v3...v4) [Compare Source](https://togithub.com/actions/github-script/compare/v3...v4) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-bigtable).
🤖 I have created a release *beep* *boop* --- ### [2.5.2](googleapis/java-bigtable@v2.5.1...v2.5.2) (2022-01-31) ### Bug Fixes * UpdateAppProfileRequest equals and hashcode should build proto ([googleapis#1142](googleapis/java-bigtable#1142)) ([616b518](googleapis/java-bigtable@616b518)) ### Dependencies * **java:** update actions/github-script action to v5 ([googleapis#1339](googleapis/java-bigtable#1339)) ([googleapis#1147](googleapis/java-bigtable#1147)) ([3861d9a](googleapis/java-bigtable@3861d9a)) * update actions/github-script action to v5 ([googleapis#1146](googleapis/java-bigtable#1146)) ([861d612](googleapis/java-bigtable@861d612)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([googleapis#1150](googleapis/java-bigtable#1150)) ([c574d63](googleapis/java-bigtable@c574d63)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.