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

update to use new events handling #148

Merged
merged 4 commits into from
Aug 7, 2023

Conversation

mikemrm
Copy link
Contributor

@mikemrm mikemrm commented Jul 27, 2023

Updates to use the new x/events events package which removes the watermill format as well as implements the new AuthRelationshipRequest and Response events.

@mikemrm mikemrm force-pushed the update-events branch 15 times, most recently from d6c75c9 to aa05f1a Compare August 2, 2023 18:44
@mikemrm mikemrm force-pushed the update-events branch 4 times, most recently from b73d7c1 to cf44346 Compare August 4, 2023 15:58
@mikemrm mikemrm marked this pull request as ready for review August 4, 2023 16:04
@mikemrm mikemrm requested review from a team as code owners August 4, 2023 16:05
chart/permissions-api/templates/deployment-worker.yaml Outdated Show resolved Hide resolved
cmd/worker.go Outdated Show resolved Hide resolved
internal/config/config.go Show resolved Hide resolved
internal/pubsub/subscriber.go Show resolved Hide resolved
internal/pubsub/subscriber.go Show resolved Hide resolved
internal/pubsub/subscriber.go Outdated Show resolved Hide resolved
Copy link
Contributor

@jnschaeffer jnschaeffer left a comment

Choose a reason for hiding this comment

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

Mostly small changes. Error message formatting suggestions can be ignored if they're not useful.

More generally, I think we would benefit from getting into the habit of adding OpenTelemetry instrumentation whenever we define/update functions that cross system boundaries (network calls, DB calls, etc). I left a couple of comments where I believe we could gain the most from adding it but we can really add it in many more places.

internal/pubsub/subscriber.go Show resolved Hide resolved
internal/query/relations.go Show resolved Hide resolved
internal/query/relations.go Outdated Show resolved Hide resolved
internal/query/relations.go Outdated Show resolved Hide resolved
internal/query/relations.go Outdated Show resolved Hide resolved
internal/query/relations.go Outdated Show resolved Hide resolved
pkg/permissions/relationships.go Show resolved Hide resolved
github.com/pkg/errors v0.9.1
github.com/spf13/cobra v1.7.0
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.16.0
github.com/stretchr/testify v1.8.4
go.infratographer.com/x v0.3.4
go.infratographer.com/x v0.3.5-0.20230804152936-1fb9cfe07da6
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we going to be on this prerelease commit for everything until v0.3.5 is cut?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we are for now, still waiting for the actual release to be cut.

@mikemrm mikemrm merged commit bcff6d6 into infratographer:main Aug 7, 2023
@mikemrm mikemrm deleted the update-events branch August 7, 2023 15:53
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.

2 participants