gitlab-cloud-connector 1.14.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/backend_services/duo_workflow_service.yml +2 -2
- data/config/unit_primitives/agent_quick_actions.yml +1 -0
- data/config/unit_primitives/amazon_q_integration.yml +1 -0
- data/config/unit_primitives/ask_build.yml +1 -0
- data/config/unit_primitives/ask_commit.yml +1 -0
- data/config/unit_primitives/ask_epic.yml +1 -0
- data/config/unit_primitives/ask_issue.yml +1 -0
- data/config/unit_primitives/ask_merge_request.yml +1 -0
- data/config/unit_primitives/categorize_duo_chat_question.yml +1 -0
- data/config/unit_primitives/documentation_search.yml +1 -0
- data/config/unit_primitives/duo_chat.yml +1 -0
- data/config/unit_primitives/explain_code.yml +1 -0
- data/config/unit_primitives/explain_vulnerability.yml +1 -0
- data/config/unit_primitives/fix_code.yml +1 -0
- data/config/unit_primitives/generate_commit_message.yml +1 -0
- data/config/unit_primitives/include_dependency_context.yml +1 -0
- data/config/unit_primitives/include_directory_context.yml +1 -0
- data/config/unit_primitives/include_file_context.yml +1 -0
- data/config/unit_primitives/include_issue_context.yml +1 -0
- data/config/unit_primitives/include_local_git_context.yml +1 -0
- data/config/unit_primitives/include_merge_request_context.yml +1 -0
- data/config/unit_primitives/include_repository_context.yml +1 -0
- data/config/unit_primitives/include_snippet_context.yml +1 -0
- data/config/unit_primitives/include_terminal_context.yml +1 -0
- data/config/unit_primitives/refactor_code.yml +1 -0
- data/config/unit_primitives/resolve_vulnerability.yml +1 -0
- data/config/unit_primitives/review_merge_request.yml +1 -0
- data/config/unit_primitives/summarize_comments.yml +1 -0
- data/config/unit_primitives/summarize_issue_discussions.yml +1 -0
- data/config/unit_primitives/summarize_new_merge_request.yml +1 -0
- data/config/unit_primitives/summarize_review.yml +1 -0
- data/config/unit_primitives/troubleshoot_job.yml +1 -0
- data/config/unit_primitives/write_tests.yml +1 -0
- data/lib/gitlab/cloud_connector/data_model/associations.rb +12 -0
- data/lib/gitlab/cloud_connector/data_model/base.rb +8 -1
- data/lib/gitlab/cloud_connector/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77b68ccbbbd3599d83f1ef7a19c2b2b23d5a15c076606e9e9369ceaf81790c7a
|
4
|
+
data.tar.gz: 8da66f4e74f4a6a1a588a160e1c599fe9ff1149d289b711426e985213f1790d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de093b831b27a912323e1d6bf45ea165dbabe2e98e7b0477c9d8d71916fa55738c50700ac17eec271d09230720ec7cb9e9331fb282792690d031381eef3b63ba
|
7
|
+
data.tar.gz: fa9fa12a1aba3c712a3253454ae68ba124ea69765112f630f9511129f0708633ccff10723b0ae55fa8425254b6dcd60c28c56471c50e2f54915e469ced5471d4
|
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
2
|
name: duo_workflow_service
|
3
|
-
project_url: https://gitlab.com/gitlab-org/
|
4
|
-
group: group
|
3
|
+
project_url: https://gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist
|
4
|
+
group: group::duo workflow
|
5
5
|
jwt_aud: gitlab-duo-workflow-service
|
@@ -8,5 +8,6 @@ documentation_url: https://docs.gitlab.com/ee/user/gitlab_duo_chat/examples.html
|
|
8
8
|
introduced_by_url: https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/10890/diffs
|
9
9
|
backend_services:
|
10
10
|
- ai_gateway
|
11
|
+
- duo_workflow_service
|
11
12
|
add_ons:
|
12
13
|
- duo_enterprise
|
@@ -8,5 +8,6 @@ documentation_url: https://docs.gitlab.com/ee/user/gitlab_duo_chat/examples.html
|
|
8
8
|
introduced_by_url: https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/10890/diffs
|
9
9
|
backend_services:
|
10
10
|
- ai_gateway
|
11
|
+
- duo_workflow_service
|
11
12
|
add_ons:
|
12
13
|
- duo_enterprise
|
@@ -8,5 +8,6 @@ documentation_url: https://docs.gitlab.com/ee/user/gitlab_duo/#merge-commit-mess
|
|
8
8
|
introduced_by_url: https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/10371
|
9
9
|
backend_services:
|
10
10
|
- ai_gateway
|
11
|
+
- duo_workflow_service
|
11
12
|
add_ons:
|
12
13
|
- duo_enterprise
|
@@ -8,5 +8,6 @@ documentation_url: https://docs.gitlab.com/ee/user/gitlab_duo/#vulnerability-res
|
|
8
8
|
introduced_by_url: https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/10457
|
9
9
|
backend_services:
|
10
10
|
- ai_gateway
|
11
|
+
- duo_workflow_service
|
11
12
|
add_ons:
|
12
13
|
- duo_enterprise
|
@@ -8,5 +8,6 @@ documentation_url: https://docs.gitlab.com/ee/user/gitlab_duo/#root-cause-analys
|
|
8
8
|
introduced_by_url: https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/10457
|
9
9
|
backend_services:
|
10
10
|
- ai_gateway
|
11
|
+
- duo_workflow_service
|
11
12
|
add_ons:
|
12
13
|
- duo_enterprise
|
@@ -5,8 +5,20 @@ module Gitlab
|
|
5
5
|
module DataModel
|
6
6
|
module Associations
|
7
7
|
module ClassMethods
|
8
|
+
def associations
|
9
|
+
@associations ||= []
|
10
|
+
end
|
11
|
+
|
12
|
+
def association_cache_keys
|
13
|
+
@association_cache_keys ||= associations.map { |a| :"#{a}_association" }
|
14
|
+
end
|
15
|
+
|
8
16
|
# rubocop:disable Naming/PredicateName
|
9
17
|
def has_and_belongs_to_many(name)
|
18
|
+
associations << name.to_sym
|
19
|
+
|
20
|
+
remove_instance_variable(:@association_cache_keys) if instance_variable_defined?(:@association_cache_keys)
|
21
|
+
|
10
22
|
define_method(name) do
|
11
23
|
instance_variable_get(:"@#{name}_association") ||
|
12
24
|
instance_variable_set(:"@#{name}_association", load_association_records(name))
|
@@ -35,6 +35,8 @@ module Gitlab
|
|
35
35
|
|
36
36
|
def initialize(**opts)
|
37
37
|
opts.each do |key, value|
|
38
|
+
raise ArgumentError, "Cannot override association '#{key}'" if association_key?(key)
|
39
|
+
|
38
40
|
instance_variable_set(:"@#{key}", value)
|
39
41
|
end
|
40
42
|
end
|
@@ -43,10 +45,15 @@ module Gitlab
|
|
43
45
|
instance_variable_get(:"@#{name}")
|
44
46
|
end
|
45
47
|
|
48
|
+
def association_key?(key)
|
49
|
+
self.class.association_cache_keys.include?(key.to_sym)
|
50
|
+
end
|
51
|
+
|
46
52
|
def to_hash
|
47
53
|
instance_variables.each_with_object({}) do |var, hash|
|
48
54
|
key = var.to_s.delete('@').to_sym
|
49
|
-
|
55
|
+
|
56
|
+
hash[key] = instance_variable_get(var) unless association_key?(key)
|
50
57
|
end
|
51
58
|
end
|
52
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-cloud-connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikola Milojevic
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05
|
11
|
+
date: 2025-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|