-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
refactor(datasource): migrate to class based datasource #6747
Conversation
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.
Rate limiting should be on http layer, not on datasource layer.
Related:
Also, I'd been thinking the potentially the datasource index could instantiate a |
0b8463e
to
68c6029
Compare
68c6029
to
857eecb
Compare
? review or not review? 🤔 |
Sorry, requested review of wrong branch |
ce75f5b
to
8615e66
Compare
acc6cf5
to
385df5b
Compare
a49935f
to
0e5f281
Compare
Rebased on top of current |
0e5f281
to
9a09d00
Compare
f4dc06d
to
8fb734e
Compare
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.
I think we should only convert this two datasources with this pr and convert others in separate pr's, so it's easier to review
ce19bb2
to
e0ab61f
Compare
032ac52
to
56c72a0
Compare
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.
needs lint fix 😉
56c72a0
to
61ced89
Compare
61ced89
to
ff03e51
Compare
A small experiment into what OOP/class based datasources might look like. Picked Cdnjs as it's the smallest & simplest. With this approach we can share common logic, like error handling, rate limiting, etc. between different datasources, instead of having to reimplement it each time we write a new datasource. Currently there's nothing shared, as it's only 1 datasource, but the interesting stuff will come with the 2nd datasource
ff03e51
to
3f7fc70
Compare
Pls no more conflicts 😨 🤞 |
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.
Just some small stuff
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
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.
🥳🥳
🎉 This PR is included in version 25.26.4 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
A small experiment into what OOP/class based datasources might look like. Picked Cdnjs as it's the smallest & simplest.
With this approach we can share common logic, like error handling, rate limiting, etc. between different datasources, instead of having to reimplement it each time we write a new datasource. Currently there's nothing shared, as it's only 1 datasource, but the interesting stuff will come with the 2nd datasource!