You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ABOUT.md
+6-9
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,6 @@
11
11
-[Usage](#usage)
12
12
-[How to review a changeset?](#how-to-review-a-changeset)
13
13
-[Changeset and Mapper details](#changeset-and-mapper-details)
14
-
-[Using Changeset-map](#using-changeset-map)
15
14
-[Reviewing changesets in OSMCha from OpenStreetMap](#reviewing-changesets-in-osmcha-from-openstreetmap)
16
15
-[Filters](#filters)
17
16
-[Basic filters](#basic-filters)
@@ -136,7 +135,7 @@ It is important that the reviewer has the necessary information about the
136
135
changeset and understand the diff of modifications in the OSM data.
137
136
138
137
For this purpose, OSMCha offers an interface similar to OpenStreetMap but with
139
-
additional tools such as [changeset-map](https://github.com/osmlab/changeset-map)to visualise the edits, information about
138
+
additional tools to visualise the edits, information about
140
139
the mapper, other information related to the changeset and OSM user history that
141
140
can help the reviewer identify a problematic edits on OSM. For a deep-dive into
142
141
what a problematic edit is on OSM, please refer to our guide on
@@ -179,9 +178,9 @@ what a problematic edit is on OSM, please refer to our guide on
179
178
180
179
* More details on the mapper can be found under the `User tab`. This gives more context to the reviewer about the user history and their pattern of contribution to OpenStreetMap.
181
180
182
-
### Using Changeset-map
181
+
### Using the map view
183
182
184
-
*Changeset-map is a changeset visualiser for OSM. It helps the reviewer understand the edits of a changeset both in terms of geometry and feature properties.
183
+
*One of OSMCha's core features is the ability to visualize a changeset on a map. Every map element that the changeset touched is shown, colored to indicate whether the element was created, modified, or deleted. Clicking on a map element reveals additional details about what was changed (for example, which OSM tags were modified). The map view helps you understand the complete effect of a changeset.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# Contributing to OSMCha
2
2
3
3
The current OSMCHA is broken into two repositories. You can file bug in any of these repositories.
4
-
1.[osmcha-django](https://github.com/willemarcel/osmcha-django) Handles the backend of the OSMCha.
5
-
2.[osmcha-frontend](https://github.com/mapbox/osmcha-frontend) Is the frontend application.
4
+
1.[osmcha-django](https://github.com/OSMCha/osmcha-django) Handles the backend of the OSMCha.
5
+
2.[osmcha-frontend](https://github.com/OSMCha/osmcha-frontend) Is the frontend application.
6
6
7
7
## Code of Conduct
8
8
@@ -14,7 +14,8 @@ Please read the project
14
14
We'd love to hear what you think about OSMCha, about any specific problems or
15
15
concerns you have. Here's a quick list of things to consider:
16
16
17
-
Please [search for your issue before filing it: many bugs and improvements have already been reported](https://github.com/search?l=&q=repo%3Amapbox%2Fosmcha-frontend&type=Issues)
17
+
Please [search for your issue](https://github.com/search?l=&q=repo%3AOSMCha%2Fosmcha-frontend&type=Issues)
18
+
before filing it; many bugs and improvements have already been reported.
*[OSMCha python library](https://github.com/willemarcel/osmcha) is used to analyse the OSM changesets
12
-
*[OSM Compare](https://github.com/mapbox/osm-compare) is used to analyse OSM features
13
-
*[OSM Changeset Viewer](https://github.com/osmlab/changeset-map) is used to display the changeset on the main map
14
-
10
+
*[`osmcha-django`](https://github.com/OSMCha/osmcha-django) - the backend Django application
11
+
*[`osmcha` (python library)](https://github.com/OSMCha/osmcha) - used by the backend to analyse OSM changesets
12
+
*[`maplibre-adiff-viewer`](https://github.com/OSMCha/maplibre-adiff-viewer) - used to display the changeset on the main map
15
13
16
14
## Setting up editor
17
15
@@ -30,27 +28,21 @@ This repository uses [prettier](https://github.com/prettier/prettier) to keep th
30
28
### Local development
31
29
32
30
1.`yarn start`
33
-
1. Open [https://localhost:3000?filters=%7B%22date__gte%22%3A%5B%7B%22label%22%3A%222020-04-01%22%2C%22value%22%3A%222020-04-01%22%7D%5D%7D](https://localhost:3000?filters=%7B%22date__gte%22%3A%5B%7B%22label%22%3A%222020-04-01%22%2C%22value%22%3A%222020-04-01%22%7D%5D%7D) of e.g. [changeset#91638199](https://localhost:3000/changesets/91638199?filters=%7B%22date__gte%22%3A%5B%7B%22label%22%3A%222020-04-01%22%2C%22value%22%3A%222020-04-01%22%7D%5D%7D)
34
-
- The app runs with https; Firefox is recommended since it allows self signed certificates.
35
-
- The staging database does not have all the changesets that production has, therefore the filter is needed.
36
-
37
-
**To also edit the part of the UI that is provided by the OSM Changeset Viewer**
38
-
39
-
Checkout https://github.com/osmlab/changeset-map in a sibling folder.
40
-
41
-
_In `./changeset-map`:_
42
-
43
-
1.`yarn link`
44
-
1.`yarn build --watch`
45
-
46
-
_In `./osmcha-frontend`_
47
-
48
-
1.`yarn link "changeset-map"`
49
-
1.`yarn start`
50
-
51
-
Edits in both projects will result in a rebuild and reload the browser.
52
-
53
-
When finished, reset "osmcha-frontend" back to the npm version of "changeset-map" with `yarn add changeset-map@latest`
31
+
1. Open [http://127.0.0.1:3000](http://127.0.0.1:3000)
32
+
33
+
Note: if you are running the frontend against the production backend (the
34
+
default), you won't be able to use OAuth to log in through the UI. Instead
35
+
you can copy your auth token from the DevTools console on the production
36
+
website (`localStorage.getItem("token")`) and then paste it into the console
37
+
on the development site (`localStorage.setItem("token", <value>)`). Refresh
need to register your own OAuth app on openstreetmap.org, configure the backend
43
+
to use that secret key, and then point this frontend at your local backend by
44
+
setting the `REACT_APP_PRODUCTION_API_URL` environment variable. After that,
45
+
normal OAuth login through the frontend UI should work.
54
46
55
47
### Local testing
56
48
@@ -60,44 +52,11 @@ Test the application before commiting any changes. If you encounter any error ma
60
52
yarn test
61
53
```
62
54
63
-
## Deploy/Release
64
-
65
-
- There are three stacks to deploy to
66
-
-~~`yarn deploy:dev` deploys it to `mapbox.github.io`~~ (currently broken)
67
-
-`yarn deploy:staging` deploys it to `staging.osmcha.org`
68
-
-`yarn deploy:prod` deploys it to `osmcha.org`
69
-
70
-
1. Run the tests with `yarn test`
71
-
72
-
2. (optional) before deploy, you might want to increment the version number of application.
73
-
* We use `minor` for all non-drastic changes.
74
-
* The `patch` is reserved for minor changes.
75
-
* We try to stick to sem-ver.
76
-
```bash
77
-
npm version minor
78
-
```
79
-
80
-
3. Then build the app with the following command.
81
-
```bash
82
-
yarn build:<stack>
83
-
```
84
-
* here stack could be `dev`, `staging`, `prod`. Refer to package.json for more info.
85
-
86
-
4. The next step involves deploying the `build` folder to github. If you get an error like this `error: failed to push some refs to 'git'`while doing the deploy step. Run `rm -rf node_modules/gh-pages/.cache/`.
87
-
```
88
-
yarn deploy:<stack>
89
-
```
90
-
* here stack could be `dev`, `staging`, `prod`. Refer to package.json for more info.
91
-
*`oh-pages` branch handles the build for`staging`, `prod` stacks.
92
-
*`gh-pages` branch handles the build for`dev` stack.
93
-
55
+
## Releasing and Deployment
94
56
95
-
5. (optional) If you want to see the new changes on a `staging` or `prod` stack. You will need to draft a new github release. The convention is to append `-staging` or `-production` or just `-server` to the current version tag for the server to consume the build and separate concerns.
96
-
*for eg. if the version npm module version was `v0.16.3`.
97
-
* draft a github release with a tag `v0.16.3-staging`. (Note the name spacing)
98
-
* supply this version tag to the server.
99
-
* Refer to githubs [article](https://help.github.com/articles/creating-releases/) for creating releases.
57
+
Deployment of the [osmcha.org](https://osmcha.org) instance is managed in the [`osmcha-deploy`](https://github.com/OSMCha/osmcha-deploy). Tags pushed to this repo are automatically built into container images. Modifying the code in `osmcha-deploy` to change the pinned image version will automatically redeploy the production website.
100
58
59
+
When tagging a new release, be sure to also update the [CHANGELOG](./CHANGELOG.md) file to describe what's changed.
0 commit comments