Skip to content

Commit ba245b6

Browse files
authored
Merge pull request #157 from gtt-project/ftr/release
Prepares 4.1 release
2 parents fb7f25d + 61da20e commit ba245b6

File tree

3 files changed

+37
-25
lines changed

3 files changed

+37
-25
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ Redmine GTT plugins **require PostgreSQL/PostGIS** and will not work with SQLite
2626

2727
Create a PostGIS-enabled database:
2828

29-
```
29+
```sh
3030
createdb -U postgres -O redmine redmine
3131
psql -U postgres -d redmine -c "CREATE EXTENSION postgis;"
3232
```
3333

3434
To install Redmine GTT plugin, download or clone this repository in your Redmine installation plugins directory!
3535

36-
```
36+
```sh
3737
cd path/to/plugin/directory
3838
git clone https://github.com/gtt-project/redmine_gtt.git
3939
cd redmine_gtt
@@ -43,7 +43,7 @@ npx webpack
4343

4444
Then run
4545

46-
```
46+
```sh
4747
export GEM_PG_VERSION=your-pg-version # skip this line if redmine use pg 1.2.2.
4848
export GEM_RGEO_ACTIVERECORD_VERSION=your-rgeo-activerecord-version # skip this line if using rgeo-activerecord 6.2.2.
4949
export GEM_ACTIVERECORD_POSTGIS_ADAPTER_VERSION=your-activerecord-postgis-adapter-version # skip this line if using activerecord-postgis-adapter 5.2.3.
@@ -55,9 +55,8 @@ Before restarting Redmine, you need to set `postgis` adapter instead of `postgre
5555

5656
After restarting Redmine, you should be able to see the Redmine GTT plugin in the Plugins page.
5757

58-
More information on installing (and uninstalling) Redmine plugins can be found here: http://www.redmine.org/wiki/redmine/Plugins
59-
## API
60-
[Redmine GTT API](doc/api.md)
58+
More information on installing (and uninstalling) Redmine plugins can be found in the [Redmine Plugin docs](http://www.redmine.org/wiki/redmine/Plugins).
59+
6160
## How to use
6261

6362
1. Go to plugin configuration for global settings
@@ -68,6 +67,10 @@ More information on installing (and uninstalling) Redmine plugins can be found h
6867

6968
For more information with screenshots see the [Getting Started](doc/getting-started.md) guide.
7069

70+
## Plugin API
71+
72+
For more information see the [Redmine GTT API](doc/api.md) docs.
73+
7174
## Contributing and Support
7275

7376
The GTT Project appreciates any [contributions](https://github.com/gtt-project/.github/blob/main/CONTRIBUTING.md)! Feel free to contact us for [reporting problems and support](https://github.com/gtt-project/.github/blob/main/CONTRIBUTING.md).
@@ -76,15 +79,15 @@ The GTT Project appreciates any [contributions](https://github.com/gtt-project/.
7679

7780
You can debug frontend by running the following command on another console:
7881

79-
```
82+
```sh
8083
npx webpack --watch --mode=development
8184
```
8285

8386
### How to run test
8487

8588
You can run the plugin test on rails test environment by the following command:
8689

87-
```
90+
```sh
8891
bundle exec rake db:create
8992
RAILS_ENV=test bundle exec rake db:migrate
9093
RAILS_ENV=test bundle exec rake redmine:plugins:migrate
@@ -93,8 +96,7 @@ RAILS_ENV=test NAME=redmine_gtt bundle exec rake redmine:plugins:test
9396

9497
## Version History
9598

96-
- **4.0.0**: Support Redmine >= 5.0 and drop Redmine <= 4.1 support
97-
- See [all releases](https://github.com/gtt-project/redmine_gtt/releases) with release notes.
99+
See [all releases](https://github.com/gtt-project/redmine_gtt/releases) with release notes.
98100

99101
## Authors
100102

doc/api.md

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,36 @@
11
# GTT API
22

33
## Global Level API Endpoint
4-
### API Endpoint
5-
```
4+
5+
### Plugin settings API Endpoint
6+
7+
```text
68
GET /gtt/settings.json
79
```
10+
811
Get all the GTT default settings and also all the global GTT layers data.
912

1013
***Request***
11-
```
14+
15+
```text
1216
http://localhost:3000/gtt/settings.json
1317
```
1418

1519
***Response***
20+
1621
```json
1722
{
1823
"gttDefaultSetting": {
1924
"defaultTrackerIcon": [
2025
{
21-
"trackerID": "1",
26+
"trackerID": 1,
2227
"trackerName": "Task",
2328
"icon": "maki-square"
2429
},
2530
],
2631
"defaultStatusColor": [
2732
{
28-
"statusID": "1",
33+
"statusID": 1,
2934
"statusName": "New",
3035
"color": "#00ff00"
3136
},
@@ -40,10 +45,10 @@ http://localhost:3000/gtt/settings.json
4045
"LineString",
4146
"Polygon"
4247
],
43-
"GeoJsonUpload": null
48+
"GeoJsonUpload": false
4449
},
4550
"geocoderSetting": {
46-
"enableGeocodingOnMap": "true",
51+
"enableGeocodingOnMap": true,
4752
"geocoderOptions": "{}"
4853
}
4954
},
@@ -61,7 +66,7 @@ http://localhost:3000/gtt/settings.json
6166
},
6267
{
6368
"id": 2,
64-
"name": "GIS Satellite Map",
69+
"name": "Satellite Map",
6570
"type": "ol.source.XYZ",
6671
"options": {
6772
"url": "https://cyberjapandata.gsi.go.jp/xyz/seamlessphoto/{z}/{x}/{y}.jpg",
@@ -75,23 +80,29 @@ http://localhost:3000/gtt/settings.json
7580
```
7681

7782
## Project Level API Endpoint
78-
### API Endpoint
79-
```
83+
84+
### Project settings API Endpoint
85+
86+
```text
8087
GET /projects/{project_identifier}.json
8188
```
89+
8290
Get project and selected GTT layer data of a specific project.
8391

8492
***Request***
85-
```
93+
94+
```text
8695
http://localhost:3000/projects/1.json
8796
```
97+
8898
***Response***
99+
89100
```json
90101
{
91102
"project": {
92103
"id": 1,
93-
"name": "first testing project ",
94-
"identifier": "first-testing-project",
104+
"name": "My Project ",
105+
"identifier": "my-project",
95106
"description": "",
96107
"homepage": "",
97108
"status": 1,
@@ -121,4 +132,3 @@ http://localhost:3000/projects/1.json
121132
}
122133
}
123134
```
124-

init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
author_url 'https://github.com/georepublic'
99
url 'https://github.com/gtt-project/redmine_gtt'
1010
description 'Adds location-based task management and maps'
11-
version '4.0.0'
11+
version '4.1.0'
1212

1313
requires_redmine :version_or_higher => '4.2.0'
1414

0 commit comments

Comments
 (0)