Skip to content

Fixing ambiguous `created_at` in project.rb

What does this MR do and why?

Currently the pipeline_configuration_full_path lookup in ee/app/models/ee/project.rb joins the compliance_framework_settings table with the compliance_management_framework table and orders by created_at. However, the column created_at exists on both tables so the query results in an error:

ERROR:  column reference "created_at" is ambiguous

This MR specifies that the created_at value comes from the compliance_framework_settings table.

Screenshots or screen recordings

image

Merge request reports

Loading