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

[Search Documents] Migrating search-documents to the new recorder #20125

Merged
merged 9 commits into from
Jan 28, 2022

Conversation

HarshaNalluru
Copy link
Member

@HarshaNalluru HarshaNalluru commented Jan 28, 2022

Packages impacted by this PR

search-documents

Issues associated with this PR

#19859

Describe the problem that is addressed by this PR

Migrating search-documents to the new recorder

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

N/A

Are there test cases added in this PR? (If not, why?)

N/A

Provide a list of related PRs (if any)

N/A

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

@joheredi
Copy link
Member

What do you think about doing al recorder start and setup inside createClient? Maybe it can take the recorder as parameter

@HarshaNalluru
Copy link
Member Author

Sounds good

Copy link
Member

@joheredi joheredi left a comment

Choose a reason for hiding this comment

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

😃 Awesome!

import { delay, serviceVersions } from "../../../src/serviceUtils";
import { versionsToTest } from "@azure/test-utils";

const TEST_INDEX_NAME = isLiveMode() ? createRandomIndexName() : "hotel-live-test1";
Copy link
Member

Choose a reason for hiding this comment

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

Could you please expand why this is removed? The CreateRandonIndexName method should be called only for live mode. But now it seems it is getting called even for the playback mode which will cause issues

Copy link
Member Author

Choose a reason for hiding this comment

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

< Discussed offline 😎 >

@sarangan12
Copy link
Member

Spoke with Harsha offline. Changes look good. Approving it

@HarshaNalluru HarshaNalluru merged commit e7c20ea into Azure:main Jan 28, 2022
@HarshaNalluru HarshaNalluru deleted the harshan/19859-search branch January 28, 2022 22:49
sarangan12 added a commit that referenced this pull request Jan 31, 2022
sarangan12 added a commit that referenced this pull request Feb 1, 2022
…rder" (#20149)

* Revert "[Search Documents] Migrating search-documents to the new recorder (#20125)"

This reverts commit e7c20ea.

* Rush update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants