Skip to content

Commit a2995f8

Browse files
committed
Update to 18.1.2
1 parent 46bb8c6 commit a2995f8

File tree

8 files changed

+94
-1
lines changed

8 files changed

+94
-1
lines changed

scripts/18.1.2-ee.0/patch.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
for patch in /scripts/patches/*.patch; do
6+
echo "Applying $patch ..."
7+
patch -p0 < "$patch"
8+
done
9+
10+
11+
for script in /scripts/patches/*.sh; do
12+
echo "Running $script ..."
13+
"$script"
14+
done
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--- /opt/gitlab/embedded/service/gitlab-rails/app/views/explore/projects/_head.html.haml 2024-01-17 13:51:44.978361699 +0000
2+
+++ /opt/gitlab/embedded/service/gitlab-rails/app/views/explore/projects/_head.html.haml 2024-01-17 13:51:14.477881902 +0000
3+
@@ -1,5 +1,5 @@
4+
- breadcrumb_title _("Projects")
5+
-- page_title _("Explore projects")
6+
+- page_title _("Explore ARCs")
7+
8+
= render_dashboard_ultimate_trial(current_user)
9+
= render_product_usage_data_collection_changes(current_user)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
set -- /opt/gitlab/embedded/service/gitlab-rails/public/assets/webpack/pages.projects.imports.new.*.chunk.js
6+
7+
# exit if above's glob matches nothing or more than 1 file
8+
[ -e "$1" ] && [ "$#" = "1" ]
9+
10+
# the mighty "patch"
11+
sed -Ei.bak \
12+
's/sample:(\{text:Object\([^)]+\))/arc:\1("ProjectTemplates|ARC"),icon:".template-option .icon-gitlab_logo"},&/' \
13+
"$1"
14+
15+
# needs to be gzip'ed too
16+
gzip -kf "$1"
17+
18+
# print diffs to see what was done
19+
diff -u "$1" "${1}.bak" || true
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- /opt/gitlab/embedded/service/gitlab-rails/config/initializers/carrierwave_s3_encryption_headers_patch.rb 2024-07-10 10:16:24.201574831 +0000
2+
+++ /opt/gitlab/embedded/service/gitlab-rails/config/initializers/carrierwave_s3_encryption_headers_patch.rb 2024-07-10 10:16:57.405284779 +0000
3+
@@ -25,7 +25,7 @@
4+
if ::Feature.enabled?(:s3_multithreaded_uploads, type: :ops) && fog_provider == 'AWS'
5+
# AWS SDK uses 10 threads by default and a multipart chunk size of 10 MB
6+
file.concurrency = 10
7+
- file.multipart_chunk_size = 10485760
8+
+ file.multipart_chunk_size = 10485760 / 10 * 1024 # 1 GiB
9+
file.copy(@uploader.fog_directory, new_path, copy_to_options)
10+
else
11+
# Some Fog providers may issue a GET request (https://github.com/fog/fog-google/issues/512)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--- /opt/gitlab/embedded/service/gitlab-rails/lib/object_storage/direct_upload.rb 2024-07-10 10:14:00.134830913 +0000
2+
+++ /opt/gitlab/embedded/service/gitlab-rails/lib/object_storage/direct_upload.rb 2024-08-21 15:01:53.519335954 +0000
3+
@@ -16,7 +16,7 @@
4+
class DirectUpload
5+
include Gitlab::Utils::StrongMemoize
6+
7+
- TIMEOUT = 4.hours
8+
+ TIMEOUT = 48.hours
9+
EXPIRE_OFFSET = 15.minutes
10+
11+
MAXIMUM_MULTIPART_PARTS = 100
12+
@@ -133,6 +133,7 @@
13+
end
14+
15+
def use_workhorse_s3_client?
16+
+ return false
17+
return false unless config.use_iam_profile? || config.consolidated_settings?
18+
# The Golang AWS SDK does not support V2 signatures
19+
return false unless credentials.fetch(:aws_signature_version, 4).to_i >= 4
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/lfs_token.rb 2023-04-04 15:32:49.679168014 +0200
2+
+++ /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/lfs_token.rb 2023-04-04 12:52:34.978437027 +0200
3+
@@ -14,7 +14,7 @@
4+
5+
include LfsTokenHelper
6+
7+
- DEFAULT_EXPIRE_TIME = 7200 # Default value 2 hours
8+
+ DEFAULT_EXPIRE_TIME = 86400 # Default value was 2 hours (=7200)
9+
10+
attr_accessor :actor
11+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/project_template.rb 2023-04-04 15:34:11.873379730 +0200
2+
+++ /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/project_template.rb 2023-04-04 12:52:34.981770257 +0200
3+
@@ -53,6 +53,7 @@
4+
# TODO: Review child inheritance of this table (see: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/41699#note_430928221)
5+
def localized_templates_table
6+
[
7+
+ ProjectTemplate.new('arc', 'ARC', _('Includes DataPLANT ARC structure'), 'https://gitlab.com/gitlab-org/project-templates/rails', '/assets/dataplant-arc.png'),
8+
ProjectTemplate.new('rails', 'Ruby on Rails', _('Includes an MVC structure, Gemfile, Rakefile, along with many others, to help you get started'), 'https://gitlab.com/gitlab-org/project-templates/rails', 'illustrations/logos/rails.svg'),
9+
ProjectTemplate.new('spring', 'Spring', _('Includes an MVC structure, mvnw and pom.xml to help you get started'), 'https://gitlab.com/gitlab-org/project-templates/spring', 'illustrations/logos/spring.svg'),
10+
ProjectTemplate.new('express', 'NodeJS Express', _('Includes an MVC structure to help you get started'), 'https://gitlab.com/gitlab-org/project-templates/express', 'illustrations/logos/express.svg'),

scripts/latest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.1.1-ee.0
1+
18.1.2-ee.0

0 commit comments

Comments
 (0)