gitlab-experiment 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed3c0028563936ce8a3fbdfd1de9d64e499102c4ec71a21946b63c56cc2bebd5
|
4
|
+
data.tar.gz: 43389ef9b7b2a4b3e60b82b5ffefbe3635739cb9fafec21dd5e9d59586f942c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30d0988d199f34eb60e3d56d8e7aec3a00222a5de482410c0294e15ce37a2a9dccbb2fb35b372c90b4425879938bec0d7e5b0ffadf5d842ee31abb0ea673aaeb
|
7
|
+
data.tar.gz: 3665443e1d937b77e12debaf3195423b3fad171b651573e58a328dfb5c1f618eb9a282eedcfde68376ae0e7207837b74ae60e4fda616c046caa329b4cc681e68
|
@@ -61,16 +61,18 @@ module Gitlab
|
|
61
61
|
private
|
62
62
|
|
63
63
|
def process_migrations(value)
|
64
|
-
|
65
|
-
|
64
|
+
add_unmerged_migration(value.delete(:migrated_from))
|
65
|
+
add_merged_migration(value.delete(:migrated_with))
|
66
66
|
|
67
67
|
migrate_cookie(value, "#{@experiment.name}_id")
|
68
68
|
end
|
69
69
|
|
70
|
-
def
|
71
|
-
|
70
|
+
def add_unmerged_migration(value = {})
|
71
|
+
@migrations[:unmerged] << value if value.is_a?(Hash)
|
72
|
+
end
|
72
73
|
|
73
|
-
|
74
|
+
def add_merged_migration(value = {})
|
75
|
+
@migrations[:merged] << value if value.is_a?(Hash)
|
74
76
|
end
|
75
77
|
|
76
78
|
def migration_keys
|
@@ -35,7 +35,10 @@ module Gitlab
|
|
35
35
|
app.config.middleware.use(Middleware, mount_at)
|
36
36
|
app.routes.append do
|
37
37
|
mount Engine, at: mount_at, as: :experiment_engine
|
38
|
-
direct(:experiment_redirect)
|
38
|
+
direct(:experiment_redirect) do |ex, options|
|
39
|
+
url = options[:url]
|
40
|
+
"#{engine.url_helpers.experiment_url(ex)}?#{url}"
|
41
|
+
end
|
39
42
|
end
|
40
43
|
end
|
41
44
|
end
|