Skip to content

Commit

Permalink
Releasing DataSync 1.5.4 with some minor clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
ayn leslie committed Dec 31, 2014
1 parent cd42661 commit d3838e3
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ mvn clean compile -Dmaven.test.skip=true assembly:single
This puts the JAR file into the "target" directory inside the repo. So to open DataSync, simply:
```
cd target
java -jar DataSync-1.5.3-jar-with-dependencies.jar
java -jar DataSync-1.5.4-jar-with-dependencies.jar
```
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
<modelVersion>4.0.0</modelVersion>
<groupId>DataSync</groupId>
<artifactId>DataSync</artifactId>
<version>1.5.3</version>
<version>1.5.4</version>
<developers>
<developer>
<name>Ayn Leslie-Cook</name>
<email>[email protected]</email>
<organization>Socrata</organization>
</developer>
<developer>
<name>Adrian Laurenzi</name>
<email>[email protected]</email>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ public boolean hasTimestampFormatting() {
public Set<String> lookupTimestampFormatting() {
Set<String> formats = new HashSet<>();

for (String format : floatingTimestampFormat)
formats.add(format);
for (String format : fixedTimestampFormat)
formats.add(format);
if (floatingTimestampFormat != null)
for (String format : floatingTimestampFormat)
formats.add(format);
if (fixedTimestampFormat != null)
for (String format : fixedTimestampFormat)
formats.add(format);
if (overrides != null) {
for (ColumnOverride override : overrides.values()) {
if (override.timestampFormat != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,17 @@ public static JobStatus validateJobParams(UserPreferences userPrefs, Integration
return noHeaders;
}

JobStatus controlHeaderAgreement = checkControlAgreement(fileControl, schema, rawHeaders,
intermediateHeaders, publishFile.getName());
if (controlHeaderAgreement.isError())
return controlHeaderAgreement;

Set<String> synthetics = new HashSet<>();
if (fileControl.hasSyntheticLocations()) synthetics = fileControl.syntheticLocations.keySet();
JobStatus csvDatasetAgreement = checkColumnAgreement(schema, finalHeaders, synthetics, publishFile.getName());
if (csvDatasetAgreement.isError())
return csvDatasetAgreement;

JobStatus controlHeaderAgreement = checkControlAgreement(fileControl, schema, rawHeaders,
intermediateHeaders, publishFile.getName());
if (controlHeaderAgreement.isError())
return controlHeaderAgreement;

}
} catch (Exception e) {
// Not going to fail jobs on the validation check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ public void testIsLatestVersion() throws URISyntaxException {

@Test
public void testGetThisVersion() {
TestCase.assertEquals("1.5.3", VersionProvider.getThisVersion());
TestCase.assertEquals("1.5.4", VersionProvider.getThisVersion());
}
}

0 comments on commit d3838e3

Please sign in to comment.