-
Notifications
You must be signed in to change notification settings - Fork 672
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
Conversation
ca260c1
to
7d8c494
Compare
clients/clients.go
Outdated
@@ -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) |
There was a problem hiding this comment.
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
?
clients/service.go
Outdated
|
||
if err := g.Wait(); err != nil { | ||
return ClientsPage{}, err | ||
cp, err := svc.repo.RetrieveUserThings(ctx, session.DomainID, session.UserID, pm) |
There was a problem hiding this comment.
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
cf2879d
to
095e611
Compare
Codecov ReportAttention: Patch coverage is
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. |
@arvindh123 Please rebase. |
d5f1d88
to
577b0a1
Compare
577b0a1
to
11c92fe
Compare
@arvindh123 Please address linter remarks. |
11c92fe
to
2b2c4bb
Compare
2b2c4bb
to
9c958e8
Compare
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>
9c958e8
to
72309b1
Compare
What type of PR is this?
This is a feature because it adds the following functionality:
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