Question: Move session trim into service/object
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by reading the session-trimming task in lib/tasks/database.rake, especially lines 14-22, to understand the existing entry point and behavior. Determine whether that logic can be exposed for programmatic use without invoking the rake task, with completion demonstrated by calling it from a Solid Queue recurring job.
Written by the indexing model from the issue text.
Description
Hi 👋
Thanks a lot for maintaining this gem! ❤️
I have a question:
Would it make sense to move the logic for the session trim (db:sessions:trim) into a service/object, so it can also be used programmatically without invoking the rake task?
More specifically: I'd like to trim the sessions using a solid_queue recurring job, but solid_queue doesn't support (?) rake tasks to be invoked.
- Dominant language
- Ruby
- Stars
- 603
- Forks
- 192
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rails/activerecord-session_store
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
rails/activerecord-session_store#236 · 7 comments · 12 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
rails/activerecord-session_store#197 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
rails/activerecord-session_store#186 · 1 comment · 6 reactions ·
All issues in rails/activerecord-session_store
Similar issues
-
バグ
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
voxpupuli/puppet-epel#186 · 1 comment ·
-
external_created_at is no longer used for the message timestamp since the new message UI (v4.4.0) OpenBug Frontend
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
TheOdinProject/curriculum#31402 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100