Skip to content

Conversation

@rebecca-pete
Copy link
Contributor

@saranshdhingra @ddelgrosso1
Thanks for calling out the file names, Saransh!
I've done an audit of file names, function names, section tags, printed lines, and descriptions. Please take a look. These are updates to the turbo replication PHP code samples noted in b/217259317. Thanks!

@ddelgrosso Hi Denis,
We'll need to update the turbo replication code samples for PHP. Turbo replication is not set to default, the replication behavior or recovery point objective (rpo) for the bucket is set to default. Looks like we'll want to update the PHP function name(s) as well (set_turbo_replication_async_turbo=>set_rpo_async_turbo). 
See proposed changes. Thanks!
@ddelgrosso Hi Denis,
We'll need to update the turbo replication code samples for PHP. Turbo replication is not set to default, the replication behavior or recovery point objective (rpo) for the bucket is set to default. Looks like we'll want to update the PHP function name and file name: set_turbo_replication_default=>set_rpo_default 
See proposed changes. Thanks!
@rebecca-pete rebecca-pete requested a review from a team as a code owner March 5, 2022 01:35
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Mar 5, 2022
@snippet-bot
Copy link

snippet-bot bot commented Mar 5, 2022

Here is the summary of possible violations 😱

Details

There is a possible violation for removing region tag in use.

The end of the violation section. All the stuff below is FYI purposes only.


You are about to delete the following sample browser pages.

Here is the summary of changes.

You are about to add 3 region tags.
You are about to delete 3 region tags.

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:

  • Refresh this comment

@ddelgrosso1
Copy link

The changes look good to me but I defer to @saranshdhingra or one of the PHP experts.

@bshaffer bshaffer changed the title Rebecca pete turbo rep php edits patch 1 chore: [Storage] update turbo copy and filenames Mar 7, 2022
Copy link
Contributor

@bshaffer bshaffer left a comment

Choose a reason for hiding this comment

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

The tests are failing because you didn't update them to match the changes in filenames or the change in copy for the test matching. See TurboReplicationTest.php, they'll need to pass before we can merge this.

Saransh,
Updated text in the test file php-docs-samples/storage/test/TurboReplicationTest.php.
@rebecca-pete
Copy link
Contributor Author

@bshaffer Would you please take a look? Thanks!

@bshaffer
Copy link
Contributor

bshaffer commented Mar 7, 2022

The tests are still failing. Take a look at the logs!

@bshaffer
Copy link
Contributor

bshaffer commented Mar 8, 2022


There were 2 failures:

1) Google\Cloud\Samples\Storage\Tests\TurboReplicationTest::testSetRpoDefault
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Recovery point objective (RPO) has been set to DEFAULT for samples-turbo-replication-62268a55c27f5.\n
+'The replication behavior or recovery point objective (RPO) has been set to DEFAULT for samples-turbo-replication-62268a55c27f5.\n
 '

/tmpfs/src/github/php-docs-samples/storage/test/TurboReplicationTest.php:91

2) Google\Cloud\Samples\Storage\Tests\TurboReplicationTest::testSetRpoAsyncTurbo
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Recovery point objective (RPO) has been set to ASYNC_TURBO for samples-turbo-replication-62268a55c27f5.\n
+'The replication behavior or recovery point objective (RPO) has has been set to ASYNC_TURBO for samples-turbo-replication-62268a55c27f5.\n
 '

/tmpfs/src/github/php-docs-samples/storage/test/TurboReplicationTest.php:110

@rebecca-pete

saranshdhingra
saranshdhingra previously approved these changes May 23, 2022
Copy link
Collaborator

@saranshdhingra saranshdhingra left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for taking care of the tests :)

@saranshdhingra saranshdhingra dismissed their stale review May 23, 2022 06:34

Waiting for confirmation on region tag/path changes in https://cloud.google.com/storage/docs/managing-turbo-replication

@saranshdhingra saranshdhingra merged commit 69db70f into GoogleCloudPlatform:master May 24, 2022
@rebecca-pete rebecca-pete deleted the rebecca-pete-turbo-rep-php-edits-patch-1 branch May 24, 2022 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants