Skip to content

Commit ed02fc5

Browse files
committed
Fixing bug related to updating the dataset description.
1 parent 0d91b13 commit ed02fc5

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

common/src/main/java/gov/nasa/jpl/edrn/labcas/Utils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,10 @@ public final static void addProductType(String productTypeName, String datasetDe
343343
XmlRpcFileManagerClient client = new XmlRpcFileManagerClient(new URL(fmURL));
344344

345345
// create a product type
346-
String description = productTypeName;
347346
String repository = REPOSITORY.replace("[LABCAS_ARCHIVE]", System.getenv(Constants.ENV_LABCAS_ARCHIVE));
348347
String versioner = VERSIONER;
349348
String id = "urn:edrn:"+productTypeName;
350-
ProductType productType = new ProductType(id, productTypeName, description, repository, versioner);
349+
ProductType productType = new ProductType(id, productTypeName, datasetDescription, repository, versioner);
351350

352351
// add metadata extractors
353352
List<ExtractorSpec> extractors = new ArrayList<ExtractorSpec>();

common/src/main/java/gov/nasa/jpl/edrn/labcas/tasks/LabcasUploadInitTaskInstance.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void run(Metadata metadata, WorkflowTaskConfiguration config) throws Work
7777
Utils.makeProductTypesXmlFile(productTypesXmlFile, productType, datasetDescription, datasetMetadata);
7878

7979
// must upload the same product type through the File Manager XML/RPC interface so it can be used right away
80-
// without waiting for the static XML metadtaa to be ingested at the next startup
80+
// without waiting for the static XML metadata to be ingested at the next startup
8181
Utils.addProductType(productType, datasetDescription, datasetMetadata);
8282

8383
} catch(Exception ioe) {

examples/labcas-xmlrpc-example-filemgr-client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def listProductTypes(server):
2929

3030
# add new product type
3131
# will override if existing already
32+
'''
3233
ptHash = { 'id':"XYZ",
3334
'name': 'XYZ_Product_Type',
3435
'description': 'XYZ product type',
@@ -44,4 +45,5 @@ def listProductTypes(server):
4445
print 'Added product type: %s' % ptName
4546
4647
listProductTypes(server)
48+
'''
4749

workflows/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>gov.nasa.jpl.edrn.labcas</groupId>
1616
<artifactId>labcas-backend</artifactId>
17-
<version>0.1</version>
17+
<version>0.2</version>
1818
<relativePath>../pom.xml</relativePath>
1919
</parent>
2020

0 commit comments

Comments
 (0)