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

Implemented eventarc event publishing API #1617

Merged
merged 21 commits into from Apr 13, 2022
Merged

Implemented eventarc event publishing API #1617

merged 21 commits into from Apr 13, 2022

Conversation

pavelgj
Copy link
Contributor

@pavelgj pavelgj commented Mar 25, 2022

go/gnqghm1gqpp6

@pavelgj pavelgj changed the base branch from master to eventarc March 29, 2022 20:54
Copy link
Contributor

@egilmorez egilmorez left a comment

Choose a reason for hiding this comment

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

Some style things to look at in the comments. Thanks!

@@ -0,0 +1,25 @@

/**
* A CloudEvent version.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be backticked just like Eventarc in firebase-namespace.ts?

Or is CloudEvent just a camel-cased product name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, I think CloudEvent here is, not a product name, but the spec... don't think it needs the backticks.

src/eventarc/cloudevent.ts Show resolved Hide resolved
src/eventarc/eventarc-namespace.ts Outdated Show resolved Hide resolved
src/eventarc/eventarc.ts Outdated Show resolved Hide resolved
src/eventarc/eventarc.ts Outdated Show resolved Hide resolved
src/eventarc/eventarc.ts Outdated Show resolved Hide resolved
src/eventarc/eventarc.ts Outdated Show resolved Hide resolved
src/eventarc/index.ts Outdated Show resolved Hide resolved
Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

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

Thank you @pavelgj !
Didn't dive into tests, yet. Added a few comments, mostly style changes and suggestions.

src/app/firebase-namespace.ts Outdated Show resolved Hide resolved
src/eventarc/cloudevent.ts Show resolved Hide resolved
src/eventarc/cloudevent.ts Show resolved Hide resolved
src/eventarc/eventarc-namespace.ts Outdated Show resolved Hide resolved
src/eventarc/eventarc-namespace.ts Outdated Show resolved Hide resolved
src/eventarc/eventarc.ts Outdated Show resolved Hide resolved
src/eventarc/eventarc.ts Outdated Show resolved Hide resolved
src/eventarc/eventarc.ts Outdated Show resolved Hide resolved
src/eventarc/index.ts Outdated Show resolved Hide resolved
src/eventarc/index.ts Show resolved Hide resolved
Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

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

Thank you for addressing the PR feedback @pavelgj !
Looks pretty good! Left a few more comments.

src/eventarc/eventarc-client-internal.ts Outdated Show resolved Hide resolved
src/eventarc/eventarc-client-internal.ts Outdated Show resolved Hide resolved
src/eventarc/eventarc-client-internal.ts Outdated Show resolved Hide resolved
src/eventarc/eventarc-client-internal.ts Show resolved Hide resolved
Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

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

Thank you @pavelgj. LGTM!
Do we plan to add any integration tests later?

etc/firebase-admin.eventarc.api.md Show resolved Hide resolved
src/eventarc/eventarc.ts Show resolved Hide resolved
src/eventarc/eventarc.ts Show resolved Hide resolved
test/unit/eventarc/eventarc-utils.spec.ts Outdated Show resolved Hide resolved
test/unit/eventarc/eventarc.spec.ts Outdated Show resolved Hide resolved
@pavelgj
Copy link
Contributor Author

pavelgj commented Apr 13, 2022

Yes, I will work on the integration tests.

@pavelgj pavelgj merged commit edca347 into eventarc Apr 13, 2022
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

3 participants