Skip to content

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

@gyandip-chauhan

Description

@gyandip-chauhan

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions