-
Notifications
You must be signed in to change notification settings - Fork 57
CloudEvents equality override #98
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
CloudEvents equality override #98
Conversation
Signed-off-by: Curtis Mason <[email protected]>
Signed-off-by: Curtis Mason <[email protected]>
Signed-off-by: Curtis Mason <[email protected]>
Signed-off-by: Curtis Mason <[email protected]>
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. | |||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | |||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | |||
|
|||
## [1.0.1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a bug in that CloudEvents could not be compared, or a feature in providing a nice way to compare CloudEvents?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cloudevent1 == cloudevent2
would only test the memory address instead of an actual equality test because we forgot to override the __eq__
operator. I'd say both of the above are applicable :)
* docs: rename receiving cloudevents (#91) Signed-off-by: Grant Timmerman <[email protected]> * add coc ref (#90) Signed-off-by: Doug Davis <[email protected]> Co-authored-by: Curtis Mason <[email protected]> * CloudEvents equality override (#98) * added tests to cloudevent eq Signed-off-by: Curtis Mason <[email protected]> * lint fix Signed-off-by: Curtis Mason <[email protected]> * modified changelog Signed-off-by: Curtis Mason <[email protected]> * version bump Signed-off-by: Curtis Mason <[email protected]> * cloudevent fields type checking adjustments (#97) * added exceptions and more indepth can_read Signed-off-by: Curtis Mason <[email protected]> * moved is_binary, is_structured into http module Signed-off-by: Curtis Mason <[email protected]> * changelog and version bump Signed-off-by: Curtis Mason <[email protected]> * removed unused import and spacing Signed-off-by: Curtis Mason <[email protected]> * lint fix Signed-off-by: Curtis Mason <[email protected]> * reverted auto format change Signed-off-by: Curtis Mason <[email protected]> * reverted changelog and auto format changes Signed-off-by: Curtis Mason <[email protected]> * changelog 1.0.1 update (#101) Signed-off-by: Curtis Mason <[email protected]> Co-authored-by: Grant Timmerman <[email protected]> Co-authored-by: Doug Davis <[email protected]>
Signed-off-by: Curtis Mason [email protected]
Fixes #93
Changes
Implemented CloudEvent.eq()
One line description for the changelog
CloudEvents equality override