-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement mint legacy api endpoints #2201
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2201 +/- ##
===========================================
+ Coverage 53.24% 53.46% +0.22%
===========================================
Files 173 173
Lines 8266 8278 +12
Branches 1162 1166 +4
===========================================
+ Hits 4401 4426 +25
+ Misses 3421 3388 -33
- Partials 444 464 +20
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
||
tests { | ||
|
||
test("Status code is 200", function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add some tests that check the response body is structured correctly?
config/routes.js
Outdated
action: 'legacyHarvest', | ||
csrf: false | ||
}, | ||
'get /:branding/:portal/api/mint/harvest/search': { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only need the ingest harvest. Search will be performed with existing endpoints already covered in the first work package. Future work package will cover getting the form components that search legacy Mint to be able to find the records inside ReDBox.
@@ -137,6 +137,7 @@ export module Services { | |||
searchString = ` AND (${queryString})`; | |||
} | |||
|
|||
//TODO instead of call external mint perform an Ajax call to ReDBOx or directly serach in the database for records or in the solr index ??? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the TODO. I'm expecting this method will be left untouched when we search for records within ReDBox
There is currently a harvest endpoint defined which is quite similar but not exactly the same as the legacy Mint API. For future integrations we will push users towards the new endpoint but to allow a smooth transition we will need to provide backwards compatibility with the Mint API.