Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixes per testing in StageDB, change of product name. #671

Merged
merged 1 commit into from

2 participants

@jberkus
Collaborator

No description provided.

@rhelmer rhelmer merged commit efcb6b1 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
22 sql/upgrade/14.0/add_webrt.sql
@@ -3,7 +3,7 @@
DO $f$
BEGIN
-PERFORM 1 FROM products WHERE product_name = 'WebRuntime';
+PERFORM 1 FROM products WHERE product_name = 'WebappRuntime';
IF NOT FOUND THEN
@@ -12,23 +12,33 @@ IF NOT FOUND THEN
rapid_release_version,
release_name
) VALUES (
- 'WebRuntime',
+ 'WebappRuntime',
7,
- '15.0',
- 'webruntime'
+ '16.0',
+ 'webappruntime'
);
INSERT INTO product_release_channels (
product_name, release_channel, throttle )
- SELECT 'WebRuntime', release_channel, 1.0
+ SELECT 'WebappRuntime', release_channel, 1.0
FROM release_channels;
INSERT INTO product_productid_map (
product_name, productid, rewrite,
version_began, version_ended )
- VALUES ( 'WebRuntime', 'webapprt@mozilla.org', true,
+ VALUES ( 'WebappRuntime', 'webapprt@mozilla.org', true,
'0.0',NULL);
+ INSERT INTO transform_rules
+ (category, rule_order, predicate, predicate_args,
+ predicate_kwargs, action, action_args, action_kwargs)
+ values
+ ('processor.json_rewrite', 3,
+ 'socorro.processor.processor.json_equal_predicate', '',
+ 'key="ProductName", value="Webapp Runtime"',
+ 'socorro.processor.processor.json_reformat_action', '',
+ 'key="ProductName", format_str="WebappRuntime"');
+
ELSE
RAISE INFO 'WebRuntime already in database, skipping';
View
4 sql/upgrade/14.0/update_products.sql
@@ -58,13 +58,13 @@ WHERE build_type ILIKE 'Release'
-- release for WebRT
INSERT INTO releases_recent
-SELECT 'WebRuntime',
+SELECT 'WebappRuntime',
version, beta_number, build_id,
build_type, platform,
is_rapid, repository
FROM releases_recent
JOIN products
- ON products.product_name = 'WebRuntime'
+ ON products.product_name = 'WebappRuntime'
WHERE releases_recent.product_name = 'Firefox'
AND major_version_sort(releases_recent.version)
>= major_version_sort(products.rapid_release_version);
Something went wrong with that request. Please try again.