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.7.24 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.7.23 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.7.22 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.7.21 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.7.20 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.7.19 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.7.18 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.7.17 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.7.16 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.7.15 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.7.14 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.7.13 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.7.12 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.7.4 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.7.2 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.7.1 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.7.0 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.6.4 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.6.3 lib/eco/api/microcases/strict_search.rb
eco-helpers-2.6.2 lib/eco/api/microcases/strict_search.rb