Skip to content

Conversation

@slinkydeveloper
Copy link
Member

The reasons for this change are:

  • the validation it's not related to string representation at all.
  • avoid the overhead of the validation when logging events. One that needs both just invokes both methods

Signed-off-by: Francesco Guardiani [email protected]

@slinkydeveloper slinkydeveloper added this to the SDK 2.4 milestone Dec 11, 2020
@slinkydeveloper slinkydeveloper added component/event bug Something isn't working labels Dec 11, 2020
Copy link
Member

@n3wscott n3wscott left a comment

Choose a reason for hiding this comment

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

LGTM

@n3wscott
Copy link
Member

n3wscott commented Jan 4, 2021

I think the tests are looking for that string.

Signed-off-by: Francesco Guardiani <[email protected]>
@n3wscott
Copy link
Member

n3wscott commented Jan 7, 2021

LGTM

@slinkydeveloper slinkydeveloper merged commit f01f50e into cloudevents:master Jan 7, 2021
@slinkydeveloper slinkydeveloper deleted the remove_validation branch January 7, 2021 15:12
dlorenc added a commit to dlorenc/build-pipeline that referenced this pull request Sep 6, 2021
This updates the cloudevents dependency from v2.1.0 to v2.5.0. This is over a year
old and catches us up quite far.

There was one manual change in the cloud_event_controller_test.go file. CloudEvents
changed the string representation of an event, which our tests looked for. This
matches the change to their upstream test: github.com/cloudevents/sdk-go/pull/639.

Signed-off-by: Dan Lorenc <[email protected]>
dlorenc added a commit to dlorenc/build-pipeline that referenced this pull request Sep 7, 2021
This updates the cloudevents dependency from v2.1.0 to v2.5.0. This is over a year
old and catches us up quite far.

There was one manual change in the cloud_event_controller_test.go file. CloudEvents
changed the string representation of an event, which our tests looked for. This
matches the change to their upstream test: github.com/cloudevents/sdk-go/pull/639.

Signed-off-by: Dan Lorenc <[email protected]>
Signed-off-by: Dan Lorenc <[email protected]>
tekton-robot pushed a commit to tektoncd/pipeline that referenced this pull request Sep 15, 2021
This updates the cloudevents dependency from v2.1.0 to v2.5.0. This is over a year
old and catches us up quite far.

There was one manual change in the cloud_event_controller_test.go file. CloudEvents
changed the string representation of an event, which our tests looked for. This
matches the change to their upstream test: github.com/cloudevents/sdk-go/pull/639.

Signed-off-by: Dan Lorenc <[email protected]>
Signed-off-by: Dan Lorenc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working component/event

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants