feat: Vercel source plugin#5548
Conversation
This PR has the following changes to source plugin(s) tables:
|
7c9fe57 to
303a677
Compare
|
Fetching Played with having a |
| @@ -0,0 +1,7 @@ | |||
| # Vercel Plugin | |||
There was a problem hiding this comment.
There was a problem hiding this comment.
Yeah, it will end with merge conflicts and pain so I'm waiting until the review is over
| val = ts.Format(time.RFC3339) + fmt.Sprintf(" (in %s)", time.Until(ts).Round(time.Second)) | ||
| } | ||
|
|
||
| return nil, fmt.Errorf("request to %s failed: %s. Rate limit will reset at: %s", path, res.Status, val) |
There was a problem hiding this comment.
Probably a follow up, but we can add retry logic if the reset window is not large
yevgenypats
left a comment
There was a problem hiding this comment.
Looks good. One major comment and then I'll give it another round of reviews:
Can we avoid using mocks here and use the same approach we now use in GCP and Azure with a test http server and providing a test baseURL or a test httpClient ? This should reduce the amount of boilerplate, make it inline with all other plugins and give even better test coverage.
@yevgenypats done PTAL |
yevgenypats
left a comment
There was a problem hiding this comment.
Nice! Looks great. Had one nit.
3f6d265 to
ea9806c
Compare
47a96ed to
4c98911
Compare
🤖 I have created a release *beep* *boop* --- ## 1.0.0 (2022-12-15) ### Features * Vercel source plugin ([#5548](#5548)) ([aab7f73](aab7f73)) ### Bug Fixes * **deps:** Update module github.com/cloudquery/plugin-sdk to v1.12.4 ([#5649](#5649)) ([b4aa889](b4aa889)) * **deps:** Update module github.com/cloudquery/plugin-sdk to v1.12.5 ([#5661](#5661)) ([b354b8a](b354b8a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Uh oh!
There was an error while loading. Please reload this page.