Skip to content

Raise on unpermitted parameters in dev and test env #5007

Raise on unpermitted parameters in dev and test env

Raise on unpermitted parameters in dev and test env #5007

Triggered via push October 15, 2024 18:57
Status Failure
Total duration 4m 55s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 5 warnings
test: spec/controllers/task_contributions_controller_spec.rb#L62
TaskContributionsController POST #create with valid params assigns a newly created suggestion as @task_contribution.suggestion Failure/Error: params.require(:task).permit(:title, :description, :internal_description, :parent_uuid, :language, :license_id, :programming_language_id, :access_level, files_attributes: file_params, tests_attributes: test_params, model_solutions_attributes: model_solution_params, label_names: []).tap {|parameters| fix_nested_files_params(parameters) } ActionController::UnpermittedParameters: found unpermitted parameter: :uuid
test: spec/controllers/task_contributions_controller_spec.rb#L56
TaskContributionsController POST #create with valid params creates a new Task and TaskContribution Failure/Error: params.require(:task).permit(:title, :description, :internal_description, :parent_uuid, :language, :license_id, :programming_language_id, :access_level, files_attributes: file_params, tests_attributes: test_params, model_solutions_attributes: model_solution_params, label_names: []).tap {|parameters| fix_nested_files_params(parameters) } ActionController::UnpermittedParameters: found unpermitted parameter: :uuid
test: spec/controllers/task_contributions_controller_spec.rb#L77
TaskContributionsController POST #create with valid params keeps the original task metadata Failure/Error: params.require(:task).permit(:title, :description, :internal_description, :parent_uuid, :language, :license_id, :programming_language_id, :access_level, files_attributes: file_params, tests_attributes: test_params, model_solutions_attributes: model_solution_params, label_names: []).tap {|parameters| fix_nested_files_params(parameters) } ActionController::UnpermittedParameters: found unpermitted parameter: :uuid
test: spec/controllers/task_contributions_controller_spec.rb#L85
TaskContributionsController POST #create with valid params redirects to the created task Failure/Error: params.require(:task).permit(:title, :description, :internal_description, :parent_uuid, :language, :license_id, :programming_language_id, :access_level, files_attributes: file_params, tests_attributes: test_params, model_solutions_attributes: model_solution_params, label_names: []).tap {|parameters| fix_nested_files_params(parameters) } ActionController::UnpermittedParameters: found unpermitted parameter: :uuid
test: spec/controllers/task_contributions_controller_spec.rb#L68
TaskContributionsController POST #create with valid params changes required parameters Failure/Error: params.require(:task).permit(:title, :description, :internal_description, :parent_uuid, :language, :license_id, :programming_language_id, :access_level, files_attributes: file_params, tests_attributes: test_params, model_solutions_attributes: model_solution_params, label_names: []).tap {|parameters| fix_nested_files_params(parameters) } ActionController::UnpermittedParameters: found unpermitted parameter: :uuid
test
Process completed with exit code 1.
lint: app/controllers/messages_controller.rb#L28
[rubocop] reported by reviewdog 🐶 Unnecessary disabling of `Metrics/AbcSize`. Raw Output: app/controllers/messages_controller.rb:28:3: W: Lint/RedundantCopDisableDirective: Unnecessary disabling of `Metrics/AbcSize`.
test: spec/services/proforma_service/import_task_spec.rb#L56
ProformaService::ImportTask#execute when task with same uuid exists in db creates a predecessor for task Failure/Error: expect { import_proforma_task }.to change { task.reload.predecessor }.from(nil).to(be_an(Task)) NoMethodError: undefined method `predecessor' for an instance of Task
test: spec/services/proforma_service/import_task_spec.rb#L74
ProformaService::ImportTask#execute when task with same uuid exists in db when user does not own task when user is an author of task creates a new task Failure/Error: before { task.authors << user } NoMethodError: undefined method `authors' for an instance of Task
test: spec/services/proforma_service/import_task_spec.rb#L78
ProformaService::ImportTask#execute when task with same uuid exists in db when user does not own task when user is an author of task changes existing task Failure/Error: before { task.authors << user } NoMethodError: undefined method `authors' for an instance of Task
test: spec/services/proforma_service/import_task_spec.rb#L82
ProformaService::ImportTask#execute when task with same uuid exists in db when user does not own task when user is an author of task creates a predecessor for task Failure/Error: before { task.authors << user } NoMethodError: undefined method `authors' for an instance of Task