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

Getting a warning and not working, please check the description, which I have mentioned in the logs for the same. #125

Open
gyandip-chauhan opened this issue Nov 20, 2023 · 0 comments

Comments

@gyandip-chauhan
Copy link

logs:

Started POST "/movies/1/like" for ::1 at 2023-11-20 16:33:52 +0530
Processing by MoviesController#like as TURBO_STREAM
Parameters: {"for_page"=>"index", "id"=>"1"}
User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["id", 18], ["LIMIT", 1]]
Movie Load (0.7ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
↳ app/controllers/movies_controller.rb:58:in set_movie' Redis#srem will always return an Integer in Redis 5.0.0. Use Redis#srem? instead.(called from: /home/pc/.rvm/gems/ruby-3.0.0/gems/recommendable-2.2.2/lib/recommendable/rater/liker.rb:38:in unlike')
Redis#srem will always return an Integer in Redis 5.0.0. Use Redis#srem? instead.(called from: /home/pc/.rvm/gems/ruby-3.0.0/gems/recommendable-2.2.2/lib/recommendable/rater/liker.rb:39:in `unlike')
Pipelining commands on a Redis instance is deprecated and will be removed in Redis 5.0.0.

redis.pipelined do
redis.get("key")
end

should be replaced by

redis.pipelined do |pipeline|
pipeline.get("key")
end

(called from /home/pc/.rvm/gems/ruby-3.0.0/gems/recommendable-2.2.2/lib/recommendable/helpers/calculations.rb:199:in `update_score_for'}
Redirected to http://localhost:3000/movies
Completed 302 Found in 18ms (ActiveRecord: 1.2ms | Allocations: 2299)

@gyandip-chauhan gyandip-chauhan changed the title Getting Warning for version Getting a warning and not working, please check the description, which I have mentioned in the logs for the same. Nov 21, 2023
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

No branches or pull requests

1 participant