GeezerVison is showing github.com — migrate code from googleapis/nodejs-containeranalysis by NimJay · Pull Request #2834 · GoogleCloudPlatform/nodejs-docs-samples
Conversation
NimJay
commented
Nov 11, 2022
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
This is a redo of #2833 which is a redo of #2816 (comment).
Do not use a merge commit to update this pull-request with main.
- added directory structure
- npm init
- moved over samples
- passing tests for create, get, delete note and create occurrence
- passing get occurrence test
- passing delete occurrence
- passing test for occurrences for note, flaky
- passing occurrences for image
- samples
- passing get Discovery Info
- passing find vulnerabilities for image
- passing high severity vulnerability test
- pass all vulnerabilities for image
- failing pubsub
- passing pubsub tests
- passing polling test
- updated imageUrl to https://gcr.io/my-project/my-image:123 for more realistic use case
- removed escape slashes from filter strings, not needed
- updated description of occurrenceId
- added comment to explain second filter statement, needed for testing
- explicity state length greater than zero
- removed system-test, moved tests into test directory
- removed async functions from tests without await
- removed unused exec
- removed explicit project id from pub sub
- ran fix
- replaced promise/timeout with p-retry
- changed all samples to be wrapped with an outer main function, added params as comments for user
- added after step to delete occurrences and notes
- updated polling sample and test
- ran fix, dangling errs for symlink and polling
- updated comment on occurrenceId
- fixed typo in discovery test
- grabs projectId from client, update projectId and vars the refer to it in before hooks, added uuid to test resourceUrl
- removed commented code from polling sample
- move end region tag to inside main function
- removed symlinks from test script, removed commented test from polling block
- deleted unused import from pub sub sample
- changed grafeas to container analysis v1beta1 client
- fixed typo in client, removed comment
- added retry logic to get occurrence test
- changed assert match to assert include
- added create topic logic to fix ci test error
- removed regexp from assert include
- changed tests to include arrow functions
- moved containeranalysis and pubsub into prod deps
- added retry logic for all occs of note, check if topic exists and fixed typo on delete occ test
- added sample-metadata
- fixed occurrence typo
- added params to sample-metadata usage
- added p-retry to prod deps, updated poll sample
- working poll discovery occurrence finished sample
- updated default value of retries and timeoutSeconds to be more readable
- refactor: changes formatting of various statements
- chore: release 1.0.0 (Added back datastore v1beta3 samples. #33)
- fix(deps): update dependency @google-cloud/pubsub to ^0.29.0 (Upgrade to latest nodejs LTS release #36)
- chore: release 1.0.1 (Pin engines to Node 4.2. Closes #36. #37)
- chore: release 1.0.2 (Simplify app.yaml files, reduce # of e2e tests, and cleanup for webpa… #40)
- chore: release 1.1.0 (Skip node_modules for better deployments. #44)
- feat: adds getGrafeasClient() method on ContainerAnalysisClient instance (Change 'sampletask' to 'sampleTask' for consistency #46)
- chore: release 1.2.0 (Add property query filtering snippet. #47)
- chore: update samples to reflect v1 Grafeas API (Datastore: Use new Key object to easily reference parts of a key path #48)
- chore: release 1.2.1 (Added instructions for running the tests. Fixes #49. #50)
- chore: release 1.2.2 (Add Prediction API sample. #52)
- docs(samples): Update Topic ID in PubSub sample (Added Pub/Sub samples. #55)
- chore: release 1.3.0 (Move back to container-based Travis builds and removed some redundant tests. #58)
- fix(deps): update dependency @google-cloud/pubsub to ^0.30.0 (Add logging example and link to instructions for Compute Engine as well #59)
- chore: release 1.3.1 (Datastore / CloudSQL samples should only store first two octtets of IP #61)
- chore: release 1.3.2 (Changes for Datastore v1beta3. #68)
- fix(deps): update dependency @google-cloud/pubsub to ^0.31.0 (memcache env vars #71)
- chore: release 1.3.3 (Add sample for brunch #72)
- fix(deps): update dependency @google-cloud/pubsub to ^0.32.0 (Samples/gulp #81)
- chore: release 1.4.0 (Provided comment about done() #78)
- fix(deps): update dependency @google-cloud/pubsub to v1 (Fix metric filter call #84)
- chore: release 1.5.1 (I can commit directly to master #97)
- chore: add license headers for samples (Remove skip_files from app.yaml files #106)
- chore: release 1.6.0 (Add Cloud Speech sample. #110)
- chore: release 1.6.1 (Add Cloud Vision text detection sample. #113)
- refactor: use explicit mocha imports (Remove skip_files from app.yaml files, as it's no longer needed. #119)
- chore: release 1.7.0 (gcloud-node datastore no longer supports "autoPaginate" option #115)
- chore(deps): update dependency mocha to v7 (getApplicationDefault is undefined. #121)
- chore: release 1.7.1 (Add HTTP Cloud Function. #131)
- feat: move API to typescript code generation (Changed helloworld to camel case #135)
- chore: release 1.8.0 (Add missing sample that got inlined into the docs. #137)
- chore(deps): update dependency uuid to v7
- chore: release 1.9.0 (Add Speech API streaming sample. #144)
- chore: release 1.10.0 (Switch CloudSQL sample to 2nd gen. Added unit tests. #153)
- feat!: drop node8 support, support for async iterators (Update CI settings. #167)
- test: there's a race condition emptying queue (Logging API samples #175)
- test: retry pubsub test, as it relies on many moving parts (Export data from BigQuery samples #186)
- test: retry queue deletion (Update all dependencies 🌴 #191)
- build: adopt CI changes and generator formatting (Add remaining Translate samples. #197)
- test: make tests idempotent (Add browsing data sample #201)
- fix(samples): should use effective_severity field (Fix typo #200)
- chore: release 2.0.0 (Remove output only fields #170)
- build: modified export in protos.js
- chore(deps): update dependency uuid to v8 (Fix asserts and related stubs. #206)
- fix(deps): update dependency @google-cloud/pubsub to v2 (Add quickstart tests #215)
- chore(deps): update dependency mocha to v8 (Fix pagination #222)
- test: attempt retry on note delete (Upgrade tests and samples to ES2015 #224)
- chore: release 2.1.0 (Convert tasks.js to yargs #210)
- chore: release 2.1.1 (Error: Audio 'content' cannot be longer than 1 min. For long audio, use the 'uri' parameter to specify a file. #232)
- docs(samples): update sample to illustrate AR style urls
- chore: release 3.0.0 (Update app.yaml to use instance connection name #264)
- chore: release 3.0.1 (Updating additional swagger API references #268)
- chore: release 3.1.0 (Recognize stream freezes (from example) #278)
- build: update gapic-generator-typescript to v1.2.10. (AssertionError: undefined deepEqual 1 when porting functions/datastore to local setup #284)
- chore: release 3.1.1 (Vision snippets. #294)
- chore: release 3.1.2 (New cloud functions example #299)
- chore: new owl bot post processor docker image (Google Cloud Functions - Private Github repo in package.json #300)
- chore: release 3.1.3 (Sample command's response take too long time #303)
- chore: release 3.1.4 (Removed deprecated flag from app.yaml #309)
- chore: release 3.1.5 (Video samples #319)
- chore: release 3.1.6 (Fix issue with read-only transaction #325)
- chore: release 3.1.7 (speech FLAC encoding not work #327)
- chore: release 3.1.8 (Parallelize DLP tests #337)
- chore: release 3.2.0 (Update translate dependency #340)
- chore: release 3.3.0 (Semantic Text Matching like quora using Google NLP API (question) #353)
- chore(main): release 3.4.0 (Fix CONTRIBUTING.md links not rendering correctly #389)
- fix: Flaky pubsub test (Initial commit of sample #394)
- build!: update library to use Node 12 (Error reporting #408)
- chore(main): release 4.0.0 (Stackdriver samples #407)
- fix(deps): update dependency @google-cloud/pubsub to v3 (Remove "entire video" detection from faces #410)
- chore(main): release 4.1.0 (sendgrid example memory potential leaks #416)
- fix(issue-417): adding additional asserts to track flaky error (Fix bigquery samples #421)
- chore(main): release 4.2.0 (New changes added #MAKE CODE GREAT AGAIN! #422)
- chore(deps): update dependency uuid to v9 (Upgrades language samples to semi-gapic client #435)
- test(samples): disable samples tests for this repository (Added enableWordTimeOffsets: true to async (file) #440)
- chore(main): release 4.3.0 (Fix iot document link #429)
- chore(main): release 4.4.0 ([Speech] README needs autogen update (new Words CLI options are not shown in the README) #444)
- chore(main): release 4.4.1 (unable to do translate image and place text on data bucket #449)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
params as comments for user
|
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Reminder: do not use a merge commit to update this pull-request (source branch) with main.
Use rebase instead.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
// [END containeranalysis_quickstart]
|
|
|
}
|
|
|
|
|
|
main(...process.argv.slice(2));
|
NimJay
Nov 11, 2022
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
snippet-bot
Bot
commented
Nov 11, 2022
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
Here is the summary of changes.
You are about to add 15 region tags.
- container-analysis/snippets/createNote.js:25, tag
containeranalysis_create_note
- container-analysis/snippets/createOccurrence.js:30, tag
containeranalysis_create_occurrence
- container-analysis/snippets/deleteNote.js:25, tag
containeranalysis_delete_note
- container-analysis/snippets/deleteOccurrence.js:25, tag
containeranalysis_delete_occurrence
- container-analysis/snippets/getDiscoveryInfo.js:28, tag
containeranalysis_discovery_info
- container-analysis/snippets/getNote.js:25, tag
containeranalysis_get_note
- container-analysis/snippets/getOccurrence.js:25, tag
containeranalysis_get_occurrence
- container-analysis/snippets/highVulnerabilitiesForImage.js:27, tag
containeranalysis_filter_vulnerability_occurrences
- container-analysis/snippets/occurrencePubSub.js:26, tag
containeranalysis_pubsub
- container-analysis/snippets/occurrencesForImage.js:27, tag
containeranalysis_occurrences_for_image
- container-analysis/snippets/occurrencesForNote.js:25, tag
containeranalysis_occurrences_for_note
- container-analysis/snippets/pollDiscoveryOccurrenceFinished.js:28, tag
containeranalysis_poll_discovery_occurrence_finished
- container-analysis/snippets/pollDiscoveryOccurrenceFinished.js:50, tag
containeranalysis_poll_discovery_occurrence_finished
- container-analysis/snippets/quickstart.js:25, tag
containeranalysis_quickstart
- container-analysis/snippets/vulnerabilityOccurrencesForImage.js:27, tag
containeranalysis_vulnerability_occurrences_for_image
This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Using merge commit per @sofisl's suggestion
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
+1 more reviewer
ace-n
ace-n approved these changes
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
samples
Issues that are directly related to samples.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|