You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: group_filter_dependency_representer.rb
    path of file: ./repos/openproject/lib/api/v3/queries/schemas
    
    the code of the file until where you have to start completion: #-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2024 the OpenProject GmbH
#
# This program
    
          def filter_query
            params = [{ type: { operator: '=', values: ['Group'] } }]

            params << if filter.project
                        { member: { operator: '=', values: [filter.project.id.to_s] } }
                      else
                        { member: { operator: '*', values: [] } }
                      end