Project

General

Profile

Actions

Testing #3062

closed

xmera Omnia - Collection #3085: Maintain several plugins to be compatible

RM: Failing functional tests due to changes w.r.t. admin_projects

Added by liaham 22 days ago. Updated 19 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
03/17/2025
Due date:
03/17/2025
% Done:

100%

Estimated time:
Compatible Redmine Version:
5.1.z

Description

ERROR ProjectsControllerTest#test_index_sort_by_custom_field (224.27s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: [:name, :identifier, :cf_3], sort_criteria: [["cf_3", "asc"]], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"list"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:212:in `test_index_sort_by_custom_field'

ERROR ProjectsControllerTest#test_index_should_ignore_user_default_query_if_it_is_invisible (224.43s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: 11, project_id: nil, name: "Projects as list", filters: {"id"=>{:values=>["mine"], :operator=>"="}}, user_id: 2, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:display_type=>"list"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:278:in `test_index_should_ignore_user_default_query_if_it_is_invisible'

ERROR ProjectsControllerTest#test_index_with_project_filter_is_my_projects (224.57s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"id"=>{:operator=>"=", :values=>["mine"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"board"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:56:in `test_index_with_project_filter_is_my_projects'

ERROR ProjectsControllerTest#test_default_search_scope_in_global_page (224.62s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"board"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:1559:in `test_default_search_scope_in_global_page'

ERROR ProjectsControllerTest#test_#index_by_non-admin_user_without_view_time_entries_permission_should_not_show_overall_spent_time_link (228.80s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"board"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:352:in `block in <class:ProjectsControllerTest>'

ERROR ProjectsControllerTest#test_index_as_list_should_indent_projects (228.85s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: [:name, :short_description], sort_criteria: [["parent_id", "desc"], ["lft", "desc"]], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"list"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:130:in `test_index_as_list_should_indent_projects'

ERROR ProjectsControllerTest#test_index_as_list_should_format_column_value (229.19s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: [:name, :status, :short_description, :homepage, :parent_id, :identifier, :is_public, :created_on, :cf_3], sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"list"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:93:in `block in test_index_as_list_should_format_column_value'
            test/test_helper.rb:104:in `with_settings'
            test/functional/projects_controller_test.rb:92:in `test_index_as_list_should_format_column_value'

ERROR ProjectsControllerTest#test_#index_by_non-admin_user_with_view_time_entries_permission_should_show_overall_spent_time_link (229.46s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"board"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:342:in `block in <class:ProjectsControllerTest>'

ERROR ProjectsControllerTest#test_#index_by_non-admin_user_with_permission_should_show_add_project_link (229.80s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"board"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:360:in `block in <class:ProjectsControllerTest>'

ERROR ProjectsControllerTest#test_index_should_retrieve_default_query (230.07s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: 11, project_id: nil, name: "Projects as list", filters: {"id"=>{:values=>["mine"], :operator=>"="}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 2, options: {:display_type=>"list"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:253:in `block in test_index_should_retrieve_default_query'
            test/functional/projects_controller_test.rb:251:in `each'
            test/functional/projects_controller_test.rb:251:in `test_index_should_retrieve_default_query'

ERROR ProjectsControllerTest#test_index_csv (231.65s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"board"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:200:in `block in test_index_csv'
            test/test_helper.rb:104:in `with_settings'
            test/functional/projects_controller_test.rb:199:in `test_index_csv'

ERROR ProjectsControllerTest#test_index_with_subproject_filter (232.62s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"parent_id"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"board"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:75:in `test_index_with_subproject_filter'

ERROR ProjectsControllerTest#test_index_as_list_should_include_csv_export (233.27s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"parent_id"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"list"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:170:in `test_index_as_list_should_include_csv_export'

ERROR ProjectsControllerTest#test_index_by_anonymous_should_not_show_private_projects (233.33s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"board"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:32:in `test_index_by_anonymous_should_not_show_private_projects'

ERROR ProjectsControllerTest#test_index_should_ignore_default_query_with_without_default (234.65s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"board"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:264:in `block in test_index_should_ignore_default_query_with_without_default'
            test/functional/projects_controller_test.rb:262:in `each'
            test/functional/projects_controller_test.rb:262:in `test_index_should_ignore_default_query_with_without_default'

ERROR ProjectsControllerTest#test_index_as_list_should_show_my_favourite_projects (235.04s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"list"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:120:in `test_index_as_list_should_show_my_favourite_projects'

ERROR ProjectsControllerTest#test_index_jump_should_not_redirect_to_unknown_tab (235.38s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"board"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:1512:in `test_index_jump_should_not_redirect_to_unknown_tab'

ERROR ProjectsControllerTest#test_index_as_board_should_not_include_csv_export (236.10s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"board"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:160:in `test_index_as_board_should_not_include_csv_export'

ERROR ProjectsControllerTest#test_index_with_default_query_setting (237.22s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"list"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:149:in `block in test_index_with_default_query_setting'
            test/test_helper.rb:104:in `with_settings'
            test/functional/projects_controller_test.rb:148:in `test_index_with_default_query_setting'

ERROR ProjectsControllerTest#test_index_atom (237.71s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"board"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:47:in `test_index_atom'

ERROR ProjectsControllerTest#test_index_with_int_custom_field_total (237.77s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[:cf_164], :display_type=>"list"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:235:in `test_index_with_int_custom_field_total'

ERROR ProjectsControllerTest#test_index_should_ignore_global_default_query_if_it_is_not_public (238.21s)
Minitest::UnexpectedError:         NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {:totalable_names=>[], :display_type=>"board"}>
            plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
            app/models/project_query.rb:121:in `results_scope'
            app/controllers/projects_controller.rb:339:in `project_scope'
            app/controllers/projects_controller.rb:56:in `index'
            lib/redmine/sudo_mode.rb:61:in `sudo_mode'
            test/functional/projects_controller_test.rb:296:in `block (2 levels) in test_index_should_ignore_global_default_query_if_it_is_not_public'
            test/functional/projects_controller_test.rb:294:in `each'
            test/functional/projects_controller_test.rb:294:in `block in test_index_should_ignore_global_default_query_if_it_is_not_public'
            test/test_helper.rb:104:in `with_settings'
            test/functional/projects_controller_test.rb:290:in `test_index_should_ignore_global_default_query_if_it_is_not_public'
Actions #1

Updated by liaham 20 days ago

  • Subject changed from Failing functional tests due to changes w.r.t. admin_projects to RM: Failing functional tests due to changes w.r.t. admin_projects
Actions #2

Updated by liaham 19 days ago

  • Due date set to 03/17/2025
  • Status changed from New to Closed
  • Start date set to 03/17/2025
  • % Done changed from 0 to 100
  • Parent task set to #3085
Actions

Also available in: Atom PDF