Skip to content

Event transformation based on type #2186

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

Conversation

dagnir
Copy link
Contributor

@dagnir dagnir commented Dec 4, 2020

Description

Fixes event marshalling and unmarshalling:

  • Fix unmarshalling by mapping event type to the correct builder static
    constructor on the eventstream interface.

  • Fix marshalling by retrieving the value for the :event-type header from the
    event using getSdkEventType()

Builds off #2176.

Motivation and Context

Bug fix.

Testing

Updated codegen reference files.

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed
  • A short description of the change has been added to the CHANGELOG
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license

@dagnir dagnir changed the base branch from master to dongie/eventstream-visitors-fix December 4, 2020 18:18
@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (dongie/eventstream-visitors-fix@e7d882d). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@                        Coverage Diff                         @@
##             dongie/eventstream-visitors-fix    #2186   +/-   ##
==================================================================
  Coverage                                   ?   77.53%           
  Complexity                                 ?      328           
==================================================================
  Files                                      ?     1228           
  Lines                                      ?    38627           
  Branches                                   ?     3034           
==================================================================
  Hits                                       ?    29950           
  Misses                                     ?     7216           
  Partials                                   ?     1461           
Flag Coverage Δ Complexity Δ
unittests 77.53% <0.00%> (?) 0.00% <0.00%> (?%)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e7d882d...e648904. Read the comment docs.

Fixes event marshalling and unmarshalling:

 - Fix unmarshalling by mapping event type to the correct builder static
   constructor on the eventstream interface.

 - Fix marshalling by retrieving the value for the :event-type header from the
   event using getSdkEventType()
@dagnir dagnir force-pushed the event-marshalling-unmarshalling branch from e648904 to dac8179 Compare December 4, 2020 21:54
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 4, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@dagnir dagnir merged commit 6553441 into aws:dongie/eventstream-visitors-fix Dec 7, 2020
@dagnir dagnir deleted the event-marshalling-unmarshalling branch December 7, 2020 19:24
dagnir added a commit that referenced this pull request Oct 19, 2022
- Fix expected exception types and messages
 - Fix some cases where endpoint override now does virtual addressing
 - Remove some broken tests
 - Comment out some currently broken tests because of issues in
   endpoint-rule-set.json
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.

3 participants