Closed vishwarajanand closed 8 months ago
Here is the summary of changes.
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:
Looks good but two thoughts:
Removed autoload from composer.json to load new samples (existing tests will fail till then, so removed now to migrate samples one by one
I see no changes to composer.json
, so what is this referring to?
Also, we should do these all at once!
@bshaffer sure thing, @shivgautam will take care of it. The composer changes I had made are in this commit and I had to revert them to ensure a test pass. Once all such samples are migrated, we need to redo those as part of this PR.
Fixed as part of #1968
This PR migrates a single Datstore sample to individual file format. ref: b/138631070
Changes
composer.json
to load new samples (existing tests will fail till then, so removed now to migrate samples one by one)/datastore/api/src/functions/concepts.php
/datastore/api/src/<function_name>.php
/datastore/api/test/ConceptsTest.php
to assert on the sample's print statement.Tests
Warning: XDEBUG_MODE=coverage or xdebug.mode=coverage has to be set
. 1 / 1 (100%)
Time: 00:00.309, Memory: 10.00 MB
OK (1 test, 1 assertion) ➜ api git:(datastore_samples_migration)