feat: Add support to use ETag for conditional requests against the Github API#6505
feat: Add support to use ETag for conditional requests against the Github API#6505zroubalik merged 9 commits intokedacore:mainfrom andrewhibbert:feat_etags
Conversation
…thub API Signed-off-by: andrewhibbert <a.hibbert@elsevier.com>
…thub API Signed-off-by: andrewhibbert <a.hibbert@elsevier.com>
…thub API Signed-off-by: andrewhibbert <a.hibbert@elsevier.com>
…thub API Signed-off-by: andrewhibbert <a.hibbert@elsevier.com>
…thub API Signed-off-by: andrewhibbert <a.hibbert@elsevier.com>
JorTurFer
left a comment
There was a problem hiding this comment.
This feature looks super nice! Thanks for the improvement 😄
Could you enable the etag feature in one of the github e2e test cases to keep it covered with e2e tests? I don't think that we need to add another fully e2e test case but just update one of the already existing to include this feature.
We'd need that you open a PR to docs adding this new parameter to the scaler docs 🙏
…thub API Signed-off-by: andrewhibbert <a.hibbert@elsevier.com>
Thanks. I have opened a PR in the docs repo and changed one of the e2e testcase to have |
|
/run-e2e github |
zroubalik
left a comment
There was a problem hiding this comment.
Great stuff, thanks! Let's just fix the semgrep and we shoud be good to merge
…thub API Signed-off-by: andrewhibbert <a.hibbert@elsevier.com>
…thub API Signed-off-by: andrewhibbert <a.hibbert@elsevier.com>
…thub API Signed-off-by: andrewhibbert <a.hibbert@elsevier.com>
|
I have noticed there were some merge conflicts after #6519 was merged so I have made some changes to fit in with that change |
|
/run-e2e github |
…thub API (kedacore#6505) Signed-off-by: andrewhibbert <a.hibbert@elsevier.com> Signed-off-by: mittalvaibhav1 <mittalvaibhavandroid@gmail.com>
Adds functionality to use conditional requests with the Github API by adding etag to request headers. If the response has not changed a 304 response is returned, which does not count against the primary rate limit.
Checklist
Fixes #6503
Relates to kedacore/keda-docs#1532