Skip to content
代码片段 群组 项目
未验证 提交 435bc876 编辑于 作者: Michał Zając's avatar Michał Zając 提交者: GitLab
浏览文件

Merge branch...

Merge branch '480329-resolve-cross-table-interaction-issues-in-ee-spec-services-sbom-ingestion-tasks' into 'master' 

Resolve cross table interaction issues in ee/spec/services/sbom/ingestion/tasks/ingest_occurrences_spec.rb

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/167682



Merged-by: default avatarMichał Zając <mzajac@gitlab.com>
Approved-by: default avatarMichał Zając <mzajac@gitlab.com>
Co-authored-by: default avatarGregory <11164960-ghavenga@users.noreply.gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -345,27 +345,23 @@ ...@@ -345,27 +345,23 @@
end end
def expected_attributes_for(occurrence_map) def expected_attributes_for(occurrence_map)
Gitlab::Database.allow_cross_joins_across_databases( {
url: 'https://gitlab.com/gitlab-org/gitlab/-/issues/480165' ancestors: occurrence_map.ancestors,
) do archived: project.archived,
{ commit_sha: pipeline.sha,
ancestors: occurrence_map.ancestors, component_id: occurrence_map.component_id,
archived: project.archived, component_name: occurrence_map.name,
commit_sha: pipeline.sha, component_version_id: occurrence_map.component_version_id,
component_id: occurrence_map.component_id, input_file_path: occurrence_map.input_file_path,
component_name: occurrence_map.name, licenses: default_licenses,
component_version_id: occurrence_map.component_version_id, package_manager: occurrence_map.packager,
input_file_path: occurrence_map.input_file_path, pipeline_id: pipeline.id,
licenses: default_licenses, project_id: project.id,
package_manager: occurrence_map.packager, reachability: occurrence_map.reachability,
pipeline_id: pipeline.id, source_id: occurrence_map.source_id,
project_id: project.id, source_package_id: occurrence_map.source_package_id,
reachability: occurrence_map.reachability, traversal_ids: project.namespace.traversal_ids
source_id: occurrence_map.source_id, }.deep_stringify_keys!
source_package_id: occurrence_map.source_package_id,
traversal_ids: project.namespace.traversal_ids
}.deep_stringify_keys!
end
end end
def create_pm_packages def create_pm_packages
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册