-
Notifications
You must be signed in to change notification settings - Fork 3
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
API Changes #2
Comments
I still think that initializer is a bad idea. Namespacing is the cleanest way to do it.
|
The main issue I have with this, is the duplication of logic. think about TaskWorker; the only thing that is ORM related is: def fetch_model(identifier)
model_class.find_by(identifier_key => identifier)
end everything else, is pure logic which I don't want to duplicate. notice that the current task_worker_spec, doesn't directly tests anything that's really ORM related. so it should be fairly easy to refactor.
in most cases, an application uses a single ORM. and the default ORM is obvious to all. class UserTaskWorker
include Sidekiq::TaskWorker
sidekiq_orm :mongoid # override the default per worker
end again, I really think this will almost NEVER happen...
I agree. that's a good point; BTW, |
Then let author another gem sidekiq-orm and have sidekiq-activerecord, sidekiq-sequel and sidekiq-datamapper inherit the logic from it. |
I created an org and added you as owner. Let move this gem there and start implementing. WDYT ? |
sounds great. |
@seuros I renamed the repos to include |
Fine |
@yelled3 , what do you mean with meta-gem ? I don't see that with sidekiq-orm. We probably can use it to write test on it |
@seuros that's correct. I haven't added anything yet, but it should be exactly like rspec/rspec: https://github.com/rspec/rspec/blob/master/Gemfile#L5-L7 |
Topics at hand:
sidekiq_
prefix from options. see: https://github.com/yelled3/sidekiq-activerecord/pull/1#issuecomment-43726149@seuros did I forget anything?
I'm open to suggestions.
@mperham /cc
The text was updated successfully, but these errors were encountered: