Skip to content

Adding useragent to cosmos client#1486

Merged
mbhaskar merged 9 commits intomainfrom
mbhaskar/cosmos-user-agent
May 13, 2023
Merged

Adding useragent to cosmos client#1486
mbhaskar merged 9 commits intomainfrom
mbhaskar/cosmos-user-agent

Conversation

@mbhaskar
Copy link
Copy Markdown
Member

Why make this change?

Fixes #1485

Adds user agent to cosmos client.

What is this change?

Adding user agent to cosmos client.

How was this tested?

  • Integration Tests
  • Unit Tests

Comment thread src/Service/Resolvers/CosmosClientProvider.cs
Comment thread src/Service/Resolvers/CosmosClientProvider.cs
Comment thread src/Service/Resolvers/CosmosClientProvider.cs
Copy link
Copy Markdown
Collaborator

@Aniruddh25 Aniruddh25 left a comment

Choose a reason for hiding this comment

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

LGTM, curious to know how this will be useful

mbhaskar added 3 commits May 12, 2023 15:12
Moving GetProductVersion() from CLI to DABUtils
Adding test for testing user agent set from env var
Comment thread src/Service/Resolvers/CosmosClientProvider.cs Outdated
Comment thread src/Cli/Program.cs Outdated
Copy link
Copy Markdown
Contributor

@aaronburtle aaronburtle 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 splitting the Utils out to be more generally usable.

@Aniruddh25
Copy link
Copy Markdown
Collaborator

Aniruddh25 commented May 12, 2023

    public const string DEFAULT_VERSION = "1.0.0";

nit: this const string DEFAULT_VERSION not being used anywhere in this file any more...


In reply to: 1546376014


Refers to: src/Cli/Utils.cs:29 in 98bd1f9. [](commit_id = 98bd1f9, deletion_comment = False)

@mbhaskar
Copy link
Copy Markdown
Member Author

removed

@mbhaskar mbhaskar enabled auto-merge (squash) May 12, 2023 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add user agent to cosmos client

5 participants