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 - Refactor Redis URI #1898

Merged
merged 2 commits into from
Oct 23, 2023
Merged

Conversation

rodneyosodo
Copy link
Member

@rodneyosodo rodneyosodo commented Aug 29, 2023

Signed-off-by: Rodney Osodo socials@rodneyosodo.com

What does this do?

Use one environment variable which is redis URI to get information about the username, password, host, port and database rather than separate environment variables

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

No issue

List any changes that modify/break current functionality

None - Move from 3 config variables for redis to one

Have you included tests for your changes?

No

Did you document any new/modified functionality?

Yes

Notes

N/A

@rodneyosodo rodneyosodo changed the title NOISSUE - Add Cache Package NOISSUE - Refactor Redis URI Sep 18, 2023
@codecov
Copy link

codecov bot commented Sep 18, 2023

Codecov Report

Merging #1898 (e458830) into master (28f4965) will increase coverage by 0.11%.
Report is 29 commits behind head on master.
The diff coverage is 65.13%.

❗ Current head e458830 differs from pull request most recent head 71c6711. Consider uploading reports for the commit 71c6711 to get more accurate results

@@            Coverage Diff             @@
##           master    #1898      +/-   ##
==========================================
+ Coverage   67.14%   67.25%   +0.11%     
==========================================
  Files         120      126       +6     
  Lines        9145     9436     +291     
==========================================
+ Hits         6140     6346     +206     
- Misses       2368     2431      +63     
- Partials      637      659      +22     
Files Coverage Δ
bootstrap/events/producer/streams.go 78.94% <100.00%> (ø)
consumers/writers/postgres/init.go 100.00% <100.00%> (ø)
pkg/events/redis/subscriber.go 78.72% <ø> (+12.76%) ⬆️
ws/adapter.go 89.28% <100.00%> (+1.53%) ⬆️
pkg/events/redis/publisher.go 92.45% <83.33%> (+36.68%) ⬆️
twins/events/streams.go 0.00% <0.00%> (ø)
consumers/writers/mongodb/consumer.go 76.47% <66.66%> (-2.84%) ⬇️
mqtt/handler.go 91.93% <71.42%> (-0.07%) ⬇️
pkg/messaging/mqtt/pubsub.go 74.76% <90.90%> (+1.13%) ⬆️
pkg/messaging/rabbitmq/publisher.go 68.08% <72.72%> (-0.10%) ⬇️
... and 10 more

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

@rodneyosodo rodneyosodo force-pushed the noissue-seperate-cache branch 2 times, most recently from e215cf6 to a84bb0d Compare October 23, 2023 10:06
@rodneyosodo rodneyosodo marked this pull request as ready for review October 23, 2023 10:09
@rodneyosodo rodneyosodo requested a review from a team as a code owner October 23, 2023 10:09
@rodneyosodo rodneyosodo force-pushed the noissue-seperate-cache branch 3 times, most recently from a9e483d to 9ad7df1 Compare October 23, 2023 13:40
rodneyosodo and others added 2 commits October 23, 2023 16:24
Signed-off-by: rodneyosodo <blackd0t@protonmail.com>
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
Use a single Redis URI to connect to Redis where the URI contains
host, port, database and possibly username and password.

This is to simplify environment variable configuration.

Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
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 059b954 into absmach:master Oct 23, 2023
1 of 2 checks passed
@rodneyosodo rodneyosodo deleted the noissue-seperate-cache branch October 22, 2024 08:14
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