Skip to content

Commit

Permalink
release 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tstephen committed Oct 23, 2018
1 parent 3a40852 commit 59a9368
Show file tree
Hide file tree
Showing 24 changed files with 72 additions and 235 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ Sustainable Resource Planning
Release History
---------------

2.2.0 -
2.3.0 - 23 Oct 18

- Integration tests and bug fixes
- #288 Implement 'health-check' for returns
- #286 Render tables and graphs client side
- #284 Remove 'Import ERIC data' (now implicit)

2.2.0 - 02 Aug 18 - 3515b3c38eed136e3a5663340489bdc31041f786

- cosmetic changes and bug fixes

2.1.0 - 15 Mar 18

Expand Down
2 changes: 1 addition & 1 deletion app/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var replace = require('gulp-replace');
var scp = require('gulp-scp2');
var through2 = require('through2');
var zip = require('gulp-zip');
var vsn = '2.1.0';
var vsn = '2.3.0';

var argv = minimist(process.argv.slice(2));
var env = argv['env'] || 'dev';
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<groupId>digital.srp</groupId>
<artifactId>srp-root</artifactId>
<relativePath>..</relativePath>
<version>2.2.0</version>
<version>2.3.0</version>
</parent>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion macc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>digital.srp</groupId>
<artifactId>srp-root</artifactId>
<version>2.2.0</version>
<version>2.3.0</version>
<relativePath>..</relativePath>
</parent>

Expand Down
106 changes: 0 additions & 106 deletions macc/src/test/java/digital/srp/macc/model/InterventionTest.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.math.BigDecimal;
import java.math.MathContext;

import org.junit.Ignore;
import org.junit.Test;

import digital.srp.macc.maths.InterventionTypeValidator;
Expand Down Expand Up @@ -367,7 +366,6 @@ public void testSmokingCessationUsingTimeSeriesInputs() {
}

