-
Notifications
You must be signed in to change notification settings - Fork 1
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
Enable additional sources for federated API #4
Conversation
Allow to merge multiple collections source Allow to directly give a collection in the config
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.
Looks good for functionality, but I'm not quite convinced by the implementation .
src/services/collections.test.js
Outdated
const COLLECTION_2_OVERRIDEN = { id: COLLECTION_2.id, name: 'Override Collection 2', endpoint: 'http://domain2.example/endpoint' }; | ||
|
||
describe('removeDuplicatesKeepLatest', () => { | ||
it('removes duplicates based on their id and keep the latest defined', () => { |
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.
it('removes duplicates based on their id and keep the latest defined', () => { | |
it('removes duplicates based on their id and keeps the latest defined', () => { |
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 we please check what happens when a collection URL fails with a 500 or 404, and when it returns HTML data? What about Fetch timeout?
Replaced by #6 |
collections.json
data structure opentermsarchive.org#313federated-api
configuration docs#121