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

SMQ-2605: Groups replication with groups events consumer & listing of things and channels #2639

Merged
merged 7 commits into from
Jan 20, 2025

Conversation

arvindh123
Copy link
Contributor

@arvindh123 arvindh123 commented Jan 8, 2025

What type of PR is this?

This is a feature because it adds the following functionality:

  • Add common library which replicas groups with help groups events
  • Listing of things

What does this do?

Which issue(s) does this PR fix/relate to?

Have you included tests for your changes?

Did you document any new/modified feature?

Notes

@arvindh123 arvindh123 force-pushed the consume_groups_events branch from ca260c1 to 7d8c494 Compare January 8, 2025 12:41
@@ -35,6 +35,9 @@ type Repository interface {
// RetrieveAll retrieves all clients.
RetrieveAll(ctx context.Context, pm Page) (ClientsPage, error)

// RetrieveUserThings retrieve all clients of a given user id.
RetrieveUserThings(ctx context.Context, domainID, userID string, pm Page) (ClientsPage, error)
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this be RetrieveUserClients ?


if err := g.Wait(); err != nil {
return ClientsPage{}, err
cp, err := svc.repo.RetrieveUserThings(ctx, session.DomainID, session.UserID, pm)
Copy link
Contributor

Choose a reason for hiding this comment

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

same here ? svc.repo.RetrieveUserClients

@arvindh123 arvindh123 changed the title SMQ-2605: Groups replication with groups events consumer & listing of things SMQ-2605: Groups replication with groups events consumer & listing of things and channels Jan 10, 2025
@arvindh123 arvindh123 force-pushed the consume_groups_events branch 10 times, most recently from cf2879d to 095e611 Compare January 13, 2025 14:32
Copy link

codecov bot commented Jan 13, 2025

Codecov Report

Attention: Patch coverage is 20.49530% with 931 lines in your changes missing coverage. Please review.

Project coverage is 40.38%. Comparing base (a8b12e4) to head (72309b1).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
clients/postgres/clients.go 10.92% 312 Missing and 6 partials ⚠️
channels/postgres/channels.go 12.21% 301 Missing and 8 partials ⚠️
clients/events/events.go 0.00% 37 Missing ⚠️
clients/api/http/decode.go 60.86% 19 Missing and 8 partials ⚠️
channels/events/events.go 0.00% 25 Missing ⚠️
channels/api/http/decode.go 62.50% 17 Missing and 7 partials ⚠️
channels/mocks/repository.go 0.00% 21 Missing ⚠️
clients/mocks/repository.go 0.00% 21 Missing ⚠️
clients/middleware/authorization.go 0.00% 20 Missing ⚠️
clients/middleware/logging.go 0.00% 20 Missing ⚠️
... and 19 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2639      +/-   ##
==========================================
- Coverage   45.24%   40.38%   -4.87%     
==========================================
  Files         346      230     -116     
  Lines       44515    34148   -10367     
==========================================
- Hits        20142    13790    -6352     
+ Misses      22180    19297    -2883     
+ Partials     2193     1061    -1132     

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

@dborovcanin
Copy link
Collaborator

@arvindh123 Please rebase.

@arvindh123 arvindh123 force-pushed the consume_groups_events branch from d5f1d88 to 577b0a1 Compare January 17, 2025 16:14
@arvindh123 arvindh123 requested a review from a team as a code owner January 17, 2025 16:14
@arvindh123 arvindh123 force-pushed the consume_groups_events branch from 577b0a1 to 11c92fe Compare January 17, 2025 16:15
@dborovcanin
Copy link
Collaborator

@arvindh123 Please address linter remarks.

@arvindh123 arvindh123 force-pushed the consume_groups_events branch from 11c92fe to 2b2c4bb Compare January 17, 2025 16:47
@dborovcanin dborovcanin force-pushed the consume_groups_events branch from 2b2c4bb to 9c958e8 Compare January 20, 2025 08:13
Signed-off-by: Arvindh <arvindh91@gmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
Signed-off-by: Arvindh <arvindh91@gmail.com>
@dborovcanin dborovcanin merged commit 88d583b into absmach:main Jan 20, 2025
6 of 9 checks passed
@dborovcanin dborovcanin deleted the consume_groups_events branch January 20, 2025 11:36
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