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

Switch redis cache and brainzutils.cache (GCI17) #335

Closed
wants to merge 11 commits into from

Conversation

mikhailyumanov
Copy link

Summary

  • This is a…
    • Bug fix
    • Feature addition
    • Refactoring
    • Minor / simple change (like a typo)
    • Other
  • Describe this change in 1-2 sentences:

Problem

  • JIRA ticket (optional):

Solution

Action

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

It would be useful to squash these commits into one commit, or into meaningful chunks as needed. To do this, run an interactive rebase from the head of metabrainz/master - git rebase -i 3272540 and see the help text that shows up. You'll have to git force --push to this branch after that for this to work.

Copy link
Collaborator

@paramsingh paramsingh left a comment

Choose a reason for hiding this comment

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

The build seems to be failing due to a syntax error, please take a look and fix until tests pass. Thanks!

# Cache
if 'REDIS_HOST' in app.config and\
'REDIS_PORT' in app.config and\
'REDIS_NAMESPACE' in app.config and:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Problem seems to be the extra and here

@ghost
Copy link

ghost commented Jan 14, 2018

Do keep in mind git commit message guidelines as well. 0581441's commit message would be better stated as Remove excess 'and'.

@mikhailyumanov
Copy link
Author

Okay, I will keep it in mind, thank you

Add key "REDIS_NAMESPACE" with value "LB", LB = ListenBrainz
Change test by setting data into brainzutils.cache instead of redis to test redis_listenstore's function get_playing_now() where used brainzutils.cache.get() instead of self.redis.get()
@paramsingh
Copy link
Collaborator

Closing this in favor of #333 for now.

@paramsingh paramsingh closed this Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants