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
Remove v1 API support and transition to v2 exclusively (#521)
* refactor: remove v1 API deprecation middleware and v1 configuration settings
* refactor: restrict API version routing to v2 only in urls.py
* refactor: remove V1 support and hardcode V2 in OrganizationViewSet and related views
* refactor: remove rorapi v1 models, serializers, and index template
* refactor: remove v1 support and consolidate matching and queries to v2
* refactor: remove version parameter from check_ror_id and its calls
* test: delete v1 tests and refactor v2 unit tests to remove versioning
* docs: update README to default to v2 schema indexing and endpoints
* refactor: improve file handling in BulkUpdate and clean up unused vars
Copy file name to clipboardExpand all lines: README.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,11 +35,11 @@ ROR staff should replace values in [] with valid credential values. External use
35
35
36
36
3. Index the latest ROR dataset from https://github.com/ror-community/ror-data
37
37
38
-
docker-compose exec web python manage.py setup v1.0-2022-03-17-ror-data -s 1
38
+
docker-compose exec web python manage.py setup v1.0-2022-03-17-ror-data -s 2
39
39
40
40
*Note: You must specify a dataset that exists in [ror-data](https://github.com/ror-community/ror-data)*
41
41
42
-
4.<http://localhost:9292/organizations>.
42
+
4.<http://localhost:9292/v2/organizations>.
43
43
44
44
5. Optionally, start other services, such as [ror-app](https://github.com/ror-community/ror-app) (the search UI) or [generate-id](https://github.com/ror-community/generate-id) (middleware microservice)
45
45
@@ -64,9 +64,9 @@ Used in the data deployment process managed in [ror-records](https://github.com/
64
64
65
65
docker-compose up -d
66
66
67
-
3. Index the latest v1 ROR dataset from https://github.com/ror-community/ror-data. To index a v2 dataset, see [Indexing v2 data below](#indexing-v2-data)
67
+
3. Index the latest ROR dataset from https://github.com/ror-community/ror-data(see [Indexing v2 data](#indexing-v2-data) below):
68
68
69
-
docker-compose exec web python manage.py setup v1.0-2022-03-17-ror-data -s 1
69
+
docker-compose exec web python manage.py setup v1.0-2022-03-17-ror-data -s 2
70
70
71
71
*Note: You must specify a dataset that exists in [ror-data](https://github.com/ror-community/ror-data)*
72
72
@@ -92,19 +92,17 @@ To delete the existing index, create a new index and index a data dump:
92
92
93
93
**LOCALHOST:** Run
94
94
95
-
docker-compose exec web python manage.py setup v1.0-2022-03-17-ror-data -s 1
95
+
docker-compose exec web python manage.py setup v1.0-2022-03-17-ror-data -s 2
96
96
97
97
**DEV/STAGING/PROD:** Access the running ror-api container and run:
*Note: You must specify a dataset that exists in [ror-data](https://github.com/ror-community/ror-data)*
102
102
103
103
#### Indexing v2 data
104
104
105
-
The `-s` argument specifies which schema version to index. To index a v2 data dump, use `-s 2`. To index both v1 and v2 at the same time, omit the `-s` option.
106
-
107
-
Note that a v2 formatted JSON file must exist in the zip file for the specified data dump version. Currently, v2 files only exist in [ror-community/ror-data-test](https://github.com/ror-community/ror-data-test). To index a data dump from ror-data-test rather than ror-data, add the `-t` option to the setup command, ex:
105
+
The API uses the v2 schema only. Use `-s 2` when indexing a data dump. A v2 formatted JSON file must exist in the zip file for the specified data dump version. Currently, v2 files only exist in [ror-community/ror-data-test](https://github.com/ror-community/ror-data-test). To index a data dump from ror-data-test rather than ror-data, add the `-t` option to the setup command, ex:
0 commit comments