cosmo icon indicating copy to clipboard operation
cosmo copied to clipboard

feat: add support for request compression

Open rutikthakre opened this issue 1 year ago • 9 comments

/claim #602

WIP

Added functions to compress the response and decompress the request.

TODO

rutikthakre avatar Apr 11 '24 12:04 rutikthakre

Hi @StarpTech If you like I can claim #674 in this repo.

rutikthakre avatar Apr 12 '24 11:04 rutikthakre

This PR was marked stale due to lack of activity. It will be closed in 14 days.

github-actions[bot] avatar Apr 29 '24 05:04 github-actions[bot]

@StarpTech with the current implementation We would have to add. Content-Type in response header I tried to add middleware for it but failed to do it. Could you please check the latest changes?

rutikthakre avatar May 01 '24 13:05 rutikthakre

This PR was marked stale due to lack of activity. It will be closed in 14 days.

github-actions[bot] avatar May 17 '24 05:05 github-actions[bot]

Please rebase.

StarpTech avatar May 17 '24 11:05 StarpTech

@StarpTech Thank you for review. all the requested changes is completed. Screenshot 2024-05-18 154647

rutikthakre avatar May 18 '24 10:05 rutikthakre

@StarpTech tests are failing for Authentication. I don't know why this is happening. I did not make any changes to the Authentication module. can please check it.

rutikthakre avatar May 18 '24 10:05 rutikthakre

@StarpTech working perfectly now.

rutikthakre avatar May 21 '24 14:05 rutikthakre

Sounds great. I think we can merge it this week. I'll do a last test tomorrow.

StarpTech avatar May 21 '24 15:05 StarpTech

@StarpTech did you tested the code?

rutikthakre avatar May 23 '24 02:05 rutikthakre

Almost done. I found a couple of other things.

StarpTech avatar May 23 '24 12:05 StarpTech

Working on it. It will be done today only.

rutikthakre avatar May 23 '24 15:05 rutikthakre

@StarpTech Changes applied. Please check.

rutikthakre avatar May 23 '24 18:05 rutikthakre

@StarpTech changes applied. Github action Router CI is falling don't know why. It is not related to my code.
After updating branch.

rutikthakre avatar May 24 '24 09:05 rutikthakre

@Rutik7066 https://github.com/wundergraph/cosmo/pull/723#discussion_r1613153286

StarpTech avatar May 24 '24 10:05 StarpTech

@Rutik7066 can you run make sync-go-workspace from root please?

Aenimus avatar May 25 '24 16:05 Aenimus

make sync-go-workspace

@Aenimus Done.

rutikthakre avatar May 25 '24 20:05 rutikthakre

@StarpTech we can merge this now. all changes are applied. please check.

rutikthakre avatar May 25 '24 21:05 rutikthakre

Hi @Rutik7066,

Thanks for your work on the PR! I noticed a couple of things that need to be addressed before we can merge it.

First, the PR title and test files mention "request compression," but your code actually addresses "response compression." Please update the wording in the test files and PR to reflect "response compression" instead.

Also, the AllowContentEncoding middleware you added checks if a request with a specific encoding can be decoded, but you didn't include support for it. Since it currently doesn't do anything, please remove this middleware.

Lastly, I want to remind you that the bounty is intended to be a solo challenge, and the requirements are quite clear. The level of help you're seeking goes beyond what's expected for this challenge.

Once you've made these changes, we can proceed with merging the PR. Thanks for your understanding!

StarpTech avatar May 26 '24 11:05 StarpTech

Ok I will update.

rutikthakre avatar May 26 '24 11:05 rutikthakre

Hi @StarpTech all changes applied.

rutikthakre avatar May 26 '24 12:05 rutikthakre

@StarpTech I hope everything is perfect now to merge.

rutikthakre avatar May 26 '24 12:05 rutikthakre