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

feat: store errors of courier message #2914

Merged
merged 37 commits into from
Dec 6, 2022
Merged

Conversation

jonas-jonas
Copy link
Member

@jonas-jonas jonas-jonas commented Nov 28, 2022

BREAKING CHANGE: The /admin/courier/messages endpoint now uses keysetpagination instead.

Related issue(s)

Checklist

  • I have read the contributing guidelines.
  • I have referenced an issue containing the design document if my change
    introduces a new feature.
  • I am following the
    contributing code guidelines.
  • I have read the security policy.
  • I confirm that this pull request does not address a security
    vulnerability. If this pull request addresses a security vulnerability, I
    confirm that I got the approval (please contact
    [email protected]) from the maintainers to push
    the changes.
  • I have added tests that prove my fix is effective or that my feature
    works.
  • I have added or changed the documentation.

Further Comments

@jonas-jonas jonas-jonas marked this pull request as draft November 29, 2022 08:41
Copy link
Member

@aeneasr aeneasr left a comment

Choose a reason for hiding this comment

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

Looking pretty good already! I think that we will need to change this medium-term to an event-based stream on top of opentelemetry, but this is a good get-it-done patch :)

@jonas-jonas jonas-jonas marked this pull request as ready for review November 30, 2022 18:02
@jonas-jonas
Copy link
Member Author

@aeneasr this is now ready for round two, but we need ory/x#640 to be merged before we merge this, just FYI.

@codecov
Copy link

codecov bot commented Nov 30, 2022

Codecov Report

Merging #2914 (e1ce94f) into master (59c30b6) will decrease coverage by 0.02%.
The diff coverage is 81.02%.

@@            Coverage Diff             @@
##           master    #2914      +/-   ##
==========================================
- Coverage   76.20%   76.17%   -0.03%     
==========================================
  Files         308      309       +1     
  Lines       18943    19031      +88     
==========================================
+ Hits        14435    14497      +62     
- Misses       3391     3408      +17     
- Partials     1117     1126       +9     
Impacted Files Coverage Δ
courier/courier_dispatcher.go 45.58% <27.27%> (-8.65%) ⬇️
courier/smtp.go 70.45% <66.66%> (+0.22%) ⬆️
persistence/sql/persister_courier.go 84.09% <82.05%> (-2.78%) ⬇️
courier/handler.go 90.00% <92.59%> (-1.90%) ⬇️
courier/message.go 69.56% <100.00%> (+2.89%) ⬆️
courier/message_dispatch.go 100.00% <100.00%> (ø)
courier/test/persistence.go 100.00% <100.00%> (ø)
persistence/sql/persister_session.go 83.18% <100.00%> (ø)
session/handler.go 67.94% <100.00%> (ø)
session/session.go 77.34% <100.00%> (+0.35%) ⬆️
... and 5 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@jonas-jonas jonas-jonas self-assigned this Dec 2, 2022
Copy link
Member

@aeneasr aeneasr left a comment

Choose a reason for hiding this comment

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

Awesome!

courier/handler.go Outdated Show resolved Hide resolved
courier/handler.go Show resolved Hide resolved
driver/config/config_test.go Show resolved Hide resolved
@jonas-jonas
Copy link
Member Author

@aeneasr since Kratos was released in the meantime, this is now a breaking change. I added the note to the PR description, FYI.

@aeneasr
Copy link
Member

aeneasr commented Dec 6, 2022

TY

@aeneasr aeneasr merged commit fc7aa86 into master Dec 6, 2022
@aeneasr aeneasr deleted the feat/errorsInCourierMessages branch December 6, 2022 10:19
CNLHC pushed a commit to seekthought/kratos that referenced this pull request May 16, 2023
BREAKING CHANGE: The `/admin/courier/messages` endpoint now uses `keysetpagination` instead.
peturgeorgievv pushed a commit to senteca/kratos-fork that referenced this pull request Jun 30, 2023
BREAKING CHANGE: The `/admin/courier/messages` endpoint now uses `keysetpagination` instead.
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