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

Event Stream fixes for qbusiness #3011

Merged
merged 31 commits into from
Apr 25, 2024
Merged

Event Stream fixes for qbusiness #3011

merged 31 commits into from
Apr 25, 2024

Conversation

alextwoods
Copy link
Contributor

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

  1. To make sure we include your contribution in the release notes, please make sure to add description entry for your changes in the "unreleased changes" section of the CHANGELOG.md file (at corresponding gem). For the description entry, please make sure it lives in one line and starts with Feature or Issue in the correct format.

  2. For generated code changes, please checkout below instructions first:
    https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md

Thank you for your contribution!

Copy link

You have made a change to core without a corresponding change to the CHANGELOG.md. This change will not result in a new version and will not published unless an entry is added to CHANGELOG.md

Copy link

You have made a change to core without a corresponding change to the CHANGELOG.md. This change will not result in a new version and will not published unless an entry is added to CHANGELOG.md

Copy link

You have made a change to core without a corresponding change to the CHANGELOG.md. This change will not result in a new version and will not published unless an entry is added to CHANGELOG.md

Copy link

You have made a change to core without a corresponding change to the CHANGELOG.md. This change will not result in a new version and will not published unless an entry is added to CHANGELOG.md

Copy link

You have made a change to core without a corresponding change to the CHANGELOG.md. This change will not result in a new version and will not published unless an entry is added to CHANGELOG.md

@alextwoods alextwoods changed the title [BASE API CHANGES] Chat event stream api [WIP] Event Stream fixes for qbusiness Apr 24, 2024
@@ -48,7 +48,7 @@

sent_event = same_client.send_events[0]
expect(sent_event.headers[":event-type"].value).to eq('BazResult')
expect(sent_event.payload.read).to eq("{\"Details\":[\"baz\"]}")
expect(sent_event.payload.read).to eq("{\"Result\":{\"Details\":[\"baz\"]}}")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change is the change in behavior for implicit payload member. This is modeled as:

    "BazEvent": {
      "type": "structure",
      "members": {
        "Result": { 
          "shape": "Result"
        }
      },
      "event": true
    },

We were previously treating result as the implicit payload (even though it was a structure and not a string/blob...)

@@ -25,7 +25,6 @@
end

it 'does not modify given idempotency tokens' do
expect(SecureRandom).not_to receive(:uuid)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

invocation id now gets a random id, but we test below that the client_token is preserved, so this can be removed without weakning the tst.

@alextwoods alextwoods marked this pull request as ready for review April 24, 2024 21:47
Copy link
Contributor

@mullermp mullermp left a comment

Choose a reason for hiding this comment

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

YOLO


# Minimum `aws-sdk-core` version for new S3 gem builds
MINIMUM_CORE_VERSION_S3 = "3.192.0"
MINIMUM_CORE_VERSION_S3 = "3.192.2"
Copy link
Contributor

Choose a reason for hiding this comment

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

Still should bump right?

@client_constructor = ClientConstructor.new(
options.merge(
plugins: @plugins,
codegenerated_plugins: @codegenerated_plugins))
codegenerated_plugins: @codegenerated_plugins,
default_plugins: @default_plugins))
Copy link
Contributor

Choose a reason for hiding this comment

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

We should have this for regular class too. There are missign docs.

@@ -6,7 +6,6 @@ class EventEmitter
def initialize
@listeners = {}
@validate_event = true
@status = :sleep
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

Copy link
Contributor

@mullermp mullermp left a comment

Choose a reason for hiding this comment

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

We should add docs on the other options that were missing, if any.

@alextwoods alextwoods changed the title [WIP] Event Stream fixes for qbusiness Event Stream fixes for qbusiness Apr 24, 2024
@mullermp mullermp merged commit c86c024 into version-3 Apr 25, 2024
28 checks passed
@mullermp mullermp deleted the q_event_stream_fixes branch April 25, 2024 16:16
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.

None yet

2 participants