Permalink
Browse files

Fixes to transform to "WebappRuntime" instead of "WebRuntime".

  • Loading branch information...
1 parent 550415a commit df28bcd8aa17a5930dd2083403a0dbc9f9a51329 @jberkus jberkus committed with rhelmer Jun 26, 2012
Showing with 18 additions and 8 deletions.
  1. +16 −6 sql/upgrade/14.0/add_webrt.sql
  2. +2 −2 sql/upgrade/14.0/update_products.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';
@@ -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);

0 comments on commit df28bcd

Please sign in to comment.