Skip to content
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

Closed
wants to merge 13 commits into from

Conversation

Ndpnt
Copy link
Member

@Ndpnt Ndpnt commented Mar 27, 2024

Allow to merge multiple collections source
Allow to directly give a collection in the config
@Ndpnt Ndpnt changed the title Improve configuration of collections Enable additional sources for federated API Mar 27, 2024
Copy link
Member

@MattiSG MattiSG left a 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 .

.github/workflows/changelog.yml Show resolved Hide resolved
src/services/collections.js Outdated Show resolved Hide resolved
src/services/collections.js Outdated Show resolved Hide resolved
src/services/collections.js Outdated Show resolved Hide resolved
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', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
it('removes duplicates based on their id and keep the latest defined', () => {
it('removes duplicates based on their id and keeps the latest defined', () => {

src/services/services.test.js Outdated Show resolved Hide resolved
src/services/services.test.js Outdated Show resolved Hide resolved
@Ndpnt Ndpnt requested a review from MattiSG March 28, 2024 09:24
@Ndpnt Ndpnt requested a review from MattiSG March 29, 2024 09:14
src/services/collections.js Outdated Show resolved Hide resolved
src/services/collections.js Show resolved Hide resolved
src/services/collections.js Outdated Show resolved Hide resolved
src/services/collections.js Outdated Show resolved Hide resolved
src/services/collections.js Outdated Show resolved Hide resolved
@Ndpnt Ndpnt requested a review from MattiSG March 29, 2024 10:10
Copy link
Member

@MattiSG MattiSG left a 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?

@MattiSG MattiSG mentioned this pull request Jun 12, 2024
@Ndpnt
Copy link
Member Author

Ndpnt commented Jun 12, 2024

Replaced by #6

@Ndpnt Ndpnt closed this Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants