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

httptransport: notification content type, etc #1599

Merged
merged 3 commits into from
Jul 22, 2022

Conversation

hdonnay
Copy link
Member

@hdonnay hdonnay commented Jul 7, 2022

Updated/fixed the notification handler, then updated the discovery endpoint for good measure.

@hdonnay hdonnay requested a review from a team as a code owner July 7, 2022 19:02
@hdonnay hdonnay requested review from crozzy and removed request for a team July 7, 2022 19:02
@hdonnay hdonnay force-pushed the bug/notification-content-type branch from d4dcbf2 to e2e8b52 Compare July 7, 2022 19:41
crozzy
crozzy previously approved these changes Jul 22, 2022
@hdonnay hdonnay force-pushed the bug/notification-content-type branch from e2e8b52 to ad23de1 Compare July 22, 2022 19:30
hdonnay added 3 commits July 22, 2022 14:50
This updates the notification endpoints to be more in-line with the
new all-in-one, interally instrumented handler style. It also includes
a change for making the instrumentation code less verbose.

Closes: quay#1523
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
This change switches to using the internal `apiError` function and
uses the "embed" package instead of generated code.

Signed-off-by: Hank Donnay <hdonnay@redhat.com>
@hdonnay hdonnay force-pushed the bug/notification-content-type branch from ad23de1 to f34148a Compare July 22, 2022 19:50
@hdonnay
Copy link
Member Author

hdonnay commented Jul 22, 2022

clean rebase and tests

@hdonnay hdonnay merged commit f34148a into quay:main Jul 22, 2022
@hdonnay hdonnay deleted the bug/notification-content-type branch July 22, 2022 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[notifier] api/v1/notification returns contentType: text/plain when application/json is expected
2 participants