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.10.1 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.10.0 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.9.2 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.9.1 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.9.0 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.8.6 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.8.5 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.8.4 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.8.3 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.8.2 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.8.1 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.8.0 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.7.9 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.7.8 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.7.7 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.7.6 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.7.5 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.7.4 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.7.3 lib/multiwoven/integrations/core/fullrefresher.rb
multiwoven-integrations-0.7.2 lib/multiwoven/integrations/core/fullrefresher.rb