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

[Service Bus] subQueue -> subQueueType #12223

Merged
merged 2 commits into from
Nov 2, 2020
Merged

Conversation

ramya-rao-a
Copy link
Contributor

@ramya-rao-a ramya-rao-a commented Nov 2, 2020

Unlike other languages, we don not use enums and use string literals instead. For the subQueue property, this opens up a potential confusion for people if they think they can pass in queue names. To help with this, in this PR we

  • rename the option subQueue to subQueueType
  • inline the string literals instead of exporting an explicit type

@ramya-rao-a
Copy link
Contributor Author

/azp run js - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ramya-rao-a
Copy link
Contributor Author

ramya-rao-a commented Nov 2, 2020

Should we do the same for ReceiveMode i.e. inline it instead of having a dedicated type?
cc @richardpark-msft, @HarshaNalluru, @bterlson

@HarshaNalluru
Copy link
Member

Should we do the same for ReceiveMode i.e. inline it instead of having a dedicated type?

Having an alias(or dedicated type) helps in reusing it wherever we declare the receiveMode be it in the src or tests rather than having to manually declare it without IntelliSense.

Copy link
Member

@richardpark-msft richardpark-msft left a comment

Choose a reason for hiding this comment

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

This is great. Having the literals inline is awesome.

@ramya-rao-a ramya-rao-a merged commit 039e159 into Azure:master Nov 2, 2020
@ramya-rao-a ramya-rao-a deleted the subqueue branch November 2, 2020 19:35
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-js that referenced this pull request Jan 18, 2021
syncing changes from 2020-06-01-preview api  (Azure#12462)

* [2020-06-01-preview] Update namedvalue add refreshSecret operation (Azure#12223)

* add refreshSecret

* addressing comments

* add 202

* address comments

* parenthesis

Co-authored-by: Kacie Kang <jikang@microsoft.com>

* [2020-06-01-preview] Update certificate add refreshSecret operation (Azure#12226)

* add refresh

* add path

* add keyvault part

* address comments

Co-authored-by: Kacie Kang <jikang@microsoft.com>

Co-authored-by: Kacie Kang <jikang@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants