GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs(samples): Refactoring product package (Import) (new) by dfirova · Pull Request #480 · googleapis/java-retail

This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Conversation

@dfirova

@dfirova dfirova commented Jul 1, 2022

Copy link
Copy Markdown
Contributor

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)

Fixes #<issue_number_goes_here> ☕️

If you write sample code, please follow the samples format.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
tetiana-karasova and others added 6 commits July 1, 2022 10:56
@tetiana-karasova @dfirova
Cherry-picked "Update README"
c50efe7
@t-karasova @dfirova
Cherry-picked "the bash scripts are added"
f643f83
@t-karasova @dfirova
Cherry-picked "Updated README"
62f947d
@t-karasova @dfirova
Update user_environment_setup.sh
aa1ce1d
@t-karasova @dfirova
Update user_import_data_to_catalog.sh
5ec159a
@t-karasova @dfirova
Cherry-picked "Updated README"
b308d9b
@dfirova
dfirova requested a review from a team July 1, 2022 08:07
@product-auto-label product-auto-label Bot added the size: xs Pull request size is extra small. label Jul 1, 2022
@google-cla

google-cla Bot commented Jul 1, 2022

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@product-auto-label product-auto-label Bot added api: retail Issues related to the googleapis/java-retail API. samples Issues that are directly related to samples. labels Jul 1, 2022
@blunderbuss-gcf blunderbuss-gcf Bot assigned eaball35 Jul 1, 2022
sborisenkox added 2 commits July 1, 2022 11:09
@sborisenkox @dfirova
Refactoring product package (Import).
2c90e8e
@sborisenkox @dfirova
Remove init package.
f0f490d
@dfirova
dfirova requested review from a team July 1, 2022 08:10
@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: xs Pull request size is extra small. labels Jul 1, 2022
@dfirova
Update README
fcb2411
@eaball35 eaball35 assigned meltsufin and unassigned eaball35 Jul 11, 2022
chenlei1216
chenlei1216 reviewed Jul 14, 2022
View reviewed changes
Comment thread samples/interactive-tutorials/src/main/java/product/ImportProductsBigQueryTable.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@dfirova
Removed assuredBreak.
eba6357
chenlei1216
chenlei1216 reviewed Jul 15, 2022
View reviewed changes
Comment thread samples/interactive-tutorials/src/test/java/product/setup/ProductsCreateBigqueryTableTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@dfirova
PR fix: removed tests for setup/cleanup.
c215629
@dfirova
dfirova requested a review from chenlei1216 July 19, 2022 05:23
chenlei1216
chenlei1216 approved these changes Jul 20, 2022
View reviewed changes
Comment thread samples/interactive-tutorials/src/main/java/product/ImportProductsGcs.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@dfirova
PR fix: fixed the deadline.
f6ad617
@dfirova
dfirova requested a review from chenlei1216 July 20, 2022 05:33
chenlei1216
chenlei1216 approved these changes Jul 26, 2022
View reviewed changes
@dfirova
Merge branch 'main' into refactoring-products-import
fe0dcdf
@alicejli alicejli added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 22, 2022
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 22, 2022
@alicejli alicejli closed this Aug 22, 2022
@alicejli alicejli reopened this Aug 22, 2022
@dfirova

dfirova commented Aug 24, 2022

Copy link
Copy Markdown
Contributor Author

@alicejli , I don't have permission to see the details of owlbot failed run, would appreciate the details on this issue.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alicejli

alicejli commented Aug 24, 2022

Copy link
Copy Markdown

Looks like some permissions issue on some changes owlbot was trying to run:

Step #8: Status: Downloaded newer image for gcr.io/cloud-devrel-public-resources/owlbot-cli:latest
Step #8: gcr.io/cloud-devrel-public-resources/owlbot-cli:latest
Step #8: git add -A .
Step #8: git status . --porcelain
Step #8: Retrieving PR info for googleapis/java-retail
Step #8: Retrieved PR info for googleapis/java-retail
Step #8: git log -1 --format=%B
Step #8: git commit -m "🦉 Updates from OwlBot post-processor
Step #8: 
Step #8: See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md"
Step #8: git pull --no-verify
Step #8: git push --no-verify
Step #8: To https://github.com/dfirova/java-retail.git
Step #8:  ! [remote rejected] refactoring-products-import -> refactoring-products-import (permission denied)
Step #8: error: failed to push some refs to 'https://github.com/dfirova/java-retail.git'
Step #8: owl-bot.js commit-post-processor-update
Step #8: 
Step #8: Runs either `git commit -m "Updates from OwlBot"` or `git commit --amend
Step #8: --no-edit`
Step #8: depending on the squash flag in .OwlBot.yaml.
Step #8: 
Step #8: Run this command in the root directory of a client library repository after
Step #8: running the post processor.
Step #8: 
Step #8: Options:
Step #8:   --help          Show help                                            [boolean]
Step #8:   --version       Show version number                                  [boolean]
Step #8:   --dest-repo     The PR's destination repo (e.g., googleapis/foo)
Step #8:                                                              [string] [required]
Step #8:   --pr            The pull request number                    [number] [required]
Step #8:   --github-token  Short-lived GitHub token.                  [string] [required]
Step #8:   --repo-path     Local path to the repository
Step #8:                                     [string] [default: "/workspace/java-retail"]
Step #8: 
Step #8: Error: Command failed: git push --no-verify
Step #8: To https://github.com/dfirova/java-retail.git
Step #8:  ! [remote rejected] refactoring-products-import -> refactoring-products-import (permission denied)
Step #8: error: failed to push some refs to 'https://github.com/dfirova/java-retail.git'
Step #8: 
Step #8:     at checkExecSyncError (child_process.js:790:11)
Step #8:     at Object.execSync (child_process.js:863:15)
Step #8:     at cmd (/usr/src/app/build/src/cmd.js:44:29)
Step #8:     at commitPostProcessorUpdate (/usr/src/app/build/src/bin/commands/commit-post-processor-update.js:146:5)
Step #8:     at processTicksAndRejections (internal/process/task_queues.js:95:5) {
Step #8:   status: 1,
Step #8:   signal: null,
Step #8:   output: [
Step #8:     null,
Step #8:     <Buffer >,
Step #8:     <Buffer 54 6f 20 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 64 66 69 72 6f 76 61 2f 6a 61 76 61 2d 72 65 74 61 69 6c 2e 67 69 74 0a 20 21 20 5b ... 176 more bytes>
Step #8:   ],
Step #8:   pid: 43,
Step #8:   stdout: <Buffer >,
Step #8:   stderr: <Buffer 54 6f 20 68 74 74 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d 2f 64 66 69 72 6f 76 61 2f 6a 61 76 61 2d 72 65 74 61 69 6c 2e 67 69 74 0a 20 21 20 5b ... 176 more bytes>
Step #8: }
Finished Step #8

I think this happens when an update to a PR is made after an OwlBot post processor is already running. Try doing a git pull and see if there's any changes that need to be rebased before doing a git push to retrigger.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dfirova and others added 3 commits August 25, 2022 13:03
@dfirova
Merge branch 'googleapis:main' into refactoring-products-import
ca8ebda
@dfirova
Merge branch 'main' into refactoring-products-import
9a7c57b
@dfirova
Merge remote-tracking branch 'origin/refactoring-products-import' int…
10b8271
…o refactoring-products-import
@alicejli alicejli added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 26, 2022
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 26, 2022
@gcf-owl-bot
🦉 Updates from OwlBot post-processor
8b8b2b2
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
@Shabirmean Shabirmean added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 29, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 29, 2022
dfirova added 2 commits August 31, 2022 09:18
@dfirova
PR fix: changed tests to be similar to events test.
135e0a7
@dfirova
Merge remote-tracking branch 'origin/refactoring-products-import' int…
7da8114
…o refactoring-products-import
@dfirova

dfirova commented Aug 31, 2022

Copy link
Copy Markdown
Contributor Author

@yoshi-kokoro please trigger Kokoro checks.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dfirova
PR fix: returned test to previous state.
2ddf274
@dfirova

dfirova commented Sep 8, 2022

Copy link
Copy Markdown
Contributor Author

@chenlei1216 , the tests haven't been triggered in over a week, kindly ask to trigger them

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chenlei1216 chenlei1216 added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Sep 8, 2022
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 8, 2022
@chenlei1216

chenlei1216 commented Sep 8, 2022

Copy link
Copy Markdown

@chenlei1216 , the tests haven't been triggered in over a week, kindly ask to trigger them

Triggerred.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gcf-owl-bot
🦉 Updates from OwlBot post-processor
9ff7076
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 8, 2022
@kurtisvg
kurtisvg merged commit 0c39897 into googleapis:main Sep 13, 2022
@release-please release-please Bot mentioned this pull request Sep 13, 2022
chore(main): release 2.5.0 #532
Merged
gcf-merge-on-green Bot pushed a commit that referenced this pull request Sep 16, 2022
@release-please
chore(main): release 2.5.0 (#532)
53ce196
🤖 I have created a release *beep* *boop*
---


## [2.5.0](v2.4.0...v2.5.0) (2022-09-16)


### Features

* add local inventories info to the Product resource ([8204fbc](8204fbc))
* release AttributesConfig APIs to v2 version ([8204fbc](8204fbc))
* release CompletionConfig APIs to v2 version ([8204fbc](8204fbc))
* Release Control and ServingConfig serivces to v2 version ([#522](#522)) ([8204fbc](8204fbc))


### Bug Fixes

* **samples:** Removed add time from lro. ([#530](#530)) ([541e280](541e280))
* **samples:** Removed env variables and buckets from creating bq. ([#526](#526)) ([67152a6](67152a6))
* **samples:** Removed region tags ([#531](#531)) ([2d0dd5c](2d0dd5c))


### Documentation

* Improved documentation for Fullfillment and Inventory API in ProductService ([8204fbc](8204fbc))
* minor documentation format and typo fixes ([8204fbc](8204fbc))
* **samples:** Refactoring events package ([#481](#481)) ([20d2539](20d2539))
* **samples:** Refactoring product package ([#480](#480)) ([0c39897](0c39897))


### Dependencies

* Update dependency com.google.cloud:google-cloud-bigquery to v2.14.5 ([#503](#503)) ([435df1b](435df1b))
* Update dependency com.google.cloud:google-cloud-bigquery to v2.14.6 ([#519](#519)) ([9c37ee3](9c37ee3))
* Update dependency com.google.cloud:google-cloud-bigquery to v2.14.7 ([#523](#523)) ([0da80f8](0da80f8))
* Update dependency com.google.cloud:google-cloud-bigquery to v2.15.0 ([#524](#524)) ([ecb986a](ecb986a))
* Update dependency com.google.cloud:google-cloud-bigquery to v2.16.0 ([#535](#535)) ([e7fa004](e7fa004))
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#533](#533)) ([6236b06](6236b06))
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#538](#538)) ([ab71781](ab71781))
* Update dependency com.google.cloud:google-cloud-storage to v2.11.3 ([#511](#511)) ([364b3d4](364b3d4))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
github-actions Bot pushed a commit to meltsufin/monorepo-experiments that referenced this pull request Sep 17, 2022
@release-please
chore(main): release 2.5.0 (#532)
164b26b
🤖 I have created a release *beep* *boop*
---


## [2.5.0](googleapis/java-retail@v2.4.0...v2.5.0) (2022-09-16)


### Features

* add local inventories info to the Product resource ([32a384d](googleapis/java-retail@32a384d))
* release AttributesConfig APIs to v2 version ([32a384d](googleapis/java-retail@32a384d))
* release CompletionConfig APIs to v2 version ([32a384d](googleapis/java-retail@32a384d))
* Release Control and ServingConfig serivces to v2 version ([#522](googleapis/java-retail#522)) ([32a384d](googleapis/java-retail@32a384d))


### Bug Fixes

* **samples:** Removed add time from lro. ([#530](googleapis/java-retail#530)) ([858b0e1](googleapis/java-retail@858b0e1))
* **samples:** Removed env variables and buckets from creating bq. ([#526](googleapis/java-retail#526)) ([eeb68fa](googleapis/java-retail@eeb68fa))
* **samples:** Removed region tags ([#531](googleapis/java-retail#531)) ([b12a8fe](googleapis/java-retail@b12a8fe))


### Documentation

* Improved documentation for Fullfillment and Inventory API in ProductService ([32a384d](googleapis/java-retail@32a384d))
* minor documentation format and typo fixes ([32a384d](googleapis/java-retail@32a384d))
* **samples:** Refactoring events package ([#481](googleapis/java-retail#481)) ([c644df0](googleapis/java-retail@c644df0))
* **samples:** Refactoring product package ([#480](googleapis/java-retail#480)) ([aebf241](googleapis/java-retail@aebf241))


### Dependencies

* Update dependency com.google.cloud:google-cloud-bigquery to v2.14.5 ([#503](googleapis/java-retail#503)) ([58a7105](googleapis/java-retail@58a7105))
* Update dependency com.google.cloud:google-cloud-bigquery to v2.14.6 ([#519](googleapis/java-retail#519)) ([dc52906](googleapis/java-retail@dc52906))
* Update dependency com.google.cloud:google-cloud-bigquery to v2.14.7 ([#523](googleapis/java-retail#523)) ([3ad9ecf](googleapis/java-retail@3ad9ecf))
* Update dependency com.google.cloud:google-cloud-bigquery to v2.15.0 ([#524](googleapis/java-retail#524)) ([2b6c293](googleapis/java-retail@2b6c293))
* Update dependency com.google.cloud:google-cloud-bigquery to v2.16.0 ([#535](googleapis/java-retail#535)) ([826cbd6](googleapis/java-retail@826cbd6))
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#533](googleapis/java-retail#533)) ([29807c8](googleapis/java-retail@29807c8))
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#538](googleapis/java-retail#538)) ([e4170e8](googleapis/java-retail@e4170e8))
* Update dependency com.google.cloud:google-cloud-storage to v2.11.3 ([#511](googleapis/java-retail#511)) ([2c435e5](googleapis/java-retail@2c435e5))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

3 more reviewers
@chenlei1216 chenlei1216 chenlei1216 approved these changes
@averikitsch averikitsch averikitsch approved these changes
@meltsufin meltsufin meltsufin approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@meltsufin meltsufin

Labels

api: retail Issues related to the googleapis/java-retail API. samples Issues that are directly related to samples. size: l Pull request size is large.

Projects

None yet

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.

12 participants

@dfirova @alicejli @chenlei1216 @averikitsch @meltsufin @Shabirmean @kurtisvg @yoshi-kokoro @eaball35 @tetiana-karasova @t-karasova @sborisenkox
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.