Skip to content
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

chore: advertise gzip support to transformer through X-Feature-Gzip-Support header #3990

Merged
merged 2 commits into from
Oct 18, 2023

Conversation

Gauravudia
Copy link
Contributor

@Gauravudia Gauravudia commented Oct 18, 2023

Description

Resolves INT-873
Adding the gzip support header in transformer.go for backward compatibility between server <> transformer

Linear Ticket

#3904

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@Gauravudia Gauravudia self-assigned this Oct 18, 2023
@Gauravudia Gauravudia marked this pull request as ready for review October 18, 2023 14:53
@@ -455,6 +455,7 @@ func (trans *handle) doPost(ctx context.Context, rawJSON []byte, url, stage stri
}

req.Header.Set("Content-Type", "application/json; charset=utf-8")
req.Header.Set("X-Feature-Gzip-Support", "?1")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: why are we using ?1 as a value?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chandumlg kept this value, from transformer we accept '?1' and 'true'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any special meaning or something we come up with it. just curious.

@atzoum atzoum changed the title chore: add gzip header chore: advertise gzip support to transformer through X-Feature-Gzip-Support header Oct 18, 2023
@@ -455,6 +455,7 @@ func (trans *handle) doPost(ctx context.Context, rawJSON []byte, url, stage stri
}

req.Header.Set("Content-Type", "application/json; charset=utf-8")
req.Header.Set("X-Feature-Gzip-Support", "?1")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any special meaning or something we come up with it. just curious.

@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (8c3a723) 71.74% compared to head (64a2f60) 70.36%.

❗ Current head 64a2f60 differs from pull request most recent head 08a5cf3. Consider uploading reports for the commit 08a5cf3 to get more accurate results

Additional details and impacted files
@@                Coverage Diff                 @@
##           release/1.15.x    #3990      +/-   ##
==================================================
- Coverage           71.74%   70.36%   -1.38%     
==================================================
  Files                 368      357      -11     
  Lines               55126    53667    -1459     
==================================================
- Hits                39548    37765    -1783     
- Misses              13320    13634     +314     
- Partials             2258     2268      +10     
Files Coverage Δ
processor/transformer/transformer.go 89.65% <100.00%> (-5.06%) ⬇️
router/transformer/transformer.go 69.58% <100.00%> (+0.10%) ⬆️

... and 44 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@atzoum atzoum merged commit bce584d into release/1.15.x Oct 18, 2023
37 checks passed
@atzoum atzoum deleted the chore.transformerGzipSupportHeader branch October 18, 2023 15:16
koladilip added a commit that referenced this pull request Oct 25, 2023
* chore: advertise gzip support to transformer through X-Feature-Gzip-Support header (#3990)

* chore: release 1.15.2 (#3992)

* fix: update error parsing of eloqua (#3996)

* fix(eloqua): change null values to empty strings inspite of "null"

* address comments

* add logic to consider some warning statusCode as success

* fix lint issues

* fix: corrupted rsources stats captured by processor for dropped jobs (#3999)

* chore: release 1.15.3 (#3998)

* fix: invalid memory address or nil pointer dereference in googlecloudfunction

* fix: merge error blocks in gcf

* chore: add test case for body close

* chore: add test case for body close

---------

Co-authored-by: Gauravudia <60897972+Gauravudia@users.noreply.github.com>
Co-authored-by: devops-github-rudderstack <88187154+devops-github-rudderstack@users.noreply.github.com>
Co-authored-by: Sudip Paul <67197965+ItsSudip@users.noreply.github.com>
Co-authored-by: Aris Tzoumas <atzoumas@rudderstack.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants