Skip to content
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

system tests: search: delete documents individually #784

Merged
merged 1 commit into from
Aug 6, 2015

Conversation

stephenplusplus
Copy link
Contributor

RE: #775 (comment)

The Search API doesn't allow indexes to be deleted. Instead, you can delete all of the documents within them. That's what we were doing previously, but as the amount of created Documents grows, it's taking an excessive amount of time to fetch, then iteratively delete each one that exists.

This PR changes the tests to create/delete a document, instead of letting the before/after hooks handle it the old way.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 6, 2015
@jgeewax
Copy link
Contributor

jgeewax commented Aug 6, 2015 via email

@stephenplusplus
Copy link
Contributor Author

Yep, thanks. Will fix that in the first post.

@@ -67,12 +56,8 @@ describe('Search', function() {
var INDEX_NAME = generateIndexName();
var index = search.index(INDEX_NAME);

before(function(done) {
deleteAllDocuments(done);

This comment was marked as spam.

This comment was marked as spam.

callmehiphop added a commit that referenced this pull request Aug 6, 2015
system tests: search: delete documents individually
@callmehiphop callmehiphop merged commit eaf753e into googleapis:master Aug 6, 2015
@callmehiphop
Copy link
Contributor

Travis will be so happy! (I hope!)

@quartzmo
Copy link
Member

quartzmo commented Oct 5, 2015

@stephenplusplus We are trying to follow your work on Search, as we're about to start on it for the Ruby lib. Do you think you could create a search label and add it to issues like this one?

@stephenplusplus
Copy link
Contributor Author

@quartzmo sure, I found a few: https://github.com/GoogleCloudPlatform/gcloud-node/issues?q=label%3Asearch+is%3Aclosed I don't think we've had that many. Let me know if any questions come up.

sofisl pushed a commit that referenced this pull request Jan 10, 2023
samples: pull in latest typeless bot, clean up some comments

Source-Link: https://togithub.com/googleapis/synthtool/commit/0a68e568b6911b60bb6fd452eba4848b176031d8
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:5b05f26103855c3a15433141389c478d1d3fe088fb5d4e3217c4793f6b3f245e
sofisl pushed a commit that referenced this pull request Jan 10, 2023
sofisl pushed a commit that referenced this pull request Jan 17, 2023
sofisl pushed a commit that referenced this pull request Jan 24, 2023
* fix: failing tests for LRO check methods

Updated gapic-generator-typescript to v2.1.1.

Committer: @alexander-fenster
PiperOrigin-RevId: 387841814

Source-Link: googleapis/googleapis@f973532

Source-Link: googleapis/googleapis-gen@acb489d

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Jan 24, 2023
sofisl pushed a commit that referenced this pull request Jan 25, 2023
* fix: failing tests for LRO check methods

Updated gapic-generator-typescript to v2.1.1.

Committer: @alexander-fenster
PiperOrigin-RevId: 387841814

Source-Link: googleapis/googleapis@f973532

Source-Link: googleapis/googleapis-gen@acb489d

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants