chewy icon indicating copy to clipboard operation
chewy copied to clipboard

can not use import to delete missings source objects

Open lyb124553153 opened this issue 11 months ago • 0 comments

Be clear, concise and precise in your description of the problem. Open an issue with a descriptive title and a summary in grammatically correct, complete sentences.

Use the template below when reporting bugs. Please, make sure that you're running the latest stable Chewy and that the problem you're reporting hasn't been reported (and potentially fixed) already.

Before filing the ticket you should replace all text above the horizontal rule with your own words.


Expected behavior

According to this document documents with missing source object ids will be # deleted from index:

 MessagesIndex.import [1] # inactive users will be deleted from index

Actual behavior

irb(main):001:0> MessagesIndex.import [1]
Traceback (most recent call last):
        1: from (irb):1
ArgumentError (wrong number of arguments (given 1, expected 0))

Steps to reproduce the problem

class MessagesIndex  < Chewy::Index
end 
MessagesIndex.import [1]

Version Information

Share here essential version information such as:

  • Chewy version 7.5.1
  • Elasticsearch version
  • Ruby version 2.6.3
  • Rails version 6.0

lyb124553153 avatar Feb 27 '24 17:02 lyb124553153