Omaha #4001: Ensure WarnGen sends properly populated SendPracticeProductRequest objects when transmitting in practice mode, create delta script for hazard services db changes.
Change-Id: I1debd8c239362a25cde641207ec57d7fc4c9cfd7 Former-commit-id: f1984e0a25c68fc21c1a9af833d1de2634bb489d
This commit is contained in:
parent
c562618d28
commit
c5961ac23e
2 changed files with 17 additions and 0 deletions
|
@ -143,6 +143,7 @@ import com.raytheon.uf.common.site.SiteMap;
|
||||||
import com.raytheon.uf.common.status.IUFStatusHandler;
|
import com.raytheon.uf.common.status.IUFStatusHandler;
|
||||||
import com.raytheon.uf.common.status.UFStatus;
|
import com.raytheon.uf.common.status.UFStatus;
|
||||||
import com.raytheon.uf.common.status.UFStatus.Priority;
|
import com.raytheon.uf.common.status.UFStatus.Priority;
|
||||||
|
import com.raytheon.uf.common.time.SimulatedTime;
|
||||||
import com.raytheon.uf.common.time.util.TimeUtil;
|
import com.raytheon.uf.common.time.util.TimeUtil;
|
||||||
import com.raytheon.uf.common.wmo.WMOHeader;
|
import com.raytheon.uf.common.wmo.WMOHeader;
|
||||||
import com.raytheon.uf.viz.core.VizApp;
|
import com.raytheon.uf.viz.core.VizApp;
|
||||||
|
@ -343,6 +344,7 @@ import com.raytheon.viz.ui.dialogs.SWTMessageBox;
|
||||||
* 11Sep2014 3580 mapeters Replaced SerializationTuil usage with JAXBManager,
|
* 11Sep2014 3580 mapeters Replaced SerializationTuil usage with JAXBManager,
|
||||||
* removed IQueryTransport usage (no longer exists).
|
* removed IQueryTransport usage (no longer exists).
|
||||||
* 20Oct2014 3685 randerso Made conversion to upper case conditional on product id
|
* 20Oct2014 3685 randerso Made conversion to upper case conditional on product id
|
||||||
|
* 15Feb2015 4001 dgilling Ensure all fields are set in SendPracticeProductRequest.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -5108,6 +5110,9 @@ public class TextEditorDialog extends CaveSWTDialog implements VerifyListener,
|
||||||
SendPracticeProductRequest req = new SendPracticeProductRequest();
|
SendPracticeProductRequest req = new SendPracticeProductRequest();
|
||||||
req.setProductText(TextDisplayModel.getInstance().getProduct(
|
req.setProductText(TextDisplayModel.getInstance().getProduct(
|
||||||
token));
|
token));
|
||||||
|
req.setNotifyGFE(true);
|
||||||
|
req.setDrtString(new SimpleDateFormat("yyyyMMdd_HHmm")
|
||||||
|
.format(SimulatedTime.getSystemTime().getTime()));
|
||||||
|
|
||||||
ThriftClient.sendRequest(req);
|
ThriftClient.sendRequest(req);
|
||||||
} catch (VizException e) {
|
} catch (VizException e) {
|
||||||
|
|
12
deltaScripts/15.1.1/DR4001/dropHazardServicesTables.sh
Normal file
12
deltaScripts/15.1.1/DR4001/dropHazardServicesTables.sh
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# DR #4001 - force hazard services tables to be recreated
|
||||||
|
|
||||||
|
PSQL="/awips2/psql/bin/psql"
|
||||||
|
|
||||||
|
echo "INFO: Dropping hazard services tables"
|
||||||
|
|
||||||
|
${PSQL} -U awips -d metadata -q -c "DROP TABLE IF EXISTS productdata, producttext, practice_hazards, practice_hazards_attributes, hazards_interoperability, hazards_interoperability_gfe CASCADE;"
|
||||||
|
${PSQL} -U awips -d metadata -q -c "DROP TABLE IF EXISTS practice_hazards_interoperability, practice_hazards_interoperability_gfe CASCADE;"
|
||||||
|
${PSQL} -U awips -d metadata -q -c "UPDATE plugin_info SET initialized=false WHERE name='hazards' OR name ='com.raytheon.uf.common.hazards.productgen';"
|
||||||
|
|
||||||
|
echo "INFO: Hazard services tables successfully dropped."
|
Loading…
Add table
Reference in a new issue