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 - Switch to Consumers interface #1316

Merged
merged 9 commits into from
Jan 11, 2021
Merged

Conversation

dborovcanin
Copy link
Collaborator

What does this do?

Replace Writer interface with Consumer.

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

There is no such issue.

List any changes that modify/break current functionality

There are no such changes. This pull request will be followed by pull requests that resolve #1311 and absmach/magistrala#13, which will be just another Mainflux Consumer alongside Mainflux Writers.

Have you included tests for your changes?

No.

Did you document any new/modified functionality?

No.

@dborovcanin dborovcanin requested a review from a team as a code owner January 5, 2021 17:34
@dborovcanin dborovcanin force-pushed the consumers branch 2 times, most recently from 792e57a to c2c5853 Compare January 5, 2021 17:38
@codecov-io
Copy link

codecov-io commented Jan 5, 2021

Codecov Report

Merging #1316 (1cbbc65) into master (3eca692) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    absmach/supermq#1316   +/-   ##
=======================================
  Coverage   59.79%   59.79%           
=======================================
  Files         113      113           
  Lines        8797     8797           
=======================================
  Hits         5260     5260           
  Misses       3080     3080           
  Partials      457      457           
Impacted Files Coverage Δ
consumers/writers/cassandra/consumer.go 34.14% <ø> (ø)
consumers/writers/cassandra/init.go 66.66% <ø> (ø)
consumers/writers/influxdb/consumer.go 43.24% <ø> (ø)
consumers/writers/influxdb/fields.go 64.70% <ø> (ø)
consumers/writers/influxdb/tags.go 55.55% <ø> (ø)
consumers/writers/mongodb/consumer.go 43.47% <ø> (ø)
consumers/writers/postgres/consumer.go 16.34% <ø> (ø)
consumers/writers/postgres/init.go 88.88% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3eca692...1cbbc65. Read the comment docs.

@@ -0,0 +1,16 @@
# Writers

Writers provide an implementation of various `message writers`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this now rather implementation of Consumer interface?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would add a README for consumers and keep this one

consumers/consumer.go Outdated Show resolved Hide resolved
consumers/messages.go Outdated Show resolved Hide resolved
Signed-off-by: dusanb94 <[email protected]>
Signed-off-by: dusanb94 <[email protected]>
Signed-off-by: dusanb94 <[email protected]>
Signed-off-by: dusanb94 <[email protected]>
Copy link
Contributor

@manuio manuio left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@darkodraskovic darkodraskovic left a comment

Choose a reason for hiding this comment

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

LGTM

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

@drasko drasko merged commit 6b7dc54 into absmach:master Jan 11, 2021
fbugarski pushed a commit to fbugarski/mainflux that referenced this pull request Mar 8, 2021
* Replace Writer with Consumer

Signed-off-by: dusanb94 <[email protected]>

* Add Notifications package

Signed-off-by: dusanb94 <[email protected]>

* Update Consumer Start

Signed-off-by: dusanb94 <[email protected]>

* Fix Readers

Signed-off-by: dusanb94 <[email protected]>

* Fix Consumer naming

Signed-off-by: dusanb94 <[email protected]>

* Add repo to Notify

Signed-off-by: dusanb94 <[email protected]>

* Remove notify

Signed-off-by: dusanb94 <[email protected]>

* Rename consumer field in middlewares

Signed-off-by: dusanb94 <[email protected]>

* Fix remarks and add Readme

Signed-off-by: dusanb94 <[email protected]>
@dborovcanin dborovcanin deleted the consumers branch June 13, 2022 10:21
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.

Add Notifications service
5 participants