Skip to content

Commit

Permalink
Merge pull request #409 from devgateway/develop
Browse files Browse the repository at this point in the history
Develop into master berore 1.5.0
  • Loading branch information
mpostelnicu authored Dec 4, 2019
2 parents 3e68083 + c2acd2e commit 8d73edc
Show file tree
Hide file tree
Showing 44 changed files with 2,500 additions and 2,032 deletions.
10 changes: 5 additions & 5 deletions forms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.devgateway.toolkit</groupId>
<artifactId>makueni</artifactId>
<version>1.4.1-SNAPSHOT</version>
<version>1.5.0-SNAPSHOT</version>
</parent>

<properties>
Expand All @@ -44,19 +44,19 @@
<dependency>
<groupId>org.devgateway.toolkit</groupId>
<artifactId>persistence</artifactId>
<version>1.4.1-SNAPSHOT</version>
<version>1.5.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.devgateway.toolkit</groupId>
<artifactId>persistence-mongodb</artifactId>
<version>1.4.1-SNAPSHOT</version>
<version>1.5.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.devgateway.toolkit</groupId>
<artifactId>ui</artifactId>
<version>1.4.1-SNAPSHOT</version>
<version>1.5.0-SNAPSHOT</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -95,7 +95,7 @@
<dependency>
<groupId>org.devgateway.toolkit</groupId>
<artifactId>web</artifactId>
<version>1.4.1-SNAPSHOT</version>
<version>1.5.0-SNAPSHOT</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title>Makueni</title>
<link rel="icon" href="ui/assets/favicon-32x32.ico" sizes="32x32" type="image/x-icon"/>
<title>Government of Makueni County Open Contracting Portal</title>
</head>
<body>
<wicket:container wicket:id="scripts-container"/>
Expand Down
4 changes: 2 additions & 2 deletions persistence-mongodb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
<parent>
<groupId>org.devgateway.toolkit</groupId>
<artifactId>makueni</artifactId>
<version>1.4.1-SNAPSHOT</version>
<version>1.5.0-SNAPSHOT</version>
</parent>

<dependencies>
<dependency>
<groupId>org.devgateway.toolkit</groupId>
<artifactId>persistence</artifactId>
<version>1.4.1-SNAPSHOT</version>
<version>1.5.0-SNAPSHOT</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@ public class MakueniPlanning extends Planning {
+ " Items should not be duplicated, but a quantity of 2 specified instead.")
private Set<Item> items = new LinkedHashSet<>();

@JsonProperty("fiscalYear")
@ExcelExport
@JsonPropertyDescription("Allowing Fiscal Year under Planning")
private String fiscalYear;


public String getFiscalYear() {
return fiscalYear;
}

public void setFiscalYear(String fiscalYear) {
this.fiscalYear = fiscalYear;
}

