Sha256: 5036cddebcc3b8204be906b9b7f4b102b32f687045f738c87b79255598c9688a

Contents?: true

Size: 603 Bytes

Versions: 58

Compression:

Stored size: 603 Bytes

Contents

# frozen_string_literal: true

module Multiwoven
  module Integrations::Core
    module Fullrefresher
      def write(sync_config, records, action = "destination_insert")
        if sync_config && sync_config.sync_mode == "full_refresh" && !@full_refreshed
          response = clear_all_records(sync_config)
          return response unless response &&
                                 response.control.status == Multiwoven::Integrations::Protocol::ConnectionStatusType["succeeded"]

          @full_refreshed = true
        end

        super(sync_config, records, action)
      end
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
multiwoven-integrations-0.15.6 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.15.5 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.15.4 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.15.3 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.15.2 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.15.1 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.15.0 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.14.2 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.14.1 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.14.0 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.13.2 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.13.1 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.13.0 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.12.0 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.11.6 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.11.5 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.11.4 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.11.3 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.11.2 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.11.0 lib/multiwoven/integrations/core/fullrefresher.rb