[back][ext] feat: add rate limit to the bulk create route of the rate-later API#2064
Conversation
|
An idea for the future, it could be nice to replace the loading animation by a text (or something else) when the user reaches the maximum number of allowed calls to the API. Currently, when the animation disappears, the import status box becomes less visible, less eye catching than when it was loading. |
|
Looks good to me. I have a few remarks:
|
Our quota of requests to the YouTube API is limited daily. So we need a safeguard to avoid the platform being blocked from using the YouTube API when users try to import a large number of videos. One more improvement would be to store the ids of imported videos in the extension storage, so that they can be ignored on the next run, to let older videos in the history to be processed too. I think @GresilleSiffle plan to work on this tomorrow.
Yes we definitely see the limits of a "Vanilla" js approach on this kind of features. We were initially reluctant to add a framework that would require a separate build environment from the main "dev-env" to develop the extension. It may be easier now that "configure" scripts have been defined. A possible approach would also be to use "preact" which allows no-build workflows: https://preactjs.com/guide/v10/no-build-workflows |
|
I'm going to merge this branch in |

target PR: #2059
Description
Checklist