Sha256: 0a3c4687e59a17555d9331c12d5c4dd0be0180e329cf16306f96a411e536e575

Contents?: true

Size: 834 Bytes

Versions: 139

Compression:

Stored size: 834 Bytes

Contents

module Eco
  module API
    class MicroCases
      # When trying to find an `person` with given a source `entry`, it states if such a search should be `strict` or `soft`.
      # @note
      #   - `strict` searches ignore the email when the source `entry` has an `external_id` specified.
      #   - see related command line options `-search-strict` and `-search-soft`
      # @param options [Hash] the options.
      # @return [Boolean] `true` if the search should be `strict` only, and `false` otherwise.
      def strict_search?(options)
        strict_config  = session.config.people.strict_search?
        strict_option  = options.dig(:search, :strict)
        soft_option    = options.dig(:search, :soft) && !strict_option
        (strict_config || strict_option) && !soft_option
      end

    end
  end
end

Version data entries

139 entries across 139 versions & 1 rubygems

Version Path
eco-helpers-2.0.47 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.46 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.45 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.44 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.43 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.42 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.41 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.40 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.39 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.38 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.37 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.36 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.35 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.34 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.33 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.32 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.31 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.30 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.29 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.0.28 lib/eco/api/microcases/strict_search.rb