lib/gooddata/models/project.rb
# Helper for getting rid of all data in the project
#
# @option options [Boolean] :force has to be added otherwise the operation is not performed
# @return [Array] Result of executing MAQLs
Helper for getting rid of all data in the project
Helper for getting rid of all data in the project
def delete_all_data(options = {})
      return false unless options[:force]
      begin
        datasets.reject(&:date_dimension?).pmap(&:delete_data)
      rescue MaqlExecutionError => e
        fail e unless GoodData::Helpers.interpolate_error_messages(e.data['wTaskStatus']['messages']) == ["Internal error [handle_exception, hide_internal]."]
      end
    end
def delete_all_data ( options = { } ) return false unless options [ :force ] begin datasets . reject ( & :date_dimension? ) . pmap ( & :delete_data ) rescue MaqlExecutionError => e fail e unless GoodData :: Helpers . interpolate_error_messages ( e . data [ 'wTaskStatus' ] [ 'messages' ] ) == [ "Internal error [handle_exception, hide_internal]." ] end end
Helper for getting rid of all data in the project
Helper for getting rid of all data in the project
# This is here so that we do not throw out exceptions on synchornizing date dimensions # Currently there is no reliable way how to tell it is a date dimension
Result of executing MAQLs
Result of executing MAQLs
Array
options
:force has to be added otherwise the operation is not performed
: force has to be added otherwise the operation is not performed