-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ct.gov connector and parser for ct.gov API v2
Refactor to use v2 API and update URLs that referenced "classic" site for study pages. Connector changes: 1. Recurse over its pages of results -- no longer an option to return more than 100 studies at once when searching with location etc. criteria. 2. Show status messages for both current "page" and overall. 3. Fix #clear, which had not been updated to delete TrialSubgroups when those were added (hence was failing to delete Trials with a reference error). Parser changes: 1. Major changes to switch from XML/xpath to the new JSON format for API responses. 2. Don't re-fetch data for each study individually, data for studies loads in each "page" in the connector and that data for each study is included in the parser object initialization (each parser instance represents handling of data for a single study). 3. Change location matching from exact to substring (via regex). This fixes an issue where e.g. a location of "University of Minnesota/Cancer Center" would not match if the location in the site settings is "University of Minnesota". This was causing data for studies to be incorrectly omitted. 4. New contacts algorithm, V2 API no longer has "contact" and "backup contact". 5. Misc. updates for API changes to case in enumerated values, naming and nesting, etc. Spec changes: Added many tests and updated existing ones for ct.gov parser. Rake task changes: Update for new private connector API. README changes: Include update notes. uncomment line and update docker-compose
- Loading branch information
1 parent
0a17cbe
commit 9241dcc
Showing
7 changed files
with
722 additions
and
587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
version: '3' | ||
services: | ||
elasticsearch: | ||
image: elasticsearch:8.10.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.