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

NOISSUE - Propagate Context #1842

Merged
merged 3 commits into from
Jul 6, 2023
Merged

NOISSUE - Propagate Context #1842

merged 3 commits into from
Jul 6, 2023

Conversation

rodneyosodo
Copy link
Member

What does this do?

Propagate context throughout mainflux by trying to use context.Background as minimum as possible

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

No issue

List any changes that modify/break current functionality

No changes that modify the functionality of the system

Have you included tests for your changes?

No

Did you document any new/modified functionality?

No

Notes

Should we add context to readers and consumers ?

@rodneyosodo rodneyosodo requested a review from a team as a code owner July 4, 2023 09:19
@codecov
Copy link

codecov bot commented Jul 4, 2023

Codecov Report

Merging #1842 (0ca2617) into master (60e9d17) will decrease coverage by 0.01%.
The diff coverage is 72.00%.

@@            Coverage Diff             @@
##           master    #1842      +/-   ##
==========================================
- Coverage   65.69%   65.68%   -0.01%     
==========================================
  Files         116      116              
  Lines        9415     9413       -2     
==========================================
- Hits         6185     6183       -2     
  Misses       2572     2572              
  Partials      658      658              
Impacted Files Coverage Δ
mqtt/handler.go 92.12% <0.00%> (ø)
twins/mongodb/states.go 58.44% <0.00%> (ø)
certs/service.go 83.13% <50.00%> (ø)
twins/service.go 71.69% <66.66%> (-0.27%) ⬇️
twins/mongodb/twins.go 81.19% <80.00%> (ø)
bootstrap/service.go 80.45% <100.00%> (ø)
pkg/messaging/rabbitmq/publisher.go 68.18% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

return err
}
_, err = svc.IssueToken(context.Background(), c.AdminEmail, c.AdminPassword)
_, err = svc.IssueToken(ctx, c.AdminEmail, c.AdminPassword)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Inline.

Copy link
Contributor

@drasko drasko left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
@drasko drasko merged commit 2f5e313 into absmach:master Jul 6, 2023
WashingtonKK pushed a commit to WashingtonKK/magistrala that referenced this pull request Jul 7, 2023
* Initial Commit: Propagate Context

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>

* Make IssueToken Inline

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>

---------

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
WashingtonKK pushed a commit to WashingtonKK/magistrala that referenced this pull request Jul 12, 2023
* Initial Commit: Propagate Context

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>

* Make IssueToken Inline

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>

---------

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
WashingtonKK pushed a commit to WashingtonKK/magistrala that referenced this pull request Jul 12, 2023
* Initial Commit: Propagate Context

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>

* Make IssueToken Inline

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>

---------

Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
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