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

Add notifications api #531

Merged
merged 7 commits into from
Jan 22, 2025
Merged

Add notifications api #531

merged 7 commits into from
Jan 22, 2025

Conversation

avillega
Copy link
Contributor

No description provided.

@avillega avillega requested a review from dfarr January 15, 2025 19:02
@avillega
Copy link
Contributor Author

This is not fully ready yet, but most of the implementation is done, still need to write all the tests and make sure this fully works, but would be nice to get early feedback.

Copy link

codecov bot commented Jan 15, 2025

Codecov Report

Attention: Patch coverage is 24.00722% with 421 lines in your changes missing coverage. Please review.

Project coverage is 54.94%. Comparing base (89c1a45) to head (13485da).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/app/coroutines/createNotify.go 0.00% 116 Missing ⚠️
cmd/notify/create.go 0.00% 62 Missing ⚠️
internal/app/coroutines/enqueueTasks.go 12.67% 62 Missing ⚠️
internal/app/subsystems/api/grpc/pb/notify.pb.go 44.44% 59 Missing and 1 partial ⚠️
test/dst/validator.go 0.00% 42 Missing ⚠️
cmd/notify/notify.go 0.00% 28 Missing ⚠️
test/dst/generator.go 0.00% 16 Missing ⚠️
...ernal/app/subsystems/api/grpc/pb/notify_grpc.pb.go 66.66% 10 Missing and 3 partials ⚠️
internal/app/subsystems/api/http/notify.go 67.74% 8 Missing and 2 partials ⚠️
internal/kernel/t_api/request.go 0.00% 4 Missing ⚠️
... and 4 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #531      +/-   ##
==========================================
- Coverage   56.29%   54.94%   -1.35%     
==========================================
  Files         122      129       +7     
  Lines       13364    13906     +542     
==========================================
+ Hits         7523     7641     +118     
- Misses       5389     5809     +420     
- Partials      452      456       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dfarr
Copy link
Member

dfarr commented Jan 15, 2025

This looks great!

One thing that I'm not sure about atm is how many times we should (re)attempt an enqueue for a notify message? Our default logic is to retry until the timeout time (which is set to the same time as the promise timeout), does this make sense for notify? It's certainly the easiest to implement because we can just leave the logic as is.

@avillega
Copy link
Contributor Author

avillega commented Jan 15, 2025 via email

@dfarr
Copy link
Member

dfarr commented Jan 15, 2025 via email

@flossypurse flossypurse mentioned this pull request Jan 20, 2025
@flossypurse flossypurse linked an issue Jan 20, 2025 that may be closed by this pull request
@avillega avillega force-pushed the avillega/notifications branch from b7532e5 to 39a9ce1 Compare January 21, 2025 20:15
@avillega avillega marked this pull request as ready for review January 21, 2025 22:48
Copy link
Member

@dfarr dfarr left a comment

Choose a reason for hiding this comment

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

Damn man, even the cli is here!

@avillega avillega merged commit de5339e into main Jan 22, 2025
50 of 52 checks passed
@avillega avillega deleted the avillega/notifications branch January 22, 2025 01:50
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.

Notify message
2 participants