Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>
@select ||= model_class.selectable_attributes - ["manifest_text", "unsigned_manifest_text"]
end
end
-
- def load_filters_param
- super
- return if !params[:include_old_versions]
- @filters = @filters.map do |col, operator, operand|
- # Replace uuid filters when including past versions
- if col == 'uuid'
- ['current_version_uuid', operator, operand]
- else
- [col, operator, operand]
- end
- end
- end
end
test 'can get collection with past versions' do
authorize_with :active
get :index, {
- filters: [['uuid','=',collections(:collection_owned_by_active).uuid]],
+ filters: [['current_version_uuid','=',collections(:collection_owned_by_active).uuid]],
include_old_versions: true
}
assert_response :success