public Set<Item> getItems() {
return items;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public static final class FieldNames {
public static final String BUYER_ID = "buyer._id";
public static final String BUYER_NAME = "buyer.name";
public static final String AWARDS_DATE = "awards.date";
public static final String PLANNING_FISCAL_YEAR = "planning.fiscalYear";
public static final String AWARDS_FIRST_TIME_WINNER = "awards.firstTimeWinner";
public static final String AWARDS_STATUS = "awards.status";
public static final String AWARDS_SUPPLIERS_ID = "awards.suppliers._id";
Expand Down Expand Up @@ -65,6 +66,8 @@ public static final class Filters {

public static final String AWARD_STATUS = "awardStatus";

public static final String FISCAL_YEAR = "fiscalYear";

public static final String TENDER_STATUS = "tenderStatus";

public static final String BID_TYPE_ID = "bidTypeId";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ public void createPostImportStructures() {
.ensureIndex(new Index().on(MongoConstants.FieldNames.AWARDS_SUPPLIERS_NAME, Direction.ASC));
getTemplate().indexOps(Release.class)
.ensureIndex(new Index().on(MongoConstants.FieldNames.AWARDS_DATE, Direction.ASC));
getTemplate().indexOps(Release.class)
.ensureIndex(new Index().on(MongoConstants.FieldNames.PLANNING_FISCAL_YEAR, Direction.ASC));
getTemplate().indexOps(Release.class)
.ensureIndex(new Index().on(MongoConstants.FieldNames.AWARDS_FIRST_TIME_WINNER, Direction.ASC));
getTemplate().indexOps(Release.class)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Fiscal Year

Allowing Fiscal Year under Planning

```
{
"definitions": {
"Planning": {
"properties": {
"fiscalYear": {
"title": "Fiscal Year",
"type": [
"string",
"null"
]
}
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": {
"en": "Fiscal Year"
},
"description": {
"en": "Allowing Fiscal Year under Planning"
},
"documentationUrl": {
"en": "https://github.com/devgateway/forms-makueni/tree/master/persistence-mongodb/src/main/resources/extensions/fiscal_year"
},
"compatibility": [
"1.1"
],
"schemas": [
"release-schema.json"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"definitions": {
"Planning": {
"properties": {
"fiscalYear": {
"title": "Fiscal Year",
"type": [
"string",
"null"
]
}
}
}
}
}
2 changes: 1 addition & 1 deletion persistence/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>org.devgateway.toolkit</groupId>
<artifactId>makueni</artifactId>
<version>1.4.1-SNAPSHOT</version>
<version>1.5.0-SNAPSHOT</version>
</parent>

<dependencies>
Expand Down
7 changes: 7 additions & 0 deletions persistence/src/main/resources/ehcache.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
diskExpiryThreadIntervalSeconds="120"
/>

<cache name="fiscalYearsJson" eternal="true" statistics="true" maxEntriesLocalHeap="1000"
overflowToDisk="true"
maxElementsOnDisk="10000000"
diskPersistent="true"
diskExpiryThreadIntervalSeconds="120"
/>

<cache name="genericPagingRequestJson" eternal="true" statistics="true" maxEntriesLocalHeap="10000"
overflowToDisk="true"
maxElementsOnDisk="10000000"
Expand Down
31 changes: 31 additions & 0 deletions persistence/src/main/resources/liquibase-changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -580,4 +580,35 @@
</sql>
</changeSet>

<changeSet id="OCMAKU-448" author="mpostelnicu">
<preConditions onFail="CONTINUE">
<tableExists tableName="CATEGORY"/>
</preConditions>
<insert tableName="CATEGORY">
<column name="ID" valueComputed="nextval('hibernate_sequence')"/>
<column name="LABEL" value="Framework Agreement"/>
<column name="DTYPE" value="ProcurementMethod"/>
</insert>
<insert tableName="CATEGORY">
<column name="ID" valueComputed="nextval('hibernate_sequence')"/>
<column name="LABEL" value="Two-stage Tendering"/>
<column name="DTYPE" value="ProcurementMethod"/>
</insert>
<insert tableName="CATEGORY">
<column name="ID" valueComputed="nextval('hibernate_sequence')"/>
<column name="LABEL" value="Design Competition"/>
<column name="DTYPE" value="ProcurementMethod"/>
</insert>
<insert tableName="CATEGORY">
<column name="ID" valueComputed="nextval('hibernate_sequence')"/>
<column name="LABEL" value="Force Account"/>
<column name="DTYPE" value="ProcurementMethod"/>
</insert>
<insert tableName="CATEGORY">
<column name="ID" valueComputed="nextval('hibernate_sequence')"/>
<column name="LABEL" value="Electronic Reverse Auction"/>
<column name="DTYPE" value="ProcurementMethod"/>
</insert>
</changeSet>

</databaseChangeLog>
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.devgateway.toolkit</groupId>
<artifactId>makueni</artifactId>
<version>1.4.1-SNAPSHOT</version>
<version>1.5.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Makueni</name>
<description>DG Toolkit archetype - quick and easy way to start new projects through a working template
Expand Down
Binary file added ui/assets/favicon-32x32.ico
Binary file not shown.
3 changes: 2 additions & 1 deletion ui/dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>OC Explorer</title>
<title>Government of Makueni County Open Contracting Portal</title>
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css"/>
<link rel="stylesheet" href="node_modules/leaflet/dist/leaflet.css">
<link rel="icon" href="assets/favicon-32x32.ico" sizes="32x32" type="image/x-icon">
</head>
<body>
<div id="dg-container"></div>
Expand Down
Loading

0 comments on commit 8d73edc

Please sign in to comment.