@Test
@Ignore
public void testSolarThermalWithRHI() {
InterventionType interventionType = new InterventionType();
interventionType.setName("Solar Thermal");
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<groupId>digital.srp</groupId>
<artifactId>srp-root</artifactId>
<version>2.2.0</version>
<version>2.3.0</version>
<packaging>pom</packaging>

<properties>
Expand Down
10 changes: 9 additions & 1 deletion server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>digital.srp</groupId>
<artifactId>srp-root</artifactId>
<version>2.2.0</version>
<version>2.3.0</version>
<relativePath>..</relativePath>
</parent>

Expand All @@ -38,6 +38,10 @@
</properties>

<dependencies>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
Expand Down Expand Up @@ -158,6 +162,10 @@
<executions>
<execution>
<id>pre-integration-test</id>
<configuration>
<wait>10000</wait>
<maxAttempts>6</maxAttempts>
</configuration>
<goals>
<goal>start</goal>
</goals>
Expand Down
7 changes: 0 additions & 7 deletions server/src/main/java/digital/srp/server/SrpConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

import java.util.List;

import javax.persistence.EntityManagerFactory;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration;
Expand All @@ -20,10 +17,6 @@
@Configuration
@ComponentScan(basePackages = { "digital.srp.server" })
public class SrpConfig extends RepositoryRestMvcConfiguration {

@Autowired
protected EntityManagerFactory entityManagerFactory;

// DO NOT put this in a reusable configuration to avoid clashes
@Override
public void configureMessageConverters(
Expand Down
6 changes: 3 additions & 3 deletions server/src/main/resources/static/self-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
<script src="js/env.js"></script>

<!-- include spec files here... -->
<script src="/webjars/sreport/2.2.0/specs/MgmtSpec.js"></script>
<script src="/webjars/sreport/2.2.0/specs/ReturnSpec.js"></script>
<script src="/webjars/sreport/2.2.0/specs/RoutesSpec.js"></script>
<script src="/webjars/sreport/2.3.0/specs/MgmtSpec.js"></script>
<script src="/webjars/sreport/2.3.0/specs/ReturnSpec.js"></script>
<script src="/webjars/sreport/2.3.0/specs/RoutesSpec.js"></script>

</head>
<body>
Expand Down
2 changes: 0 additions & 2 deletions server/src/test/java/digital/srp/server/ApplicationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class)
@DataJpaTest
public class ApplicationTests {

/**
Expand Down
6 changes: 4 additions & 2 deletions server/src/test/java/digital/srp/server/RestApiIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

public class RestApiIT {

private static final String VSN = "2.3.0";

private static ScheduledExecutorService globalScheduledThreadPool = Executors.newScheduledThreadPool(20);

private ObjectMapper objectMapper = new ObjectMapper();
Expand All @@ -31,7 +33,7 @@ public class RestApiIT {
public void test10MgmtApi() throws IOException {
StringBuilder sb = createScript(
"classpath:META-INF/resources/webjars/jasmine-boot/1.0.0/js/rest-helper.js",
"classpath:META-INF/resources/webjars/sreport/2.2.0/specs/MgmtSpec.js" );
"classpath:META-INF/resources/webjars/sreport/"+VSN+"/specs/MgmtSpec.js" );

JsonNode report = runScript(sb);
assertEquals(7, report.get("suite").get("totalSpecsDefined").asInt());
Expand All @@ -42,7 +44,7 @@ public void test10MgmtApi() throws IOException {
public void test20SustainabilityReturnApi() throws IOException {
StringBuilder sb = createScript(
"classpath:META-INF/resources/webjars/jasmine-boot/1.0.0/js/rest-helper.js",
"classpath:META-INF/resources/webjars/sreport/2.2.0/specs/ReturnSpec.js" );
"classpath:META-INF/resources/webjars/sreport/"+VSN+"/specs/ReturnSpec.js" );

JsonNode report = runScript(sb);
assertEquals(4, report.get("suite").get("totalSpecsDefined").asInt());
Expand Down
3 changes: 0 additions & 3 deletions server/src/test/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ srp.tomcat.ajp.enabled = false

logging.level.com.zaxxer.hikari=WARN
logging.level.com.knowprocess=WARN
logging.level.com.knowprocess.beans=WARN
logging.level.com.knowprocess.bpm=INFO
logging.level.com.knowprocess.resource=DEBUG
logging.level.digital.srp=WARN
logging.level.HikariPool=WARN
logging.level.io.onedecision=WARN
Expand Down
2 changes: 1 addition & 1 deletion sreport/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>digital.srp</groupId>
<artifactId>srp-root</artifactId>
<version>2.2.0</version>
<version>2.3.0</version>
<relativePath>..</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@

@Configuration
@ComponentScan(basePackages = { "digital.srp.sreport" })
@EntityScan({ "digital.srp.sreport.model" })
@EnableJpaRepositories({ "digital.srp.sreport.repositories" })
@EntityScan({ "digital.srp.sreport.model", "io.onedecision.engine.decisions.model",
"io.onedecision.engine.domain.model" })
@EnableJpaRepositories({ "digital.srp.sreport.repositories",
"io.onedecision.engine.decisions.repositories",
"io.onedecision.engine.domain.repositories" })
@EnableJpaAuditing
public class SReportConfiguration extends RepositoryRestMvcConfiguration {

Expand Down
8 changes: 7 additions & 1 deletion sreport/src/main/resources/data/Questions-201617b.csv
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,10 @@ NO_HEALTHCARE_TRAVEL_CLAIMS$$$ERIC$$number$$$$
LAUNDRY_RETURN_PCT$$$ERIC$$number$$$$
BIZ_MILEAGE$$$ERIC$$number$$$$
NO_LONG_STAY_HOSPITAL_SITES$$$ERIC$$number$$$$
NO_NON_HOSPITAL_PATIENT_SITES$$$ERIC$$number$$$$
NO_NON_HOSPITAL_PATIENT_SITES$$$ERIC$$number$$$$
PCT_TEMP_MONITORED$$$ERIC$$number$$$$
NO_FALSE_ALARMS_CALL_OUT$$$ERIC$$number$$$$
NO_FALSE_ALARMS_NO_CALL_OUT$$$ERIC$$number$$$$
OVERHEATING_EVENTS$$$ERIC$$number$$$$
CIP_PLANNED_VAL$$$ERIC$$number$$$$
CIP_ACTUAL_VAL$$$ERIC$$number$$$$
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package digital.srp.sreport;

import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
Expand All @@ -13,7 +12,6 @@
public class ApplicationTest {

@Test
@Ignore
public void contextLoads() {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public void testImport() {
List<Question> questions = new QuestionCsvImporter().readQuestions();
System.out.println(
String.format(" found %1$d returns", questions.size()));
assertEquals(324, questions.size());
assertEquals(330, questions.size());

// assert expected values of record (first currently complete)
//TOTAL_ENERGY_COST$Total Energy Cost (all energy supplies)$£$ERIC S08_01$The total cost of electricity, gas, oil, and coal from all sources (including utility supplier, local source, renewable source), net of any costs that are charged to other organisations for which the trust provides energy (see apportionment rules). $
Expand Down
Loading

0 comments on commit 59a9368

Please sign in to comment.