-
Notifications
You must be signed in to change notification settings - Fork 2k
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
migrate code from googleapis/nodejs-asset #2856
Conversation
ahrarmonsur
commented
Nov 16, 2022
- initialize repo
- add a samples/package.json
- chore: do a little lint cleanup (Add Logging API example. #53)
- docs(samples): add quickstart code for ExportAssets (Added instructions for running the tests. Fixes #49. #50)
- refactor(samples): convert sample tests from ava to mocha (Added Pub/Sub samples. #56)
- fix: fix the lint rules (Move back to container-based Travis builds and removed some redundant tests. #58)
- sample: Add quickstart sample code for BatchGetAsstesHistory. (Add logging example and link to instructions for Compute Engine as well #59)
- Release v0.1.1 (Google Cloud Functions - Node.js Version #67)
- fix: fix sample tests (Cannot deploy my app to App Engine after Installing Parse Dashboard #79)
- Release v0.2.0 (Add region tags to GKE Dockerfile. #95)
- fix(deps): update dependency yargs to v13 (Add basic Endpoints sample. #105)
- chore(deps): update dependency mocha to v6
- Release v0.2.1 (How to add the environment variables in Windows? #117)
- Release @google-cloud/asset v0.3.0 (getApplicationDefault is undefined. #121)
- refactor: use execSync for tests (More Cloud Functions #127)
- feat: introduces 'expression text', deprecates version field (Switch back to mocha from ava. #143)
- docs: use repo-meta to generate README (Kraken app tests are flaky and break a lot #130)
- chore: release 1.0.0 (Switch Speech sample to v1beta1 #146)
- chore: release 1.1.0 (I have issue to add the json key file #158)
- chore: release 1.1.1 (Add list_datasets_and_projects sample #161)
- chore: release 1.1.2 (Pubsub tests #164)
- fix(deps): update dependency @google-cloud/storage to v3 (Start storagetransfer samples. #168)
- chore: release 1.1.3 (Switch to individual API packages. #169)
- chore: release 1.1.4 (Translate API samples #176)
- fix(deps): update dependency yargs to v14
- feat: introduce v1p2beta1 client (Auto-generate command instructions for README.md #181)
- chore: release 1.2.0 (All Storage samples are now up to standard. #182)
- docs: add real time feed api sample code (Add Translate API samples. Fixes #176. #184)
- chore: release 1.2.1 (Export data from BigQuery samples #186)
- chore: release 1.3.0 (Update all dependencies 🌴 #191)
- chore: release 1.4.1 (Stackdriver product rename #209)
- fix(deps): update dependency @google-cloud/storage to v4 (Simplify BigQuery samples according to our standard. #207)
- chore: release 1.4.2 (Add quickstart tests #215)
- fix(deps): update dependency yargs to v15 (Fix pagination #222)
- chore: update license headers
- chore: release 1.5.0 (Simplify Storage samples and their tests. #225)
- feat(samples): update real time feed api sample code to use v1 API surface
- chore(deps): update dependency mocha to v7 (Upgrade apps for env:flex. #241)
- chore: release 1.6.0
- chore: release 1.6.1 (Update Cloud Functions error sample to use the Error Reporting module #252)
- feat!: converts library to TypeScript adding v1p1beta1 surface (@google-cloud/datastore 0.5.0 does not return entity keys with query results #250)
- chore: release 2.0.0 (Update Language samples. #254)
- chore: release 2.0.1 (Create My First Project-bb06314a336f.json #262)
- chore: release 2.1.0 (Secure websockets on app engine (?) #265)
- fix(deps): update dependency uuid to v7
- chore: release 2.2.0 (Add sample / docs for HSTS for requiring https #271)
- fix: in rare cases test can take longer than 180,000 timeout (Update Speech samples. #307)
- chore: linting (Removed deprecated flag from app.yaml #309)
- chore: release 3.0.0 (Not able to import in React.js | Not sure if browser support is available as no documentation about it #280)
- fix(deps): update dependency uuid to v8 (Fix issue with read-only transaction #325)
- fix(deps): update dependency @google-cloud/storage to v5 (Endpoints gRPC samples #330)
- chore: release 3.1.0 (Add key parameter to translate quickstart #324)
- chore(deps): update dependency mocha to v8 (update the sentiment threshold; fix a typo in some commented-out code. #341)
- docs(samples): add sample code for SearchAllResources and SearchAllIamPolicies (sampleRate is not a field: undefined #343)
- chore: release 3.2.0 (Replace node-mailer module with something else #338)
- chore: release 3.3.0 (Update openApi config to use "security" instead of "x-security". #347)
- chore: release 3.4.0 (speech streaming example doesn't work #350)
- feat(samples): add sample code for ListAssets v1p5beta1 (package.json needs update to pull the right version of google-gax@0.13.2 #355)
- chore: release 3.5.0 (Update NL client library version #356)
- chore: release 3.5.1 (updated readme for the renaming of files #372)
- chore: release 3.6.0 (Add new video samples #382)
- chore: release 3.7.0 (Update the sample template. #387)
- fix(deps): update dependency yargs to v16 (update sample to use @google-cloud/error-reporting #391)
- chore: release 3.7.1 (Add postgres samples #396)
- chore: release 3.8.0 (insertRowsAsStream not showing full error log #399)
- chore: release 3.9.0 (Move DLP from REST to gRPC + client libraries #413)
- chore: release 3.9.1 (speechClient.recognize() giving empty array as response? #425)
- chore: release 3.10.0 (Adds example with word time offsets. #437)
- chore: release 3.11.0 (Unit Test instructions in README fail (missing semistandard dependency call-out) #446)
- feat(samples): add samples for analyzeIamPolicy and analyzeIamPolicyLongrunning (Add openapi-appengine.yaml file for App Engine deployments. #433)
- docs: fix yaml parsing error in comments ([DO NOT MERGE] Update/add tests + fix dependencies #452)
- chore: release 3.12.0 (Update index.js #450)
- chore: release 3.12.1 (Fix for the bug: pod error ImagePullBackOff #482)
- chore: release 3.12.2 (Update Monitoring samples. #493)
- chore: release 3.13.0 (Nitfix: move mock-only code out of region tag #494)
- chore: release 3.14.0 (Temporarily revert "Remove video samples which have moved." #506)
- samples: Update asset lib to v1 for ListAssets sample code (Remove video samples which have moved. #505)
- chore: release 3.14.1 (How can I create audio file that node.js google speech server can recognize?? #508)
- chore: release 3.15.0 (Cloud Tasks samples. #516)
- chore: release 3.15.1 (bigquery-stream-data-nodejs docs - use correct json property to check for errors #519)
- chore: release 3.15.2 (MQTT client JWT refresh and set TLS to 1.2 #521)
- chore: release 3.15.3 (error ECONNREFUSED #523)
- chore: release 3.15.4 (Move bigquery and vision samples. #535)
- chore: release 3.15.5 (functions/datastore sample #536)
- chore: release 3.16.0 (Iot mqtt tests #539)
- chore: release 3.16.1 (Update comment and add region tags #540)
- chore: release 3.17.0 (Update mqtt dependency #543)
- chore: release 3.18.0 (Update README.md #549)
- chore: release 3.19.0 (Move datastore samples. #552)
- samples: add relationship support samples (Re-doing region tag changes to correct test error #560)
- docs(samples): add auto-generated samples for Node with api short name in region tag (app.yaml s/python/nodejs in comment #562)
- test: extend timeout for flaky tests (Bug fix for helloGCSGeneric() #567)
- chore: release 3.20.0 (Getting started with "Hello World" Cloud Functions Sample - Docs Updates #570)
- chore: release 3.21.0 (Change to endpoints managed rollout #576)
- chore: release 3.22.0 (Added samples for App Engine Standard Environment #579)
- samples: Move sample code end tag to the correct line for GetFeed (chore: update (most) dependencies + (some) samples #583)
- chore(main): release 3.23.0 (Google Cloud IOT getClient example timeout with no other errors #603)
- chore(main): release 3.23.1 (Fix typo in gcloud command #605)
- build!: update library to use Node 12 (puppeteer sample (Headless Chrome) #625)
- test: increase sample test timeout (Tweak HTTP sample comments #628)
- fix(deps): update dependency @google-cloud/bigquery to v6 (Move description from docs into code sample #630)
- fix(deps): update dependency @google-cloud/storage to v6 (Extract/re-work samples from "Execution environment" page #629)
- samples: fix compute test, update dependency to V3 (Add description to code comments for HTTP #634)
- chore(main): release 4.0.0 (Audio Stream Timing Out Instantly #626)
- chore(main): release 4.1.0 (Add missing lint dependency #636)
- chore(main): release 4.2.0 (Fix permission of bash script #645)
- feat: add batchGetEffectiveIamPolicies sample code. (No need for the --disable-setuid-sandbox flag #654)
- fix(deps): update dependency uuid to v9 (Upgrade repo-tools to fix some failing system tests. #657)
- chore(main): release 4.3.0 (Migrate tests to Kokoro #652)
- chore(main): release 4.4.0 (Do not deploy to AppEngine in Presubmit #659)
- chore(main): release 4.5.0 (Slow "Browser" instance creation w/ Headless Chrome GAE Standard Node.js #671)
Here is the summary of changes. You are about to add 15 region tags.
This comment is generated by snippet-bot.
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a workflow config to .github/workflows
for this, so that the tests run?
Be sure to add the config to
.github/workflows/workflows.json
, too. ✅
The CI was failing due to lack of tests being carried over (the one mega-test in On @grayside's advice to unblock this PR, I have:
Context is in this conversation |
chore(deps): update dependency mocha to v6 This PR contains the following updates: | Package | Type | Update | Change | References | |---|---|---|---|---| | mocha | devDependencies | major | `^5.2.0` -> `^6.0.0` | [homepage](https://mochajs.org/), [source](https://github.com/mochajs/mocha) | --- ### Release Notes <details> <summary>mochajs/mocha</summary> ### [`v6.0.0`](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#​600--2019-02-18) [Compare Source](https://github.com/mochajs/mocha/compare/v5.2.0...v6.0.0) #### 🎉 Enhancements - [#​3726](https://github.com/mochajs/mocha/issues/3726): Add ability to unload files from `require` cache ([**@​plroebuck**](https://github.com/plroebuck)) #### 🐛 Fixes - [#​3737](https://github.com/mochajs/mocha/issues/3737): Fix falsy values from options globals ([**@​plroebuck**](https://github.com/plroebuck)) - [#​3707](https://github.com/mochajs/mocha/issues/3707): Fix encapsulation issues for `Suite#_onlyTests` and `Suite#_onlySuites` ([**@​vkarpov15**](https://github.com/vkarpov15)) - [#​3711](https://github.com/mochajs/mocha/issues/3711): Fix diagnostic messages dealing with plurality and markup of output ([**@​plroebuck**](https://github.com/plroebuck)) - [#​3723](https://github.com/mochajs/mocha/issues/3723): Fix "reporter-option" to allow comma-separated options ([**@​boneskull**](https://github.com/boneskull)) - [#​3722](https://github.com/mochajs/mocha/issues/3722): Fix code quality and performance of `lookupFiles` and `files` ([**@​plroebuck**](https://github.com/plroebuck)) - [#​3650](https://github.com/mochajs/mocha/issues/3650), [#​3654](https://github.com/mochajs/mocha/issues/3654): Fix noisy error message when no files found ([**@​craigtaub**](https://github.com/craigtaub)) - [#​3632](https://github.com/mochajs/mocha/issues/3632): Tests having an empty title are no longer confused with the "root" suite ([**@​juergba**](https://github.com/juergba)) - [#​3666](https://github.com/mochajs/mocha/issues/3666): Fix missing error codes ([**@​vkarpov15**](https://github.com/vkarpov15)) - [#​3684](https://github.com/mochajs/mocha/issues/3684): Fix exiting problem in Node.js v11.7.0+ ([**@​addaleax**](https://github.com/addaleax)) - [#​3691](https://github.com/mochajs/mocha/issues/3691): Fix `--delay` (and other boolean options) not working in all cases ([**@​boneskull**](https://github.com/boneskull)) - [#​3692](https://github.com/mochajs/mocha/issues/3692): Fix invalid command-line argument usage not causing actual errors ([**@​boneskull**](https://github.com/boneskull)) - [#​3698](https://github.com/mochajs/mocha/issues/3698), [#​3699](https://github.com/mochajs/mocha/issues/3699): Fix debug-related Node.js options not working in all cases ([**@​boneskull**](https://github.com/boneskull)) - [#​3700](https://github.com/mochajs/mocha/issues/3700): Growl notifications now show the correct number of tests run ([**@​outsideris**](https://github.com/outsideris)) - [#​3686](https://github.com/mochajs/mocha/issues/3686): Avoid potential ReDoS when diffing large objects ([**@​cyjake**](https://github.com/cyjake)) - [#​3715](https://github.com/mochajs/mocha/issues/3715): Fix incorrect order of emitted events when used programmatically ([**@​boneskull**](https://github.com/boneskull)) - [#​3706](https://github.com/mochajs/mocha/issues/3706): Fix regression wherein `--reporter-option`/`--reporter-options` did not support comma-separated key/value pairs ([**@​boneskull**](https://github.com/boneskull)) #### 📖 Documentation - [#​3652](https://github.com/mochajs/mocha/issues/3652): Switch from Jekyll to Eleventy ([**@​Munter**](https://github.com/Munter)) #### 🔩 Other - [#​3677](https://github.com/mochajs/mocha/issues/3677): Add error objects for createUnsupportedError and createInvalidExceptionError ([**@​boneskull**](https://github.com/boneskull)) - [#​3733](https://github.com/mochajs/mocha/issues/3733): Removed unnecessary processing in post-processing hook ([**@​wanseob**](https://github.com/wanseob)) - [#​3730](https://github.com/mochajs/mocha/issues/3730): Update nyc to latest version ([**@​coreyfarrell**](https://github.com/coreyfarrell)) - [#​3648](https://github.com/mochajs/mocha/issues/3648), [#​3680](https://github.com/mochajs/mocha/issues/3680): Fixes to support latest versions of [unexpected](https://npm.im/unexpected) and [unexpected-sinon](https://npm.im/unexpected-sinon) ([**@​sunesimonsen**](https://github.com/sunesimonsen)) - [#​3638](https://github.com/mochajs/mocha/issues/3638): Add meta tag to site ([**@​MartijnCuppens**](https://github.com/MartijnCuppens)) - [#​3653](https://github.com/mochajs/mocha/issues/3653): Fix parts of test suite failing to run on Windows ([**@​boneskull**](https://github.com/boneskull)) </details> --- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is stale, or if you modify the PR title to begin with "`rebase!`". :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- renovate-rebase -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#googleapis/nodejs-asset). #109 automerged by dpebot
* Release v0.3.0 * Update CHANGELOG.md
* updated CHANGELOG.md * updated package.json * updated samples/package.json
* updated CHANGELOG.md * updated package.json * updated samples/package.json
* updated CHANGELOG.md [ci skip] * updated package.json [ci skip] * updated samples/package.json [ci skip]
🤖 I have created a release \*beep\* \*boop\* --- ## [3.20.0](https://www.github.com/googleapis/nodejs-asset/compare/v3.19.0...v3.20.0) (2021-10-19) ### Features * Update osconfig v1 and v1alpha RecurringSchedule.Frequency with DAILY frequency ([#569](https://www.github.com/googleapis/nodejs-asset/issues/569)) ([af03fd5](https://www.github.com/googleapis/nodejs-asset/commit/af03fd5c4fba4a258acf4c0332991bcb619fa10b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release \*beep\* \*boop\* --- ## [3.21.0](https://www.github.com/googleapis/nodejs-asset/compare/v3.20.0...v3.21.0) (2021-11-09) ### Features * OSConfig: add OS policy assignment rpcs ([#574](https://www.github.com/googleapis/nodejs-asset/issues/574)) ([ff9491d](https://www.github.com/googleapis/nodejs-asset/commit/ff9491d55bd527c451914b487ce08fed3068dbd8)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release \*beep\* \*boop\* --- ## [3.22.0](https://www.github.com/googleapis/nodejs-asset/compare/v3.21.0...v3.22.0) (2021-11-12) ### Features * Update OSConfig API ([#578](https://www.github.com/googleapis/nodejs-asset/issues/578)) ([8af0ac8](https://www.github.com/googleapis/nodejs-asset/commit/8af0ac8a915b8b72d379b4e2a14c888ef98dfcf1)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
* feat!: Update library to use Node 12 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
* samples: fix compute test, update dependency to V3
* chore(main): release 4.0.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [4.1.0](googleapis/nodejs-asset@v4.0.0...v4.1.0) (2022-06-29) ### Features * support regapic LRO ([#635](googleapis/nodejs-asset#635)) ([140ce9d](googleapis/nodejs-asset@140ce9d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
* chore(main): release 4.2.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
* feat: add batchGetEffectiveIamPolicies sample code. Add batchGetEffectiveIamPolicies sample code and also lint the protobuf imports. * chore: fix the Copyright year for getBatchEffectiveIamPolicies.js * chore: refactor logging and remove loop for checking results * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: modify the logging to print nested Object. Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
* chore(main): release 4.3.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [4.4.0](googleapis/nodejs-asset@v4.3.0...v4.4.0) (2022-09-22) ### Features * Add client library support for AssetService v1 SavedQuery APIs ([#662](googleapis/nodejs-asset#662)) ([68c8ece](googleapis/nodejs-asset@68c8ece)) ### Bug Fixes * Preserve default values in x-goog-request-params header ([#658](googleapis/nodejs-asset#658)) ([e351ed1](googleapis/nodejs-asset@e351ed1)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
* chore(main): release 4.5.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
a82dc87
to
0fab9fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these files be in asset/snippets/
, or the asset
directory itself?
@@ -0,0 +1,262 @@ | |||
// Copyright 2021 Google LLC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to include this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This singular test file includes not just the quickstart tests, but tests for all the other samples, as well. They are run sequentially.
I included it in the migration, so that when the language maintainers address the GH issue I created (#2864), they would have the body of the individual tests already and could use their best judgment to modify them as needed to decompose into separate test files. At that point, I imagine the samples.test.js
will be deleted.
I figure inclusion of this file here is acceptable tech debt for the migration. Since @sofisl already discarded most of the tests for her migration to google-cloud-node, I didn't want to lose it in the migration/archival process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To address your other comment about migration destination:
i (and I believe most others) are following the example set in the migration guide, written by @grayside. You can see here that the samples end up <product>/snippets
:
https://docs.google.com/document/d/1YhpsM5ylBFDunRsd-Vq7pHRNUz3uh9TUbOkJOZwCmOk/edit?resourcekey=0--XOS_x8NmzOS8_Qws-Qsug#bookmark=kix.z1viwa6f4215
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Omitting the snippets
directory feels cleaner to me, but IMO it's not worth creating a new PR.
LGTM. ✅