GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(middleware-user-agent): add client config for userAgentAppId by siddsriv · Pull Request #6524 · aws/aws-sdk-js-v3

Conversation

@siddsriv

@siddsriv siddsriv commented Sep 26, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Issue

Internal JS-5173

Description

Adds a client config field for userAgentAppId

Testing

Unit tests:

  • util-user-agent-node
 PASS  src/defaultUserAgent.spec.ts
  createDefaultUserAgentProvider
    ✓ should return basic node default user agent (5 ms)
    ✓ should set crt available key if aws-crt is available in runtime (1 ms)
    ✓ should skip api version if service id is not supplied (1 ms)
    ✓ should add AWS_EXECUTION_ENV (2 ms)
    ✓ should add app id if available (2 ms)

Test Suites: 1 passed, 1 total
Tests:       5 passed, 5 total
Snapshots:   0 total
Time:        2.86 s
Ran all test suites.
Done in 3.44s.
  • util-user-agent-browser
Location: /local/home/sidddsri/workspace/aws-sdk-js-v3/packages/util-user-agent-browser
.
 PASS  src/index.native.spec.ts
 PASS  src/index.spec.ts

Test Suites: 2 passed, 2 total
Tests:       5 passed, 5 total
Snapshots:   0 total
Time:        4.485 s
  • middleware-user-agent
 PASS  src/user-agent-middleware.spec.ts
  userAgentMiddleware
    ✓ should include appId in user agent when provided (1 ms)
    ✓ should include long appId in user agent when provided (1 ms)
  • Client config option is generated in runtimeConfig.ts:
.
.
    useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
    userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
.
.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@siddsriv
feat(codegen): add codegen for userAgentAppId
2afbfb5
@siddsriv
siddsriv requested a review from a team as a code owner September 26, 2024 16:35
@siddsriv
siddsriv marked this pull request as draft September 26, 2024 16:35
siddsriv added 4 commits September 26, 2024 17:28
@siddsriv
chore(codegen): comment update
c973314
@siddsriv
fix(codegen): formatting fixes
70f7722
@siddsriv
fix(codegen): correct appId type
11fb1b9
@siddsriv
chore(codegen): comments
86b6c2d
@siddsriv
siddsriv force-pushed the feat/UAAppId branch from 4039d01 to 86b6c2d Compare September 26, 2024 17:30
siddsriv added 2 commits September 26, 2024 17:37
@siddsriv
chore(codegen): comment update
df70919
@siddsriv
chore(codegen): merge appId codegen into existing UA codegen
d731ec6
@siddsriv
siddsriv force-pushed the feat/UAAppId branch from b92582e to d731ec6 Compare September 27, 2024 17:34
siddsriv added 10 commits September 27, 2024 17:37
@siddsriv
chore(codegen): update typescript integration for codegen change in p…
b9e9e19
…rev commit
@siddsriv
chore(codegen): keep codegen style consistent for runtimeConfigs
22dd421
@siddsriv
chore(codegen): style/comment update
49e3086
@siddsriv
feat(middleware-user-agent): appId config resolvers and accompanying …
ad89eac
…options in utils for UA-node
@siddsriv
fix(middleware-user-agent): add smithy core in deps
b47f801
@siddsriv
test(middleware-user-agent): add case for appId
a067a37
@siddsriv
test(middleware-user-agent): case for long appId
1c079c5
@siddsriv
feat(util-user-agent-browser): add appId collection
9e0ed22
@siddsriv
test(util-user-agent-node): add appId case
919f209
@siddsriv
test(util-user-agent-node): test update for mock env
8707e8d
@siddsriv
siddsriv marked this pull request as ready for review October 1, 2024 15:37
@siddsriv siddsriv changed the title feat: add client config for userAgentAppId feat(middleware-user-agent): add client config for userAgentAppId Oct 1, 2024
kuhe
kuhe reviewed Oct 1, 2024
View reviewed changes
Comment thread ...egen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddUserAgentDependency.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

kuhe
kuhe reviewed Oct 1, 2024
View reviewed changes
Comment thread packages/middleware-user-agent/src/configurations.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

kuhe
kuhe reviewed Oct 1, 2024
View reviewed changes
Comment thread packages/middleware-user-agent/src/configurations.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

