Skip to content
Snippets Groups Projects

BE: Allow customers to extend or reactivate their trial on gitlab.com [RUN ALL RSPEC] [RUN AS-IF-FOSS]

Merged Qingyu Zhao requested to merge 290278-allow-extend-or-reactivate-trial-on-gitlab-com into master
All threads resolved!
1 file
+ 0
12
Compare changes
  • Side-by-side
  • Inline
@@ -103,18 +103,6 @@ def self.counted_by_severity
@@ -103,18 +103,6 @@ def self.counted_by_severity
end
end
end
end
def self.with_vulnerabilities_for_state(project:, report_type:, project_fingerprints:)
Vulnerabilities::Finding
.joins(:vulnerability)
.where(
project: project,
report_type: report_type,
project_fingerprint: project_fingerprints
)
.select('vulnerability_occurrences.report_type, vulnerability_id, project_fingerprint, raw_metadata, '\
'vulnerabilities.id, vulnerabilities.state') # fetching only required attributes
end
# sha can be sourced from a joined pipeline or set from the report
# sha can be sourced from a joined pipeline or set from the report
def sha
def sha
self[:sha] || @sha
self[:sha] || @sha
Loading