Alexander S.

Results 60 comments of Alexander S.

@ldlsegovia yep but there's no alternative for collections it seems.

Hi, yes it's the JSON:API adapter. I think `if: -> (serializer) { serializer.scope.admin? }` might work, thank you. What I don't like about this is that I need to define...

Whoops, I tried `include_data: false` as a parameter which didn't work, that's why I missed it. But I don't seem to have enough context within a block to determine whether...

Thank you for the help, indeed the things you mentioned can solve the problem, I am just looking for a more convenient way for this. You also understood my idea...

I think I've found an answer – when we open `Public::ProfilesController` we'll end up with `Public::Public::ProfileSerializer` name... Not sure how to work around this yet. Perhaps instead of demodulizing, we...

Indeed it will, but here I am talking about the current lookup chain implementation and its unexpected behavior. Currently, there's a problem with namespaces when using `BY_PARENT_SERIALIZER` proc, which shows...

Hi, any chance this will be merged? We have a large cluster and need an ability to restart the service on config change when new servers added/removed.

This is what is queued, when I saving the site: ``` ruby #102, "record_class_name"=>"Profile", "lock"=>nil, "priority"=>0, "attempts"=>0, "is_delete"=>false, "run_at"=>2012-03-22 14:31:08 UTC}>, #BSON::ObjectId('4f6b37acd6194c5431000005'), "record_id"=>103, "record_class_name"=>"Site", "lock"=>nil, "priority"=>0, "attempts"=>0, "is_delete"=>false, "run_at"=>2012-03-22 14:31:08...

Config: ``` ruby unless Rails.env.test? Sunspot::IndexQueue::Entry.implementation = :mongo Sunspot::IndexQueue::Entry::MongoImpl.connection = 'localhost' Sunspot::IndexQueue::Entry::MongoImpl.database_name = 'crm_production' session = Sunspot::Session.new { |config| config.solr.url = Settings.solr.url } queue = Sunspot::IndexQueue.new(:session => session) Sunspot.session =...

``` Profile.remove_all_from_index! Profile.search.results.count => 0 Profile.count => 103 Site.count => 103 Site.all.map(&:save) Profile.search { |q| q.paginate(:page => 1, :per_page => 100) }.results.count => 23 # this number is ranom and...