kuhe
kuhe approved these changes Oct 1, 2024
View reviewed changes
siddsriv added 3 commits October 1, 2024 16:34
@siddsriv
chore(middleware-user-agent): formatting fixes
ce01280
@siddsriv
docs(supplemental-docs): add userAgentAppId in CLIENTS
bceeb93
@siddsriv
docs(supplemental-docs): correct example
79cf144
This was referenced Oct 25, 2024
[Snyk] Upgrade @aws-sdk/types from 3.257.0 to 3.664.0 bibiefrat/bibi-docker-ex1#4198
Open
[Snyk] Upgrade @aws-sdk/credential-provider-node from 3.258.0 to 3.664.0 bibiefrat/bibi-docker-ex1#4199
Open
[Snyk] Upgrade @aws-sdk/middleware-user-agent from 3.257.0 to 3.664.0 bibiefrat/bibi-docker-ex1#4200
Open
[Snyk] Upgrade @aws-sdk/util-endpoints from 3.257.0 to 3.664.0 bibiefrat/bibi-docker-ex1#4201
Open
[Snyk] Upgrade @aws-sdk/util-user-agent-node from 3.257.0 to 3.664.0 bibiefrat/bibi-docker-ex1#4202
Open
[Snyk] Upgrade @aws-sdk/middleware-sdk-sts from 3.257.0 to 3.664.0 bibiefrat/bibi-docker-ex1#4203
Open
[Snyk] Upgrade @aws-sdk/client-sts from 3.258.0 to 3.664.0 bibiefrat/bibi-docker-ex1#4204
Open
[Snyk] Upgrade @aws-sdk/credential-provider-node from 3.258.0 to 3.664.0 bibiefrat/bibi-docker-ex1#4205
Open
[Snyk] Upgrade @aws-sdk/middleware-user-agent from 3.257.0 to 3.664.0 bibiefrat/bibi-docker-ex1#4206
Open
[Snyk] Upgrade @aws-sdk/util-endpoints from 3.257.0 to 3.664.0 bibiefrat/bibi-docker-ex1#4207
Open
[Snyk] Upgrade @aws-sdk/util-user-agent-node from 3.257.0 to 3.664.0 bibiefrat/bibi-docker-ex1#4208
Open
@origranot origranot mentioned this pull request Oct 25, 2024
[Snyk] Upgrade @aws-sdk/client-s3 from 3.650.0 to 3.664.0 origranot/reduced.to#876
Closed
This was referenced Oct 26, 2024
[Snyk] Upgrade @aws-sdk/types from 3.257.0 to 3.664.0 sudo-thoth/2Test#3608
Open
[Snyk] Upgrade @aws-sdk/types from 3.257.0 to 3.664.0 sudo-thoth/2Test#3609
Open
[Snyk] Upgrade @aws-sdk/types from 3.257.0 to 3.664.0 sudo-thoth/2Test#3610
Open
[Snyk] Upgrade @aws-sdk/types from 3.257.0 to 3.664.0 sudo-thoth/2Test#3611
Open
[Snyk] Upgrade @aws-sdk/types from 3.257.0 to 3.664.0 sudo-thoth/2Test#3612
Open
[Snyk] Upgrade @aws-sdk/credential-provider-cognito-identity from 3.259.0 to 3.665.0 sudo-thoth/2Test#3613
Open
[Snyk] Upgrade @aws-sdk/client-cognito-identity from 3.259.0 to 3.665.0 sudo-thoth/2Test#3614
Open
[Snyk] Upgrade @aws-sdk/client-sts from 3.259.0 to 3.665.0 sudo-thoth/2Test#3615
Open
[Snyk] Upgrade @aws-sdk/credential-provider-node from 3.259.0 to 3.665.0 sudo-thoth/2Test#3616
Open
[Snyk] Upgrade @aws-sdk/credential-provider-ini from 3.259.0 to 3.665.0 sudo-thoth/2Test#3617
Open
[Snyk] Upgrade @aws-sdk/types from 3.257.0 to 3.664.0 sudo-thoth/2Test#3618
Open
[Snyk] Upgrade @aws-sdk/types from 3.257.0 to 3.664.0 sudo-thoth/2Test#3619
Open
This was referenced Oct 26, 2024
[Snyk] Upgrade @aws-sdk/types from 3.257.0 to 3.664.0 bibiefrat/bibi-docker-ex1#4209
Open
[Snyk] Upgrade @aws-sdk/types from 3.257.0 to 3.664.0 bibiefrat/bibi-docker-ex1#4210
Open
[Snyk] Upgrade @aws-sdk/types from 3.257.0 to 3.664.0 bibiefrat/bibi-docker-ex1#4211
Open
[Snyk] Upgrade @aws-sdk/types from 3.257.0 to 3.664.0 bibiefrat/bibi-docker-ex1#4212
Open
@github-actions

github-actions Bot commented Oct 27, 2024

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@kuhe kuhe kuhe approved these changes
+1 more reviewer
@trivikr trivikr trivikr approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@siddsriv @kuhe @trivikr
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.