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

Log confirm messages #44

Merged
merged 2 commits into from
Jul 24, 2024
Merged

Log confirm messages #44

merged 2 commits into from
Jul 24, 2024

Conversation

andrbo
Copy link
Contributor

@andrbo andrbo commented Apr 10, 2024

Aims to solve #3 , by logging messages from the confirm-topic .
This pull request will add loggin of the identifier and path from the message.

Copy link
Contributor

@trym-b trym-b left a comment

Choose a reason for hiding this comment

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

First commit looks good.

Added a few questions for the second commit

internal/verify/confirm/confirm.go Outdated Show resolved Hide resolved
internal/verify/confirm/confirm.go Outdated Show resolved Hide resolved
internal/verify/confirm/confirm.go Outdated Show resolved Hide resolved
internal/verify/confirm/confirm_test.go Outdated Show resolved Hide resolved
@andrbo andrbo force-pushed the feat/log_confirm_messages branch 2 times, most recently from 2b169c4 to 7fa66ce Compare April 19, 2024 07:29
@trym-b
Copy link
Contributor

trym-b commented Apr 23, 2024

Looks like you have a few CI errors, not sure if you have seen them or not:
image

I'll wait with the next round of review until those errors have been fixed, sounds good @andrbo ?

cmd/verify/reject/reject.go Outdated Show resolved Hide resolved
cmd/verify/confirm/confirm.go Show resolved Hide resolved
cmd/verify/confirm/confirm.go Outdated Show resolved Hide resolved
internal/verify/reject/reject.go Outdated Show resolved Hide resolved
internal/verify/reject/reject.go Outdated Show resolved Hide resolved
internal/verify/reject/reject.go Show resolved Hide resolved
internal/dps/read.go Outdated Show resolved Hide resolved
internal/dps/read.go Outdated Show resolved Hide resolved
@andrbo andrbo force-pushed the feat/log_confirm_messages branch from c648c08 to dfdd078 Compare May 8, 2024 14:51
Copy link
Contributor

@trym-b trym-b left a comment

Choose a reason for hiding this comment

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

Consider one final time if you want to move the context and reader into the implementation function

@andrbo andrbo force-pushed the feat/log_confirm_messages branch from dfdd078 to d4ab454 Compare May 15, 2024 07:21
As both verify reject/confirm is similar,
a refactor has been made to allow for sharing of code used by both.

- Setup of the kafka reader been moved to the cmd argument parsing, to
  simplify function calls down the line, and hopefully making it easier to
  mock in tests.

- Changed the groupID in the kafka reader config to separate between
  verify confirm and verify reject

- Now supplying context to the read functions, for a graceful
  shutdown when running i within a container.
Heavily inspired by the verify reject command
this command now prints the messages from
confirm-topic.
@maeb maeb force-pushed the feat/log_confirm_messages branch from 3c16a01 to 3a4a4a4 Compare July 24, 2024 10:09
@maeb maeb merged commit 6dfdeed into main Jul 24, 2024
4 checks passed
@maeb maeb deleted the feat/log_confirm_messages branch July 24, 2024 10:34
@maeb maeb mentioned this pull request Jul 24, 2024
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.

3 participants