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 @@
end
def expected_attributes_for(occurrence_map)
Gitlab::Database.allow_cross_joins_across_databases(
url: 'https://gitlab.com/gitlab-org/gitlab/-/issues/480165'
) do
{
ancestors: occurrence_map.ancestors,
archived: project.archived,
commit_sha: pipeline.sha,
component_id: occurrence_map.component_id,
component_name: occurrence_map.name,
component_version_id: occurrence_map.component_version_id,
input_file_path: occurrence_map.input_file_path,
licenses: default_licenses,
package_manager: occurrence_map.packager,
pipeline_id: pipeline.id,
project_id: project.id,
reachability: occurrence_map.reachability,
source_id: occurrence_map.source_id,
source_package_id: occurrence_map.source_package_id,
traversal_ids: project.namespace.traversal_ids
}.deep_stringify_keys!
end
{
ancestors: occurrence_map.ancestors,
archived: project.archived,
commit_sha: pipeline.sha,
component_id: occurrence_map.component_id,
component_name: occurrence_map.name,
component_version_id: occurrence_map.component_version_id,
input_file_path: occurrence_map.input_file_path,
licenses: default_licenses,
package_manager: occurrence_map.packager,
pipeline_id: pipeline.id,
project_id: project.id,
reachability: occurrence_map.reachability,
source_id: occurrence_map.source_id,
source_package_id: occurrence_map.source_package_id,
traversal_ids: project.namespace.traversal_ids
}.deep_stringify_keys!
end
def create_pm_packages
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册