1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class Arvados::V1::LogsController < ApplicationController
6 # Overrides ApplicationController load_where_param
10 # object_kind and column is now virtual,
11 # equivilent functionality is now provided by
12 # 'is_a', so fix up any old-style 'where' clauses.
15 if @where[:object_kind]
16 @filters << ['object_uuid', 'is_a', @where[:object_kind]]
17 @where.delete :object_kind
22 # Overrides ApplicationController load_filters_param
23 def load_filters_param
26 # object_kind and column is now virtual,
27 # equivilent functionality is now provided by
28 # 'is_a', so fix up any old-style 'filter' clauses.
29 @filters = @filters.map do |k|
30 if k[0] == 'object_kind' and k[1] == '='
31 ['object_uuid', 'is_a', k[2]]