Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed handling of custom fields:

- only use type 2
- use $MAX_CF_ID env variable to set the highest field we can access
  (db permissions still flaky...)
- for historical bug activity, always fetch exactly the same custom
  fields as for the current bug version (query was too fragile there).
  • Loading branch information...
commit c1253307d9d0ace0c29d07714859cf749d2878d3 1 parent 7872a3e
@x1B x1B authored
View
3  bin/import
@@ -29,10 +29,11 @@ cmd='"${KETTLE_LIBS}/../kitchen.sh" \
-file "${ETL_HOME}/jobs/import.kjb" \
-param:"ES_NODES=${ES_NODES}" \
-param:"ES_CLUSTER=${ES_CLUSTER}" \
+ -param:"MAX_CF_ID=${MAX_CF_ID}" \
-param:"FROM_ID=${from}" \
-param:"TO_ID=${to}"'
-echo "CMD: $cmd"
+eval echo "CMD: ${cmd}"
# do it
JAVAMAXMEM=4096 eval $cmd <&- >> "${out_log}" 2>>"${err_log}" || exit 1
View
1  bin/update
@@ -19,6 +19,7 @@ JAVAMAXMEM=2048 "${KETTLE_LIBS}/../kitchen.sh" \
-file "${ETL_HOME}/jobs/update.kjb" \
-param:"FROM_ID=${FROM_ID}" \
-param:"TO_ID=${TO_ID}" \
+ -param:"MAX_CF_ID=${MAX_CF_ID}" \
-param:"ES_NODES=${ES_NODES}" \
-param:"ES_CLUSTER=${ES_CLUSTER}" \
>> "${ETL_HOME}/log/update/stdout" \
View
13 jobs/import.kjb
@@ -32,6 +32,11 @@
<description/>
</parameter>
<parameter>
+ <name>MAX_CF_ID</name>
+ <default_value>170</default_value>
+ <description/>
+ </parameter>
+ <parameter>
<name>TO_ID</name>
<default_value>600010</default_value>
<description/>
@@ -100,6 +105,9 @@
</parameter> <parameter> <name>PES_CLUSTER</name>
<stream_name/>
<value>${ES_CLUSTER}</value>
+ </parameter> <parameter> <name>PMAX_CF_ID</name>
+ <stream_name/>
+ <value>${MAX_CF_ID}</value>
</parameter> </parameters> <parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
@@ -245,7 +253,10 @@
<follow_abort_remote>N</follow_abort_remote>
<create_parent_folder>N</create_parent_folder>
<parameters> <pass_all_parameters>Y</pass_all_parameters>
- </parameters> <parallel>N</parallel>
+ <parameter> <name>PMAX_CF_ID</name>
+ <stream_name/>
+ <value>${MAX_CF_ID}</value>
+ </parameter> </parameters> <parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>144</xloc>
View
13 jobs/update.kjb
@@ -27,6 +27,11 @@
<description/>
</parameter>
<parameter>
+ <name>MAX_CF_ID</name>
+ <default_value>170</default_value>
+ <description/>
+ </parameter>
+ <parameter>
<name>TO_ID</name>
<default_value>900900900</default_value>
<description/>
@@ -103,6 +108,9 @@
</parameter> <parameter> <name>PES_CLUSTER</name>
<stream_name/>
<value>${ES_CLUSTER}</value>
+ </parameter> <parameter> <name>PMAX_CF_ID</name>
+ <stream_name/>
+ <value>${MAX_CF_ID}</value>
</parameter> </parameters> <parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
@@ -358,7 +366,10 @@ To resume processing, run: cd &#47;opt&#47;pentaho&#47;kettle; .&#47;kitchen.sh
<follow_abort_remote>N</follow_abort_remote>
<create_parent_folder>N</create_parent_folder>
<parameters> <pass_all_parameters>Y</pass_all_parameters>
- </parameters> <parallel>N</parallel>
+ <parameter> <name>PMAX_CF_ID</name>
+ <stream_name/>
+ <value>${MAX_CF_ID}</value>
+ </parameter> </parameters> <parallel>N</parallel>
<draw>Y</draw>
<nr>0</nr>
<xloc>240</xloc>
View
2  transformations/load_attachments.ktr
@@ -16,7 +16,7 @@
</parameter>
<parameter>
<name>CF_FLAGS_SQL_PARAMETER</name>
- <default_value>TRIM(TRAILING &apos;,&apos; FROM CONCAT(IF(`cf_blocking_fennec` != &apos;---&apos;, CONCAT(&apos;tracking-fennec&apos;, IF(LENGTH(`cf_blocking_fennec`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_fennec`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_191` != &apos;---&apos;, CONCAT(&apos;blocking1.9.1&apos;, IF(LENGTH(`cf_blocking_191`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_191`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_191` != &apos;---&apos;, CONCAT(&apos;status1.9.1&apos;, IF(LENGTH(`cf_status_191`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_191`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_192` != &apos;---&apos;, CONCAT(&apos;status1.9.2&apos;, IF(LENGTH(`cf_status_192`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_192`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_20` != &apos;---&apos;, CONCAT(&apos;blocking2.0&apos;, IF(LENGTH(`cf_blocking_20`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_20`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_thunderbird30` != &apos;---&apos;, CONCAT(&apos;blocking-thunderbird3.0&apos;, IF(LENGTH(`cf_blocking_thunderbird30`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_thunderbird30`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird30` != &apos;---&apos;, CONCAT(&apos;status-thunderbird3.0&apos;, IF(LENGTH(`cf_status_thunderbird30`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird30`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_192` != &apos;---&apos;, CONCAT(&apos;blocking1.9.2&apos;, IF(LENGTH(`cf_blocking_192`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_192`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_thunderbird31` != &apos;---&apos;, CONCAT(&apos;blocking-thunderbird3.1&apos;, IF(LENGTH(`cf_blocking_thunderbird31`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_thunderbird31`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird31` != &apos;---&apos;, CONCAT(&apos;status-thunderbird3.1&apos;, IF(LENGTH(`cf_status_thunderbird31`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird31`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_20` != &apos;---&apos;, CONCAT(&apos;status2.0&apos;, IF(LENGTH(`cf_status_20`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_20`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey21` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.1&apos;, IF(LENGTH(`cf_status_seamonkey21`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey21`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_seamonkey21` != &apos;---&apos;, CONCAT(&apos;blocking-seamonkey2.1&apos;, IF(LENGTH(`cf_blocking_seamonkey21`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_seamonkey21`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_thunderbird32` != &apos;---&apos;, CONCAT(&apos;blocking-thunderbird3.2&apos;, IF(LENGTH(`cf_blocking_thunderbird32`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_thunderbird32`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird32` != &apos;---&apos;, CONCAT(&apos;status-thunderbird3.2&apos;, IF(LENGTH(`cf_status_thunderbird32`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird32`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_thunderbird33` != &apos;---&apos;, CONCAT(&apos;blocking-thunderbird5.0&apos;, IF(LENGTH(`cf_blocking_thunderbird33`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_thunderbird33`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird33` != &apos;---&apos;, CONCAT(&apos;status-thunderbird5.0&apos;, IF(LENGTH(`cf_status_thunderbird33`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird33`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_fx` != &apos;---&apos;, CONCAT(&apos;blocking-fx&apos;, IF(LENGTH(`cf_blocking_fx`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_fx`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_firefox5` != &apos;---&apos;, CONCAT(&apos;tracking-firefox5&apos;, IF(LENGTH(`cf_tracking_firefox5`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_firefox5`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_firefox5` != &apos;---&apos;, CONCAT(&apos;status-firefox5&apos;, IF(LENGTH(`cf_status_firefox5`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_firefox5`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_firefox6` != &apos;---&apos;, CONCAT(&apos;tracking-firefox6&apos;, IF(LENGTH(`cf_tracking_firefox6`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_firefox6`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_firefox7` != &apos;---&apos;, CONCAT(&apos;tracking-firefox7&apos;, IF(LENGTH(`cf_tracking_firefox7`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_firefox7`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_firefox6` != &apos;---&apos;, CONCAT(&apos;status-firefox6&apos;, IF(LENGTH(`cf_status_firefox6`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_firefox6`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_firefox7` != &apos;---&apos;, CONCAT(&apos;status-firefox7&apos;, IF(LENGTH(`cf_status_firefox7`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_firefox7`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_thunderbird6` != &apos;---&apos;, CONCAT(&apos;tracking-thunderbird6&apos;, IF(LENGTH(`cf_tracking_thunderbird6`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_thunderbird6`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_thunderbird7` != &apos;---&apos;, CONCAT(&apos;tracking-thunderbird7&apos;, IF(LENGTH(`cf_tracking_thunderbird7`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_thunderbird7`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird6` != &apos;---&apos;, CONCAT(&apos;status-thunderbird6&apos;, IF(LENGTH(`cf_status_thunderbird6`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird6`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird7` != &apos;---&apos;, CONCAT(&apos;status-thunderbird7&apos;, IF(LENGTH(`cf_status_thunderbird7`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird7`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_seamonkey22` != &apos;---&apos;, CONCAT(&apos;tracking-seamonkey2.2&apos;, IF(LENGTH(`cf_tracking_seamonkey22`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_seamonkey22`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_seamonkey23` != &apos;---&apos;, CONCAT(&apos;tracking-seamonkey2.3&apos;, IF(LENGTH(`cf_tracking_seamonkey23`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_seamonkey23`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_seamonkey24` != &apos;---&apos;, CONCAT(&apos;tracking-seamonkey2.4&apos;, IF(LENGTH(`cf_tracking_seamonkey24`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_seamonkey24`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_firefox8` != &apos;---&apos;, CONCAT(&apos;tracking-firefox8&apos;, IF(LENGTH(`cf_tracking_firefox8`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_firefox8`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_firefox8` != &apos;---&apos;, CONCAT(&apos;status-firefox8&apos;, IF(LENGTH(`cf_status_firefox8`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_firefox8`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_seamonkey25` != &apos;---&apos;, CONCAT(&apos;tracking-seamonkey2.5&apos;, IF(LENGTH(`cf_tracking_seamonkey25`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_seamonkey25`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey22` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.2&apos;, IF(LENGTH(`cf_status_seamonkey22`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey22`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey23` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.3&apos;, IF(LENGTH(`cf_status_seamonkey23`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey23`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey24` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.4&apos;, IF(LENGTH(`cf_status_seamonkey24`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey24`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey25` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.5&apos;, IF(LENGTH(`cf_status_seamonkey25`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey25`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_thunderbird8` != &apos;---&apos;, CONCAT(&apos;tracking-thunderbird8&apos;, IF(LENGTH(`cf_tracking_thunderbird8`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_thunderbird8`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird8` != &apos;---&apos;, CONCAT(&apos;status-thunderbird8&apos;, IF(LENGTH(`cf_status_thunderbird8`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird8`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_firefox9` != &apos;---&apos;, CONCAT(&apos;tracking-firefox9&apos;, IF(LENGTH(`cf_tracking_firefox9`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_firefox9`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_firefox9` != &apos;---&apos;, CONCAT(&apos;status-firefox9&apos;, IF(LENGTH(`cf_status_firefox9`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_firefox9`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_seamonkey26` != &apos;---&apos;, CONCAT(&apos;tracking-seamonkey2.6&apos;, IF(LENGTH(`cf_tracking_seamonkey26`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_seamonkey26`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey26` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.6&apos;, IF(LENGTH(`cf_status_seamonkey26`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey26`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_thunderbird9` != &apos;---&apos;, CONCAT(&apos;tracking-thunderbird9&apos;, IF(LENGTH(`cf_tracking_thunderbird9`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_thunderbird9`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird9` != &apos;---&apos;, CONCAT(&apos;status-thunderbird9&apos;, IF(LENGTH(`cf_status_thunderbird9`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird9`, &apos;,&apos;), &apos;&apos;), IF(`cf_office` != &apos;---&apos;, CONCAT(&apos;Office&#47;Space&apos;, IF(LENGTH(`cf_office`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_office`, &apos;,&apos;), &apos;&apos;), IF(`cf_due_date` != &apos;---&apos;, CONCAT(&apos;Due Date&apos;, IF(LENGTH(`cf_due_date`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_due_date`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_firefox10` != &apos;---&apos;, CONCAT(&apos;tracking-firefox10&apos;, IF(LENGTH(`cf_tracking_firefox10`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_firefox10`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_thunderbird10` != &apos;---&apos;, CONCAT(&apos;tracking-thunderbird10&apos;, IF(LENGTH(`cf_tracking_thunderbird10`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_thunderbird10`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird10` != &apos;---&apos;, CONCAT(&apos;status-thunderbird10&apos;, IF(LENGTH(`cf_status_thunderbird10`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird10`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_firefox10` != &apos;---&apos;, CONCAT(&apos;status-firefox10&apos;, IF(LENGTH(`cf_status_firefox10`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_firefox10`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_seamonkey27` != &apos;---&apos;, CONCAT(&apos;tracking-seamonkey2.7&apos;, IF(LENGTH(`cf_tracking_seamonkey27`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_seamonkey27`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey27` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.7&apos;, IF(LENGTH(`cf_status_seamonkey27`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey27`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_firefox11` != &apos;---&apos;, CONCAT(&apos;tracking-firefox11&apos;, IF(LENGTH(`cf_tracking_firefox11`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_firefox11`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_firefox11` != &apos;---&apos;, CONCAT(&apos;status-firefox11&apos;, IF(LENGTH(`cf_status_firefox11`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_firefox11`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_thunderbird11` != &apos;---&apos;, CONCAT(&apos;tracking-thunderbird11&apos;, IF(LENGTH(`cf_tracking_thunderbird11`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_thunderbird11`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird11` != &apos;---&apos;, CONCAT(&apos;status-thunderbird11&apos;, IF(LENGTH(`cf_status_thunderbird11`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird11`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_seamonkey28` != &apos;---&apos;, CONCAT(&apos;tracking-seamonkey2.8&apos;, IF(LENGTH(`cf_tracking_seamonkey28`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_seamonkey28`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey28` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.8&apos;, IF(LENGTH(`cf_status_seamonkey28`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey28`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_firefox12` != &apos;---&apos;, CONCAT(&apos;tracking-firefox12&apos;, IF(LENGTH(`cf_tracking_firefox12`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_firefox12`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_firefox12` != &apos;---&apos;, CONCAT(&apos;status-firefox12&apos;, IF(LENGTH(`cf_status_firefox12`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_firefox12`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_thunderbird12` != &apos;---&apos;, CONCAT(&apos;tracking-thunderbird12&apos;, IF(LENGTH(`cf_tracking_thunderbird12`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_thunderbird12`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird12` != &apos;---&apos;, CONCAT(&apos;status-thunderbird12&apos;, IF(LENGTH(`cf_status_thunderbird12`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird12`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_seamonkey29` != &apos;---&apos;, CONCAT(&apos;tracking-seamonkey2.9&apos;, IF(LENGTH(`cf_tracking_seamonkey29`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_seamonkey29`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey29` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.9&apos;, IF(LENGTH(`cf_status_seamonkey29`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey29`, &apos;,&apos;), &apos;&apos;)))</default_value>
+ <default_value/>
<description>An SQL expression that selects flags from custom fields.</description>
</parameter>
<parameter>
View
15 transformations/load_bugs.ktr
@@ -11,12 +11,12 @@
<parameters>
<parameter>
<name>BUG_IDS_PARTITION</name>
- <default_value>bug_id &gt;= 655001 and bug_id &lt; 655005</default_value>
+ <default_value>bug_id &gt;= 717090 and bug_id &lt; 717098</default_value>
<description>Partitioning to reduce memory and process time for big batch processing</description>
</parameter>
<parameter>
<name>CF_FLAGS_SQL_PARAMETER</name>
- <default_value>TRIM(TRAILING &apos;,&apos; FROM CONCAT(IF(`cf_blocking_fennec` != &apos;---&apos;, CONCAT(&apos;tracking-fennec&apos;, IF(LENGTH(`cf_blocking_fennec`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_fennec`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_191` != &apos;---&apos;, CONCAT(&apos;blocking1.9.1&apos;, IF(LENGTH(`cf_blocking_191`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_191`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_191` != &apos;---&apos;, CONCAT(&apos;status1.9.1&apos;, IF(LENGTH(`cf_status_191`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_191`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_192` != &apos;---&apos;, CONCAT(&apos;status1.9.2&apos;, IF(LENGTH(`cf_status_192`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_192`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_20` != &apos;---&apos;, CONCAT(&apos;blocking2.0&apos;, IF(LENGTH(`cf_blocking_20`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_20`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_thunderbird30` != &apos;---&apos;, CONCAT(&apos;blocking-thunderbird3.0&apos;, IF(LENGTH(`cf_blocking_thunderbird30`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_thunderbird30`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird30` != &apos;---&apos;, CONCAT(&apos;status-thunderbird3.0&apos;, IF(LENGTH(`cf_status_thunderbird30`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird30`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_192` != &apos;---&apos;, CONCAT(&apos;blocking1.9.2&apos;, IF(LENGTH(`cf_blocking_192`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_192`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_thunderbird31` != &apos;---&apos;, CONCAT(&apos;blocking-thunderbird3.1&apos;, IF(LENGTH(`cf_blocking_thunderbird31`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_thunderbird31`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird31` != &apos;---&apos;, CONCAT(&apos;status-thunderbird3.1&apos;, IF(LENGTH(`cf_status_thunderbird31`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird31`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_20` != &apos;---&apos;, CONCAT(&apos;status2.0&apos;, IF(LENGTH(`cf_status_20`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_20`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey21` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.1&apos;, IF(LENGTH(`cf_status_seamonkey21`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey21`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_seamonkey21` != &apos;---&apos;, CONCAT(&apos;blocking-seamonkey2.1&apos;, IF(LENGTH(`cf_blocking_seamonkey21`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_seamonkey21`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_thunderbird32` != &apos;---&apos;, CONCAT(&apos;blocking-thunderbird3.2&apos;, IF(LENGTH(`cf_blocking_thunderbird32`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_thunderbird32`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird32` != &apos;---&apos;, CONCAT(&apos;status-thunderbird3.2&apos;, IF(LENGTH(`cf_status_thunderbird32`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird32`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_thunderbird33` != &apos;---&apos;, CONCAT(&apos;blocking-thunderbird5.0&apos;, IF(LENGTH(`cf_blocking_thunderbird33`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_thunderbird33`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird33` != &apos;---&apos;, CONCAT(&apos;status-thunderbird5.0&apos;, IF(LENGTH(`cf_status_thunderbird33`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird33`, &apos;,&apos;), &apos;&apos;), IF(`cf_blocking_fx` != &apos;---&apos;, CONCAT(&apos;blocking-fx&apos;, IF(LENGTH(`cf_blocking_fx`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_blocking_fx`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_firefox5` != &apos;---&apos;, CONCAT(&apos;tracking-firefox5&apos;, IF(LENGTH(`cf_tracking_firefox5`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_firefox5`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_firefox5` != &apos;---&apos;, CONCAT(&apos;status-firefox5&apos;, IF(LENGTH(`cf_status_firefox5`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_firefox5`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_firefox6` != &apos;---&apos;, CONCAT(&apos;tracking-firefox6&apos;, IF(LENGTH(`cf_tracking_firefox6`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_firefox6`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_firefox7` != &apos;---&apos;, CONCAT(&apos;tracking-firefox7&apos;, IF(LENGTH(`cf_tracking_firefox7`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_firefox7`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_firefox6` != &apos;---&apos;, CONCAT(&apos;status-firefox6&apos;, IF(LENGTH(`cf_status_firefox6`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_firefox6`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_firefox7` != &apos;---&apos;, CONCAT(&apos;status-firefox7&apos;, IF(LENGTH(`cf_status_firefox7`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_firefox7`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_thunderbird6` != &apos;---&apos;, CONCAT(&apos;tracking-thunderbird6&apos;, IF(LENGTH(`cf_tracking_thunderbird6`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_thunderbird6`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_thunderbird7` != &apos;---&apos;, CONCAT(&apos;tracking-thunderbird7&apos;, IF(LENGTH(`cf_tracking_thunderbird7`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_thunderbird7`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird6` != &apos;---&apos;, CONCAT(&apos;status-thunderbird6&apos;, IF(LENGTH(`cf_status_thunderbird6`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird6`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird7` != &apos;---&apos;, CONCAT(&apos;status-thunderbird7&apos;, IF(LENGTH(`cf_status_thunderbird7`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird7`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_seamonkey22` != &apos;---&apos;, CONCAT(&apos;tracking-seamonkey2.2&apos;, IF(LENGTH(`cf_tracking_seamonkey22`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_seamonkey22`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_seamonkey23` != &apos;---&apos;, CONCAT(&apos;tracking-seamonkey2.3&apos;, IF(LENGTH(`cf_tracking_seamonkey23`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_seamonkey23`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_seamonkey24` != &apos;---&apos;, CONCAT(&apos;tracking-seamonkey2.4&apos;, IF(LENGTH(`cf_tracking_seamonkey24`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_seamonkey24`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_firefox8` != &apos;---&apos;, CONCAT(&apos;tracking-firefox8&apos;, IF(LENGTH(`cf_tracking_firefox8`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_firefox8`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_firefox8` != &apos;---&apos;, CONCAT(&apos;status-firefox8&apos;, IF(LENGTH(`cf_status_firefox8`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_firefox8`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_seamonkey25` != &apos;---&apos;, CONCAT(&apos;tracking-seamonkey2.5&apos;, IF(LENGTH(`cf_tracking_seamonkey25`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_seamonkey25`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey22` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.2&apos;, IF(LENGTH(`cf_status_seamonkey22`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey22`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey23` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.3&apos;, IF(LENGTH(`cf_status_seamonkey23`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey23`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey24` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.4&apos;, IF(LENGTH(`cf_status_seamonkey24`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey24`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey25` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.5&apos;, IF(LENGTH(`cf_status_seamonkey25`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey25`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_thunderbird8` != &apos;---&apos;, CONCAT(&apos;tracking-thunderbird8&apos;, IF(LENGTH(`cf_tracking_thunderbird8`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_thunderbird8`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird8` != &apos;---&apos;, CONCAT(&apos;status-thunderbird8&apos;, IF(LENGTH(`cf_status_thunderbird8`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird8`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_firefox9` != &apos;---&apos;, CONCAT(&apos;tracking-firefox9&apos;, IF(LENGTH(`cf_tracking_firefox9`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_firefox9`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_firefox9` != &apos;---&apos;, CONCAT(&apos;status-firefox9&apos;, IF(LENGTH(`cf_status_firefox9`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_firefox9`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_seamonkey26` != &apos;---&apos;, CONCAT(&apos;tracking-seamonkey2.6&apos;, IF(LENGTH(`cf_tracking_seamonkey26`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_seamonkey26`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey26` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.6&apos;, IF(LENGTH(`cf_status_seamonkey26`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey26`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_thunderbird9` != &apos;---&apos;, CONCAT(&apos;tracking-thunderbird9&apos;, IF(LENGTH(`cf_tracking_thunderbird9`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_thunderbird9`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird9` != &apos;---&apos;, CONCAT(&apos;status-thunderbird9&apos;, IF(LENGTH(`cf_status_thunderbird9`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird9`, &apos;,&apos;), &apos;&apos;), IF(`cf_office` != &apos;---&apos;, CONCAT(&apos;Office&#47;Space&apos;, IF(LENGTH(`cf_office`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_office`, &apos;,&apos;), &apos;&apos;), IF(`cf_due_date` != &apos;---&apos;, CONCAT(&apos;Due Date&apos;, IF(LENGTH(`cf_due_date`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_due_date`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_firefox10` != &apos;---&apos;, CONCAT(&apos;tracking-firefox10&apos;, IF(LENGTH(`cf_tracking_firefox10`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_firefox10`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_thunderbird10` != &apos;---&apos;, CONCAT(&apos;tracking-thunderbird10&apos;, IF(LENGTH(`cf_tracking_thunderbird10`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_thunderbird10`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird10` != &apos;---&apos;, CONCAT(&apos;status-thunderbird10&apos;, IF(LENGTH(`cf_status_thunderbird10`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird10`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_firefox10` != &apos;---&apos;, CONCAT(&apos;status-firefox10&apos;, IF(LENGTH(`cf_status_firefox10`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_firefox10`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_seamonkey27` != &apos;---&apos;, CONCAT(&apos;tracking-seamonkey2.7&apos;, IF(LENGTH(`cf_tracking_seamonkey27`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_seamonkey27`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey27` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.7&apos;, IF(LENGTH(`cf_status_seamonkey27`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey27`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_firefox11` != &apos;---&apos;, CONCAT(&apos;tracking-firefox11&apos;, IF(LENGTH(`cf_tracking_firefox11`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_firefox11`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_firefox11` != &apos;---&apos;, CONCAT(&apos;status-firefox11&apos;, IF(LENGTH(`cf_status_firefox11`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_firefox11`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_thunderbird11` != &apos;---&apos;, CONCAT(&apos;tracking-thunderbird11&apos;, IF(LENGTH(`cf_tracking_thunderbird11`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_thunderbird11`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird11` != &apos;---&apos;, CONCAT(&apos;status-thunderbird11&apos;, IF(LENGTH(`cf_status_thunderbird11`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird11`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_seamonkey28` != &apos;---&apos;, CONCAT(&apos;tracking-seamonkey2.8&apos;, IF(LENGTH(`cf_tracking_seamonkey28`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_seamonkey28`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey28` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.8&apos;, IF(LENGTH(`cf_status_seamonkey28`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey28`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_firefox12` != &apos;---&apos;, CONCAT(&apos;tracking-firefox12&apos;, IF(LENGTH(`cf_tracking_firefox12`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_firefox12`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_firefox12` != &apos;---&apos;, CONCAT(&apos;status-firefox12&apos;, IF(LENGTH(`cf_status_firefox12`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_firefox12`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_thunderbird12` != &apos;---&apos;, CONCAT(&apos;tracking-thunderbird12&apos;, IF(LENGTH(`cf_tracking_thunderbird12`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_thunderbird12`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_thunderbird12` != &apos;---&apos;, CONCAT(&apos;status-thunderbird12&apos;, IF(LENGTH(`cf_status_thunderbird12`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_thunderbird12`, &apos;,&apos;), &apos;&apos;), IF(`cf_tracking_seamonkey29` != &apos;---&apos;, CONCAT(&apos;tracking-seamonkey2.9&apos;, IF(LENGTH(`cf_tracking_seamonkey29`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_tracking_seamonkey29`, &apos;,&apos;), &apos;&apos;), IF(`cf_status_seamonkey29` != &apos;---&apos;, CONCAT(&apos;status-seamonkey2.9&apos;, IF(LENGTH(`cf_status_seamonkey29`) &gt; 1, &apos;-&apos;, &apos;&apos;), `cf_status_seamonkey29`, &apos;,&apos;), &apos;&apos;)))</default_value>
+ <default_value/>
<description>An SQL expression that selects flags from custom fields.</description>
</parameter>
<parameter>
@@ -39,6 +39,11 @@
<default_value>localhost:9300</default_value>
<description/>
</parameter>
+ <parameter>
+ <name>PMAX_CF_ID</name>
+ <default_value>170</default_value>
+ <description>Maximum allowed custom field ID (for which we have db permission).</description>
+ </parameter>
</parameters>
<log>
<trans-log-table><connection/>
@@ -75,7 +80,7 @@
<size_rowset>100000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
- <unique_connections>Y</unique_connections>
+ <unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
@@ -955,7 +960,7 @@ WHERE
field.`name` IN (&apos;assigned_to&apos;, &apos;bug_severity&apos;, &apos;bug_status&apos;, &apos;component&apos;, &apos;flagtypes.name&apos;,
&apos;keywords&apos;, &apos;bug_group&apos;, &apos;op_sys&apos;, &apos;rep_platform&apos;, &apos;priority&apos;, &apos;product&apos;, &apos;resolution&apos;, &apos;status_whiteboard&apos;,
&apos;target_milestone&apos;, &apos;version&apos;)
- OR (field.`name` LIKE &apos;cf_%&apos; AND field.`name` NOT IN (&apos;cf_colo_site&apos;, &apos;cf_crash_signature&apos;, &apos;cf_tracking_thunderbird6&apos;, &apos;cf_tracking_thunderbird7&apos;, &apos;cf_status_thunderbird6&apos;, &apos;cf_status_thunderbird7&apos;))
+ OR (field.`name` LIKE &apos;cf_%&apos; AND field.`type` = 2 AND field.`id` &lt; ${PMAX_CF_ID} AND field.`name` NOT IN (&apos;cf_colo_site&apos;, &apos;cf_crash_signature&apos;))
)
AND `attach_id` IS NULL
ORDER BY
@@ -1005,7 +1010,7 @@ ORDER BY
, bugs.creation_ts
, CAST(DATE(bugs.creation_ts)+0 AS SIGNED INTEGER) AS created_on
, CAST(TIME(bugs.creation_ts)+0 AS SIGNED INTEGER) AS created_at
-, ${CF_FLAGS_SQL_PARAMETER} as flags_cf
+, ${CF_FLAGS_SQL} as flags_cf
FROM
bugs
JOIN profiles assignee ON assignee.userid = bugs.assigned_to
View
11 transformations/set_cf_flags_sql.ktr
@@ -9,6 +9,11 @@
<trans_status>0</trans_status>
<directory>&#47;</directory>
<parameters>
+ <parameter>
+ <name>PMAX_CF_ID</name>
+ <default_value>160</default_value>
+ <description>Maximum allowed custom field ID.</description>
+ </parameter>
</parameters>
<log>
<trans-log-table><connection/>
@@ -215,11 +220,13 @@ FROM `fielddefs`
WHERE
`name` LIKE &apos;cf_%&apos;
AND `name` != &apos;cf_crash_signature&apos;
- AND `name` != &apos;cf_colo_site&apos;</sql>
+ AND `name` != &apos;cf_colo_site&apos;
+ AND `id` &lt;= ${PMAX_CF_ID}
+ AND `type` = 2</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
- <variables_active>N</variables_active>
+ <variables_active>Y</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<cluster_schema/>
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
Please sign in to comment.
Something went wrong with that request. Please try again.