{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":19537979,"defaultBranch":"master","name":"tyk","ownerLogin":"TykTechnologies","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2014-05-07T14:38:24.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/16121529?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1716480248.0","currentOid":""},"activityList":{"items":[{"before":"d27a42ffcd3b78aa859c9ae29ad0e9529a61c6ce","after":"9154430b8ac2659e50d68ef029cd65921ea57ec5","ref":"refs/heads/feature/streaming","pushedAt":"2024-05-23T17:07:36.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"buger","name":"Leonid Bugaev","path":"/buger","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14009?s=80&v=4"},"commit":{"message":"Add portal support","shortMessageHtmlLink":"Add portal support"}},{"before":"149349fb1dd1a47df5ffa2da4aae3cb6c066fb15","after":"74c8492ba4fa78d4af8869b402b25009f5c34b5f","ref":"refs/heads/repro/tt-11953/reproduce-build-issue","pushedAt":"2024-05-23T16:49:30.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"titpetric","name":"Tit Petric","path":"/titpetric","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/233360?s=80&v=4"},"commit":{"message":"Use golang docker image for main dockerfile, still not failing","shortMessageHtmlLink":"Use golang docker image for main dockerfile, still not failing"}},{"before":null,"after":"dc1f95195102cd226999ad2909258e70a971a732","ref":"refs/heads/feat/TT-9462/tag-cached-response","pushedAt":"2024-05-23T16:04:08.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"joshblakeley","name":"Josh Blakeley","path":"/joshblakeley","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/31618778?s=80&v=4"},"commit":{"message":"add tag for cached-response when response is cached","shortMessageHtmlLink":"add tag for cached-response when response is cached"}},{"before":"bfb740afc51df0a76cb535cbfa8a5faaa28bc1ba","after":"149349fb1dd1a47df5ffa2da4aae3cb6c066fb15","ref":"refs/heads/repro/tt-11953/reproduce-build-issue","pushedAt":"2024-05-23T14:00:39.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"titpetric","name":"Tit Petric","path":"/titpetric","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/233360?s=80&v=4"},"commit":{"message":"Add debugging commands into taskfiles, update makefile, dockerfile, goreleaser","shortMessageHtmlLink":"Add debugging commands into taskfiles, update makefile, dockerfile, g…"}},{"before":null,"after":"bfb740afc51df0a76cb535cbfa8a5faaa28bc1ba","ref":"refs/heads/repro/tt-11953/reproduce-build-issue","pushedAt":"2024-05-23T13:59:00.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"titpetric","name":"Tit Petric","path":"/titpetric","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/233360?s=80&v=4"},"commit":{"message":"Add debugging commands into taskfiles, update makefile, dockerfile, goreleaser","shortMessageHtmlLink":"Add debugging commands into taskfiles, update makefile, dockerfile, g…"}},{"before":null,"after":"46b54fa9f39391bfec7227d2cebc65c38e54192c","ref":"refs/heads/feat/TT-11997/Backend-logic-for-request_headers_rewrite","pushedAt":"2024-05-23T13:31:00.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"buraksezer","name":"Burak Sezer","path":"/buraksezer","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/33702537?s=80&v=4"},"commit":{"message":"[TT-11997] Backend logic for request_headers_rewrite","shortMessageHtmlLink":"[TT-11997] Backend logic for request_headers_rewrite"}},{"before":"1d4aa75eecab9cf9c7e831d8ff3947645890a54d","after":"cbcc2ad63146791352171d6bf0cac535c60bec9f","ref":"refs/heads/TT-11470-human-readable-info","pushedAt":"2024-05-23T12:48:09.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"padiazg","name":"Patricio Díaz ","path":"/padiazg","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/15754252?s=80&v=4"},"commit":{"message":"fix missing references","shortMessageHtmlLink":"fix missing references"}},{"before":"0f0290a89ff09081c99b9314b68b2d1c8de2735b","after":"c09286fd84be114d1745f8eb84d841e4733690eb","ref":"refs/heads/TT-12095","pushedAt":"2024-05-23T12:41:30.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"mativm02","name":"Matias","path":"/mativm02","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/83959431?s=80&v=4"},"commit":{"message":"checking if hashing is enabled before creating span","shortMessageHtmlLink":"checking if hashing is enabled before creating span"}},{"before":"babdf44cd98b4109c6a50a9f29eb58bd285fb4f5","after":"1d4aa75eecab9cf9c7e831d8ff3947645890a54d","ref":"refs/heads/TT-11470-human-readable-info","pushedAt":"2024-05-23T12:27:40.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"padiazg","name":"Patricio Díaz ","path":"/padiazg","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/15754252?s=80&v=4"},"commit":{"message":"renaned internal/models to internal/model","shortMessageHtmlLink":"renaned internal/models to internal/model"}},{"before":"5dda8b15558bb831a1eb9488e9f57c5e4092bf27","after":"d27a42ffcd3b78aa859c9ae29ad0e9529a61c6ce","ref":"refs/heads/feature/streaming","pushedAt":"2024-05-23T12:11:55.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"buger","name":"Leonid Bugaev","path":"/buger","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14009?s=80&v=4"},"commit":{"message":"Fix bugs","shortMessageHtmlLink":"Fix bugs"}},{"before":"a5bd292ace6d85f06c99d9283af1f8587c4673f6","after":null,"ref":"refs/heads/feat/TT-11998/add-graphql-proxy-features-section","pushedAt":"2024-05-23T12:01:31.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"pvormste","name":"Patric Vormstein","path":"/pvormste","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4503955?s=80&v=4"}},{"before":"11d5798b31e49f8d28a2262925b9440d9e86c58a","after":"e1ea94a5f4e5ea8029b2e837171f0bddbe110b6b","ref":"refs/heads/master","pushedAt":"2024-05-23T12:01:30.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"pvormste","name":"Patric Vormstein","path":"/pvormste","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4503955?s=80&v=4"},"commit":{"message":"add features section to graphql proxy config (#6298)\n\n### **User description**\r\nThis PR adds a new `features` section to the GraphQL proxy\r\nconfiguration. It will allow the enable or disable specific features for\r\nproxy-only mode.\r\n\r\n## Types of changes\r\n\r\n\r\n\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [x] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing\r\nfunctionality to change)\r\n- [ ] Refactoring or add test (improvements in base code or adds test\r\ncoverage to functionality)\r\n\r\n\r\n___\r\n\r\n### **PR Type**\r\nEnhancement\r\n\r\n\r\n___\r\n\r\n### **Description**\r\nThis PR introduces a new `features` section to the GraphQL proxy\r\nconfiguration:\r\n- Added `features` section to `GraphQLProxyConfig` in\r\n`apidef/api_definitions.go`.\r\n- Introduced `GraphQLProxyFeaturesConfig` struct with\r\n`UseImmutableHeaders` field.\r\n- Updated `DummyAPI` function to include default `features`\r\nconfiguration.\r\n- Updated GraphQL proxy schema in `apidef/schema.go` to include\r\n`features` section with `use_immutable_headers` property.\r\n\r\n\r\n___\r\n\r\n\r\n\r\n### **Changes walkthrough** 📝\r\n
Relevant\r\nfiles
Enhancement\r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n
\r\n
\r\napi_definitions.go
Add features\r\nsection to GraphQL proxy configuration.     \r\n   
\r\n
\r\n\r\napidef/api_definitions.go\r\n
  • Added features section to\r\nGraphQLProxyConfig.
  • Introduced\r\nGraphQLProxyFeaturesConfig struct with\r\nUseImmutableHeaders
    field.
  • Updated\r\nDummyAPI function to include default features\r\nconfiguration.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +10/-0 \r\n 
    \r\n
    \r\nschema.go
    Update GraphQL proxy schema\r\nwith features section.           \r\n 
    \r\n
    \r\n\r\napidef/schema.go\r\n
  • Added features section to GraphQL proxy schema.
    \r\n
  • Included use_immutable_headers property in the\r\nschema.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +8/-0 \r\n   
    \r\n\r\n___\r\n\r\n> 💡 **PR-Agent usage**:\r\n>Comment `/help` on the PR to get a list of all available PR-Agent tools\r\nand their descriptions","shortMessageHtmlLink":"add features section to graphql proxy config (#6298)"}},{"before":"9e3f744c538cac4a78a3d11f9867387d42b1c968","after":"a5bd292ace6d85f06c99d9283af1f8587c4673f6","ref":"refs/heads/feat/TT-11998/add-graphql-proxy-features-section","pushedAt":"2024-05-23T11:41:30.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"pvormste","name":"Patric Vormstein","path":"/pvormste","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4503955?s=80&v=4"},"commit":{"message":"fix another broken test","shortMessageHtmlLink":"fix another broken test"}},{"before":"182a0dde6277bd377352dcb7cde7c6796db868da","after":"9e3f744c538cac4a78a3d11f9867387d42b1c968","ref":"refs/heads/feat/TT-11998/add-graphql-proxy-features-section","pushedAt":"2024-05-23T11:17:47.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"pvormste","name":"Patric Vormstein","path":"/pvormste","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4503955?s=80&v=4"},"commit":{"message":"fix another broken test","shortMessageHtmlLink":"fix another broken test"}},{"before":"09e0d8d8fccb88352c5dd106bda146fed5978d8f","after":"182a0dde6277bd377352dcb7cde7c6796db868da","ref":"refs/heads/feat/TT-11998/add-graphql-proxy-features-section","pushedAt":"2024-05-23T09:23:44.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"pvormste","name":"Patric Vormstein","path":"/pvormste","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4503955?s=80&v=4"},"commit":{"message":"fix broken test","shortMessageHtmlLink":"fix broken test"}},{"before":"03c1a85147bde7b07cbe134f5b718d43efa3df49","after":null,"ref":"refs/heads/merge/release-5.3/11d5798b31e49f8d28a2262925b9440d9e86c58a","pushedAt":"2024-05-23T09:16:14.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"buger","name":"Leonid Bugaev","path":"/buger","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14009?s=80&v=4"}},{"before":"a84de17d3af1e8cdd4ead00d429e7a467f7606e0","after":"c9ff51d83a47e8b1f3b1431ebc9f8802e547422e","ref":"refs/heads/release-5.3","pushedAt":"2024-05-23T09:16:13.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"buger","name":"Leonid Bugaev","path":"/buger","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/14009?s=80&v=4"},"commit":{"message":"Merging to release-5.3: [TT-12193] Fix poor error handling in webhook event templates (#6303)\n\n[TT-12193] Fix poor error handling in webhook event templates (#6303)\n\n### **User description**\r\nFixes error handling in webhook handler templates\r\n\r\nhttps://tyktech.atlassian.net/browse/TT-12193\r\n\r\n___\r\n\r\n### **PR Type**\r\nBug fix, Tests\r\n\r\n\r\n___\r\n\r\n### **Description**\r\n- Added error handling for template execution in the `CreateBody` method\r\nof `WebHookHandler`.\r\n- Refactored test helper function to include error handling.\r\n- Replaced panic and error checks with `assert.NoError` in tests.\r\n- Improved error messages in tests for better clarity.\r\n\r\n\r\n___\r\n\r\n\r\n\r\n### **Changes walkthrough** 📝\r\n
    Relevant\r\nfiles
    Bug fix\r\n\r\n\r\n \r\n\r\n \r\n
    \r\n
    \r\nevent_handler_webhooks.go
    Add error\r\nhandling in `CreateBody` method of WebHookHandler
    \r\n
    \r\n\r\ngateway/event_handler_webhooks.go\r\n
  • Added error handling for template execution in\r\nCreateBody method.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +4/-1 \r\n   
    Tests\r\n\r\n\r\n \r\n\r\n \r\n
    \r\n
    \r\n\r\nevent_handler_webhooks_test.go
    Improve\r\nerror handling and assertions in webhook handler\r\ntests
    \r\n
    \r\n\r\ngateway/event_handler_webhooks_test.go\r\n
  • Refactored test helper function to include error handling.
  • \r\nReplaced panic and error checks with assert.NoError.
    \r\n
  • Improved error messages in tests.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +22/-24 \r\n
    \r\n\r\n___\r\n\r\n> 💡 **PR-Agent usage**:\r\n>Comment `/help` on the PR to get a list of all available PR-Agent tools\r\nand their descriptions\r\n\r\nCo-authored-by: Tit Petric ","shortMessageHtmlLink":"Merging to release-5.3: [TT-12193] Fix poor error handling in webhook…"}},{"before":"f61fcf357ed62301cd0042b276c57cdfb1c9d65c","after":"03c1a85147bde7b07cbe134f5b718d43efa3df49","ref":"refs/heads/merge/release-5.3/11d5798b31e49f8d28a2262925b9440d9e86c58a","pushedAt":"2024-05-23T08:55:44.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"titpetric","name":"Tit Petric","path":"/titpetric","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/233360?s=80&v=4"},"commit":{"message":"Assert was missing from event handler webhooks test","shortMessageHtmlLink":"Assert was missing from event handler webhooks test"}},{"before":"2e1d24f06df4d7b966bbed9200932eb9720f70a5","after":"09e0d8d8fccb88352c5dd106bda146fed5978d8f","ref":"refs/heads/feat/TT-11998/add-graphql-proxy-features-section","pushedAt":"2024-05-23T08:32:48.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"pvormste","name":"Patric Vormstein","path":"/pvormste","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4503955?s=80&v=4"},"commit":{"message":"add features section to graphql proxy config","shortMessageHtmlLink":"add features section to graphql proxy config"}},{"before":null,"after":"f61fcf357ed62301cd0042b276c57cdfb1c9d65c","ref":"refs/heads/merge/release-5.3/11d5798b31e49f8d28a2262925b9440d9e86c58a","pushedAt":"2024-05-23T08:27:12.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"tykbot[bot]","name":null,"path":"/apps/tykbot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/35290?s=80&v=4"},"commit":{"message":"[TT-12193] Fix poor error handling in webhook event templates (#6303)\n\n### **User description**\r\nFixes error handling in webhook handler templates\r\n\r\nhttps://tyktech.atlassian.net/browse/TT-12193\r\n\r\n___\r\n\r\n### **PR Type**\r\nBug fix, Tests\r\n\r\n\r\n___\r\n\r\n### **Description**\r\n- Added error handling for template execution in the `CreateBody` method\r\nof `WebHookHandler`.\r\n- Refactored test helper function to include error handling.\r\n- Replaced panic and error checks with `assert.NoError` in tests.\r\n- Improved error messages in tests for better clarity.\r\n\r\n\r\n___\r\n\r\n\r\n\r\n### **Changes walkthrough** 📝\r\n
    Relevant\r\nfiles
    Bug fix\r\n\r\n\r\n \r\n\r\n \r\n
    \r\n
    \r\nevent_handler_webhooks.go
    Add error\r\nhandling in `CreateBody` method of WebHookHandler
    \r\n
    \r\n\r\ngateway/event_handler_webhooks.go\r\n
  • Added error handling for template execution in\r\nCreateBody method.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +4/-1 \r\n   
    Tests\r\n\r\n\r\n \r\n\r\n \r\n
    \r\n
    \r\n\r\nevent_handler_webhooks_test.go
    Improve\r\nerror handling and assertions in webhook handler\r\ntests
    \r\n
    \r\n\r\ngateway/event_handler_webhooks_test.go\r\n
  • Refactored test helper function to include error handling.
  • \r\nReplaced panic and error checks with assert.NoError.
    \r\n
  • Improved error messages in tests.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +22/-24 \r\n
    \r\n\r\n___\r\n\r\n> 💡 **PR-Agent usage**:\r\n>Comment `/help` on the PR to get a list of all available PR-Agent tools\r\nand their descriptions\r\n\r\nCo-authored-by: Tit Petric \n(cherry picked from commit 11d5798b31e49f8d28a2262925b9440d9e86c58a)","shortMessageHtmlLink":"[TT-12193] Fix poor error handling in webhook event templates (#6303)"}},{"before":"fe24bf0824f17f74906d14c707e96fcf9e51f952","after":null,"ref":"refs/heads/fix/event-handler-webhooks-error-handling","pushedAt":"2024-05-23T08:24:48.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"titpetric","name":"Tit Petric","path":"/titpetric","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/233360?s=80&v=4"}},{"before":"7cca61a0d65fd113a2abf2ed9c66bd18830f797d","after":"11d5798b31e49f8d28a2262925b9440d9e86c58a","ref":"refs/heads/master","pushedAt":"2024-05-23T08:24:47.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"titpetric","name":"Tit Petric","path":"/titpetric","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/233360?s=80&v=4"},"commit":{"message":"[TT-12193] Fix poor error handling in webhook event templates (#6303)\n\n### **User description**\r\nFixes error handling in webhook handler templates\r\n\r\nhttps://tyktech.atlassian.net/browse/TT-12193\r\n\r\n___\r\n\r\n### **PR Type**\r\nBug fix, Tests\r\n\r\n\r\n___\r\n\r\n### **Description**\r\n- Added error handling for template execution in the `CreateBody` method\r\nof `WebHookHandler`.\r\n- Refactored test helper function to include error handling.\r\n- Replaced panic and error checks with `assert.NoError` in tests.\r\n- Improved error messages in tests for better clarity.\r\n\r\n\r\n___\r\n\r\n\r\n\r\n### **Changes walkthrough** 📝\r\n
    Relevant\r\nfiles
    Bug fix\r\n\r\n\r\n \r\n\r\n \r\n
    \r\n
    \r\nevent_handler_webhooks.go
    Add error\r\nhandling in `CreateBody` method of WebHookHandler
    \r\n
    \r\n\r\ngateway/event_handler_webhooks.go\r\n
  • Added error handling for template execution in\r\nCreateBody method.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +4/-1 \r\n   
    Tests\r\n\r\n\r\n \r\n\r\n \r\n
    \r\n
    \r\n\r\nevent_handler_webhooks_test.go
    Improve\r\nerror handling and assertions in webhook handler\r\ntests
    \r\n
    \r\n\r\ngateway/event_handler_webhooks_test.go\r\n
  • Refactored test helper function to include error handling.
  • \r\nReplaced panic and error checks with assert.NoError.
    \r\n
  • Improved error messages in tests.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +22/-24 \r\n
    \r\n\r\n___\r\n\r\n> 💡 **PR-Agent usage**:\r\n>Comment `/help` on the PR to get a list of all available PR-Agent tools\r\nand their descriptions\r\n\r\nCo-authored-by: Tit Petric ","shortMessageHtmlLink":"[TT-12193] Fix poor error handling in webhook event templates (#6303)"}},{"before":"90653b2b40368b836dd1ef1650c10a58a838b0a4","after":null,"ref":"refs/heads/merge/release-5.3/63963725d1b802d03841651f290d1cbd11f398e9","pushedAt":"2024-05-23T08:17:09.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"titpetric","name":"Tit Petric","path":"/titpetric","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/233360?s=80&v=4"}},{"before":"0038992886cd297e7aabeb473aa25d6e180557bb","after":"a84de17d3af1e8cdd4ead00d429e7a467f7606e0","ref":"refs/heads/release-5.3","pushedAt":"2024-05-23T08:17:08.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"titpetric","name":"Tit Petric","path":"/titpetric","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/233360?s=80&v=4"},"commit":{"message":"Merging to release-5.3: [TT-11954/TT-12115]fix location of contextVariables (#6285) (#6304)\n\n### **User description**\r\n[TT-11954/TT-12115]fix location of contextVariables (#6285)\r\n\r\n### **User description**\r\n\r\n\r\n## Description\r\n\r\nfix context variables location\r\n## Related Issue\r\nParent: https://tyktech.atlassian.net/browse/TT-11954\r\nSubtask: https://tyktech.atlassian.net/browse/TT-12115\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How This Has Been Tested\r\n\r\n\r\n\r\n\r\n\r\n\r\n## Screenshots (if appropriate)\r\n\r\n## Types of changes\r\n\r\n\r\n\r\n- [x] Bug fix (non-breaking change which fixes an issue)\r\n- [ ] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing\r\nfunctionality to change)\r\n- [ ] Refactoring or add test (improvements in base code or adds test\r\ncoverage to functionality)\r\n\r\n## Checklist\r\n\r\n\r\n\r\n\r\n\r\n- [ ] I ensured that the documentation is up to date\r\n- [ ] I explained why this PR updates go.mod in detail with reasoning\r\nwhy it's required\r\n- [ ] I would like a code coverage CI quality gate exception and have\r\nexplained why\r\n\r\n\r\n___\r\n\r\n### **PR Type**\r\nBug fix, Enhancement\r\n\r\n\r\n___\r\n\r\n### **Description**\r\n- Enhanced handling of `ContextVariables` in middleware to prevent their\r\nloss when global settings are omitted.\r\n- Added and updated tests for the new handling methods of\r\n`ContextVariables`.\r\n- Modified OAS migration logic to not enable `ContextVariables` by\r\ndefault, providing more control.\r\n- Implemented a new method `SetContextVariablesIfEmpty` to conditionally\r\nset `ContextVariables` if they are not already set.\r\n- Updated API creation logic to utilize the new method for setting\r\n`ContextVariables`, ensuring consistency and control.\r\n\r\n\r\n___\r\n\r\n\r\n\r\n### **Changes walkthrough** 📝\r\n
    Relevant\r\nfiles
    Enhancement\r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n
    \r\n
    \r\nmiddleware.go
    Enhance handling and\r\nlifecycle of ContextVariables in middleware
    \r\n
    \r\n\r\napidef/oas/middleware.go\r\n
  • Added handling to preserve ContextVariables when\r\nGlobal middleware
    settings are omitted.
  • \r\nImplemented Fill and ExtractTo methods for\r\nContextVariables to manage
    their lifecycle in API\r\ndefinitions.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +46/-0 \r\n 
    \r\n
    \r\noas.go
    Modify default\r\nContextVariables behavior on OAS migration
    \r\n
    \r\n\r\napidef/oas/oas.go\r\n
  • Removed default enabling of ContextVariables during OAS\r\nmigration to
    allow more controlled management.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +0/-1 \r\n   
    \r\n
    \r\nroot.go
    Implement conditional setting\r\nof ContextVariables           \r\n   
    \r\n
    \r\n\r\napidef/oas/root.go\r\n
  • Added SetContextVariablesIfEmpty to ensure\r\nContextVariables are set
    only if they are not already\r\nconfigured.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +23/-0 \r\n 
    \r\n
    \r\napi.go
    Adjust API creation logic to\r\nuse new ContextVariables setting method
    \r\n
    \r\n\r\ngateway/api.go\r\n
  • Adjusted logic to use SetContextVariablesIfEmpty for\r\nsetting context
    variables during API creation.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +3/-3 \r\n   
    Tests\r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n
    \r\n
    \r\nmiddleware_test.go
    Add tests for\r\nContextVariables handling in middleware     \r\n 
    \r\n
    \r\n\r\napidef/oas/middleware_test.go\r\n
  • Added tests for ContextVariables to ensure correct\r\nbehavior of Fill
    and ExtractTo\r\nmethods.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +71/-0 \r\n 
    \r\n
    \r\nroot_test.go
    Test new conditional\r\nContextVariables setting method         \r\n
    \r\n
    \r\n\r\napidef/oas/root_test.go\r\n
  • Added extensive testing for the new\r\nSetContextVariablesIfEmpty method
    to verify its\r\nconditional logic.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +124/-0 \r\n
    \r\n
    \r\napi_test.go
    Update API tests to\r\naccommodate new ContextVariables logic
    \r\n
    \r\n\r\ngateway/api_test.go\r\n
  • Updated tests to reflect new handling of\r\nContextVariables in API
    creation and migration\r\nscenarios.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +4/-4 \r\n   
    \r\n\r\n___\r\n\r\n> 💡 **PR-Agent usage**:\r\n>Comment `/help` on the PR to get a list of all available PR-Agent tools\r\nand their descriptions\r\n\r\n\r\n___\r\n\r\n### **PR Type**\r\nBug fix, Enhancement\r\n\r\n\r\n___\r\n\r\n### **Description**\r\n- Added `enableContextVariablesIfEmpty` method to ensure context\r\nvariables are enabled during import.\r\n- Added and updated tests to verify context variables are enabled by\r\ndefault.\r\n- Added `ContextVariables` field to `Global` struct and implemented\r\nmethods to handle them.\r\n- Removed redundant code and assertions related to context variables\r\nenabling.\r\n\r\n\r\n___\r\n\r\n\r\n\r\n### **Changes walkthrough** 📝\r\n
    Relevant\r\nfiles
    Enhancement\r\n
    3 files\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n
    \r\n
    \r\ndefault.go
    Ensure context variables\r\nare enabled during import.         \r\n 
    \r\n
    \r\n\r\napidef/oas/default.go\r\n
  • Added enableContextVariablesIfEmpty method call to\r\nensure context
    variables are enabled during import.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +1/-0 \r\n   
    \r\n
    \r\nmiddleware.go
    Add context variables\r\nhandling in middleware.           \r\n           
    \r\n
    \r\n\r\napidef/oas/middleware.go\r\n
  • Added ContextVariables field to Global\r\nstruct.
  • Implemented methods to fill and extract context\r\nvariables.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +46/-0 \r\n 
    \r\n
    \r\nroot.go
    Add method to enable context\r\nvariables if not set.           \r\n 
    \r\n
    \r\n\r\napidef/oas/root.go\r\n- Added `enableContextVariablesIfEmpty` method to `XTykAPIGateway`.\r\n\r\n\r\n\r\n
    \r\n \r\n\r\n
    +18/-0 \r\n 
    Tests\r\n
    5 files\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n
    \r\n
    \r\ndefault_test.go
    Add tests for default\r\ncontext variables enabling.         \r\n     
    \r\n
    \r\n\r\napidef/oas/default_test.go\r\n- Added tests to verify context variables are enabled by default.\r\n\r\n\r\n\r\n
    \r\n \r\n\r\n
    +66/-3 \r\n 
    \r\n
    \r\nmiddleware_test.go
    Add tests for\r\nmiddleware context variables handling.       \r\n 
    \r\n
    \r\n\r\napidef/oas/middleware_test.go\r\n- Added tests for context variables handling in middleware.\r\n\r\n\r\n\r\n
    \r\n \r\n\r\n
    +71/-0 \r\n 
    \r\n
    \r\noas_test.go
    Update tests to reflect\r\nremoval of redundant context variables\r\n
    enabling.
    \r\n
    \r\n\r\napidef/oas/oas_test.go\r\n
  • Removed assertions related to redundant context variables\r\nenabling.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +0/-5 \r\n   
    \r\n
    \r\nroot_test.go
    Add tests for enabling\r\ncontext variables if not set.         \r\n
    \r\n
    \r\n\r\napidef/oas/root_test.go\r\n- Added tests for `enableContextVariablesIfEmpty` method.\r\n\r\n\r\n\r\n
    \r\n \r\n\r\n
    +94/-0 \r\n 
    \r\n
    \r\napi_test.go
    Update tests for context\r\nvariables enabling logic.         \r\n   
    \r\n
    \r\n\r\ngateway/api_test.go\r\n
  • Updated tests to reflect changes in context variables enabling\r\nlogic.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +1/-20 \r\n 
    Bug fix\r\n
    3 files\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n
    \r\n
    \r\noas.go
    Remove redundant context\r\nvariables enabling.           \r\n             
    \r\n
    \r\n\r\napidef/oas/oas.go\r\n
  • Removed redundant enabling of context variables in\r\n
    newOASFromClassicAPIDefinition.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +0/-1 \r\n   
    \r\n
    \r\napi.go
    Remove redundant context\r\nvariables enabling code.           \r\n   
    \r\n
    \r\n\r\ngateway/api.go\r\n- Removed redundant code for enabling context variables by default.\r\n\r\n\r\n\r\n
    \r\n \r\n\r\n
    +0/-5 \r\n   
    \r\n
    \r\nx-tyk-api-gateway.json
    Correct\r\nplacement of context variables definition.     \r\n       
    \r\n
    \r\n\r\napidef/oas/schema/x-tyk-api-gateway.json\r\n- Moved `contextVariables` definition to the correct section.\r\n\r\n\r\n\r\n
    \r\n \r\n\r\n
    +3/-3 \r\n   
    \r\n\r\n___\r\n\r\n> 💡 **PR-Agent usage**:\r\n>Comment `/help` on the PR to get a list of all available PR-Agent tools\r\nand their descriptions\r\n\r\n---------\r\n\r\nCo-authored-by: Jeffy Mathew \r\nCo-authored-by: Tit Petric ","shortMessageHtmlLink":"Merging to release-5.3: [TT-11954/TT-12115]fix location of contextVar…"}},{"before":"6bc052808a9135e103b39d055005cabfa72ad481","after":"90653b2b40368b836dd1ef1650c10a58a838b0a4","ref":"refs/heads/merge/release-5.3/63963725d1b802d03841651f290d1cbd11f398e9","pushedAt":"2024-05-23T07:57:00.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"titpetric","name":"Tit Petric","path":"/titpetric","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/233360?s=80&v=4"},"commit":{"message":"Remove more old code","shortMessageHtmlLink":"Remove more old code"}},{"before":"465b59d6660e6c759022d3b14147d6a8d092630e","after":"6bc052808a9135e103b39d055005cabfa72ad481","ref":"refs/heads/merge/release-5.3/63963725d1b802d03841651f290d1cbd11f398e9","pushedAt":"2024-05-23T07:34:24.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"titpetric","name":"Tit Petric","path":"/titpetric","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/233360?s=80&v=4"},"commit":{"message":"Resolve conflicts","shortMessageHtmlLink":"Resolve conflicts"}},{"before":null,"after":"465b59d6660e6c759022d3b14147d6a8d092630e","ref":"refs/heads/merge/release-5.3/63963725d1b802d03841651f290d1cbd11f398e9","pushedAt":"2024-05-23T07:29:26.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"tykbot[bot]","name":null,"path":"/apps/tykbot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/35290?s=80&v=4"},"commit":{"message":"[TT-11954/TT-12115]fix location of contextVariables (#6285)\n\n\n\nfix context variables location\nParent: https://tyktech.atlassian.net/browse/TT-11954\nSubtask: https://tyktech.atlassian.net/browse/TT-12115\n\n\n\n\n\n\n\n\n\n\n- [x] Bug fix (non-breaking change which fixes an issue)\n- [ ] New feature (non-breaking change which adds functionality)\n- [ ] Breaking change (fix or feature that would cause existing\nfunctionality to change)\n- [ ] Refactoring or add test (improvements in base code or adds test\ncoverage to functionality)\n\n\n\n\n\n- [ ] I ensured that the documentation is up to date\n- [ ] I explained why this PR updates go.mod in detail with reasoning\nwhy it's required\n- [ ] I would like a code coverage CI quality gate exception and have\nexplained why\n\n___\n\nBug fix, Enhancement\n\n___\n\n- Enhanced handling of `ContextVariables` in middleware to prevent their\nloss when global settings are omitted.\n- Added and updated tests for the new handling methods of\n`ContextVariables`.\n- Modified OAS migration logic to not enable `ContextVariables` by\ndefault, providing more control.\n- Implemented a new method `SetContextVariablesIfEmpty` to conditionally\nset `ContextVariables` if they are not already set.\n- Updated API creation logic to utilize the new method for setting\n`ContextVariables`, ensuring consistency and control.\n\n___\n\n
    Relevant\nfiles
    Enhancement\n\n\n \n\n\n\n\n \n\n\n\n\n \n\n\n\n\n \n\n\n
    \n
    \nmiddleware.go
    Enhance handling and\nlifecycle of ContextVariables in middleware
    \n
    \n\napidef/oas/middleware.go\n
  • Added handling to preserve ContextVariables when\nGlobal middleware
    settings are omitted.
  • \nImplemented Fill and ExtractTo methods for\nContextVariables to manage
    their lifecycle in API\ndefinitions.
    \n\n
  • \n\n
    +46/-0 \n 
    \n
    \noas.go
    Modify default\nContextVariables behavior on OAS migration
    \n
    \n\napidef/oas/oas.go\n
  • Removed default enabling of ContextVariables during OAS\nmigration to
    allow more controlled management.
    \n\n
  • \n\n
    +0/-1 \n   
    \n
    \nroot.go
    Implement conditional setting\nof ContextVariables           \n   
    \n
    \n\napidef/oas/root.go\n
  • Added SetContextVariablesIfEmpty to ensure\nContextVariables are set
    only if they are not already\nconfigured.
    \n\n
  • \n\n
    +23/-0 \n 
    \n
    \napi.go
    Adjust API creation logic to\nuse new ContextVariables setting method
    \n
    \n\ngateway/api.go\n
  • Adjusted logic to use SetContextVariablesIfEmpty for\nsetting context
    variables during API creation.
    \n\n
  • \n\n
    +3/-3 \n   
    Tests\n\n\n \n\n\n\n\n \n\n\n\n\n \n\n\n
    \n
    \nmiddleware_test.go
    Add tests for\nContextVariables handling in middleware     \n 
    \n
    \n\napidef/oas/middleware_test.go\n
  • Added tests for ContextVariables to ensure correct\nbehavior of Fill
    and ExtractTo\nmethods.
    \n\n
  • \n\n
    +71/-0 \n 
    \n
    \nroot_test.go
    Test new conditional\nContextVariables setting method         \n
    \n
    \n\napidef/oas/root_test.go\n
  • Added extensive testing for the new\nSetContextVariablesIfEmpty method
    to verify its\nconditional logic.
    \n\n
  • \n\n
    +124/-0 \n
    \n
    \napi_test.go
    Update API tests to\naccommodate new ContextVariables logic
    \n
    \n\ngateway/api_test.go\n
  • Updated tests to reflect new handling of\nContextVariables in API
    creation and migration\nscenarios.
    \n\n
  • \n\n
    +4/-4 \n   
    \n\n___\n\n> 💡 **PR-Agent usage**:\n>Comment `/help` on the PR to get a list of all available PR-Agent tools\nand their descriptions\n\n(cherry picked from commit 63963725d1b802d03841651f290d1cbd11f398e9)","shortMessageHtmlLink":"[TT-11954/TT-12115]fix location of contextVariables (#6285)"}},{"before":"e10f3c239532eacb30cdb25c0b0b3bbf95cd7e18","after":null,"ref":"refs/heads/merge/release-5.3/6b7c9ad54c33314499192f0feba7b8a717b40a01","pushedAt":"2024-05-23T07:23:10.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"titpetric","name":"Tit Petric","path":"/titpetric","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/233360?s=80&v=4"}},{"before":"05ec0f52b31bda6f0d6be6f9393e06722cb5a222","after":"0038992886cd297e7aabeb473aa25d6e180557bb","ref":"refs/heads/release-5.3","pushedAt":"2024-05-23T07:23:08.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"titpetric","name":"Tit Petric","path":"/titpetric","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/233360?s=80&v=4"},"commit":{"message":"[TT-11954/TT-12155] add x-tyk-api-gateway.servers.contextVariables.en… (#6302)\n\n### **User description**\r\n…abled (#6281)\r\n\r\n\r\n\r\n- add x-tyk-api-gateway.servers.contextVariables.enabled\r\n- enable context variables by default for OAS APIs if not explicitly\r\nconfigured otherwise.\r\n\r\n\r\nParent: https://tyktech.atlassian.net/browse/TT-11954 Subtask:\r\nhttps://tyktech.atlassian.net/browse/TT-12155 \r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [ ] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing\r\nfunctionality to change)\r\n- [ ] Refactoring or add test (improvements in base code or adds test\r\ncoverage to functionality)\r\n\r\n\r\n\r\n\r\n\r\n- [ ] I ensured that the documentation is up to date\r\n- [ ] I explained why this PR updates go.mod in detail with reasoning\r\nwhy it's required\r\n- [ ] I would like a code coverage CI quality gate exception and have\r\nexplained why\r\n\r\n___\r\n\r\nenhancement\r\n\r\n___\r\n\r\n- Added handling and configuration for context variables in the OAS\r\nserver structure.\r\n- Removed hardcoded enabling of context variables, now configurable via\r\nJSON.\r\n- Updated tests to reflect new logic and added new tests for context\r\nvariable configuration.\r\n- Updated JSON schema to include new `ContextVariables` definition.\r\n\r\n___\r\n\r\n
    Relevant\r\nfiles
    Tests\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n\r\n\r\n
    \r\n
    \r\noas_test.go
    Update OAS Test to\r\nReflect Context Variable Changes       \r\n   
    \r\n
    \r\n\r\napidef/oas/oas_test.go\r\n- Removed assertion for `EnableContextVars` in `TestOAS`.\r\n\r\n
    \r\n\r\n
    +0/-1 \r\n   
    \r\n
    \r\nserver_test.go
    Add Tests for Context\r\nVariables in Server Struct         \r\n       
    \r\n
    \r\n\r\napidef/oas/server_test.go\r\n- Added tests for `ContextVariables` handling in `Server` struct.\r\n\r\n
    \r\n\r\n
    +71/-0 \r\n 
    \r\n
    \r\napi_test.go
    Test Default Enabling of\r\nContext Variables in OAS APIs     
    \r\n
    \r\n\r\ngateway/api_test.go\r\n
  • Added tests to ensure context variables are enabled by default and\r\n
    respect explicit configuration.
    \r\n\r\n
  • \r\n\r\n
    +21/-0 \r\n 
    Enhancement\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n \r\n\r\n
    \r\n
    \r\nroot.go
    Remove Hardcoded Context\r\nVariable Enabling in Root Extraction

    \r\n\r\napidef/oas/root.go\r\n- Removed hardcoded enabling of `EnableContextVars`.\r\n\r\n
    \r\n\r\n
    +0/-3 \r\n   
    \r\n
    \r\nserver.go
    Integrate Context Variables\r\nHandling in Server Struct       \r\n
    \r\n
    \r\n\r\napidef/oas/server.go\r\n
  • Added handling for ContextVariables in\r\nServer struct.
  • Implemented Fill and\r\nExtractTo methods for ContextVariables.
    \r\n\r\n
  • \r\n\r\n
    +41/-0 \r\n 
    \r\n
    \r\napi.go
    Default Enable Context\r\nVariables for OAS APIs           \r\n           

    \r\n\r\ngateway/api.go\r\n
  • Added default enabling of context variables for OAS APIs if not\r\n
    explicitly set.
    \r\n\r\n
  • \r\n\r\n
    +5/-0 \r\n   
    \r\n
    \r\nx-tyk-api-gateway.json
    Add JSON\r\nSchema for Context Variables         \r\n                   \r\n         

    \r\n\r\napidef/oas/schema/x-tyk-api-gateway.json\r\n- Added schema definition for `ContextVariables`.\r\n\r\n
    \r\n\r\n
    +14/-0 \r\n 
    \r\n\r\n___\r\n\r\n> 💡 **PR-Agent usage**:\r\n>Comment `/help` on the PR to get a list of all available PR-Agent tools\r\nand their descriptions\r\n\r\n\r\n\r\n## Description\r\n\r\n\r\n\r\n## Related Issue\r\n\r\n\r\n\r\n\r\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How This Has Been Tested\r\n\r\n\r\n\r\n\r\n\r\n\r\n## Screenshots (if appropriate)\r\n\r\n## Types of changes\r\n\r\n\r\n\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [ ] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing\r\nfunctionality to change)\r\n- [ ] Refactoring or add test (improvements in base code or adds test\r\ncoverage to functionality)\r\n\r\n## Checklist\r\n\r\n\r\n\r\n\r\n\r\n- [ ] I ensured that the documentation is up to date\r\n- [ ] I explained why this PR updates go.mod in detail with reasoning\r\nwhy it's required\r\n- [ ] I would like a code coverage CI quality gate exception and have\r\nexplained why\r\n\r\n\r\n___\r\n\r\n### **PR Type**\r\nEnhancement, Tests\r\n\r\n\r\n___\r\n\r\n### **Description**\r\n- Added `ContextVariables` struct and related methods to manage context\r\nvariables in OAS APIs.\r\n- Updated `Fill` and `ExtractTo` methods in `Server` to handle\r\n`ContextVariables`.\r\n- Enabled context variables by default for OAS APIs if not explicitly\r\nset to false.\r\n- Added tests to ensure context variables are enabled by default and can\r\nbe explicitly disabled.\r\n- Updated schema to include `contextVariables` and defined\r\n`X-Tyk-ContextVariables`.\r\n\r\n\r\n___\r\n\r\n\r\n\r\n### **Changes walkthrough** 📝\r\n
    Relevant\r\nfiles
    Tests\r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n
    \r\n
    \r\noas_test.go
    Remove assertion for\r\n`EnableContextVars` in OAS test.       \r\n
    \r\n
    \r\n\r\napidef/oas/oas_test.go\r\n- Removed assertion for `EnableContextVars` in `TestOAS`.\r\n\r\n\r\n\r\n
    \r\n \r\n\r\n
    +0/-1 \r\n   
    \r\n
    \r\nserver_test.go
    Add tests for\r\nContextVariables in Server.         \r\n                   \r\n 
    \r\n
    \r\n\r\napidef/oas/server_test.go\r\n- Added tests for `ContextVariables` in `Server`.\r\n\r\n\r\n\r\n
    \r\n \r\n\r\n
    +71/-0 \r\n 
    \r\n
    \r\napi_test.go
    Add tests for default and\r\nexplicit enabling of context variables.
    \r\n
    \r\n\r\ngateway/api_test.go\r\n
  • Added tests to ensure context variables are enabled by default.
    \r\n
  • Added tests to ensure context variables can be explicitly\r\ndisabled.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +21/-0 \r\n 
    Enhancement\r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n
    \r\n
    \r\nroot.go
    Remove always enabling\r\ncontext variables in ExtractTo method.
    \r\n
    \r\n\r\napidef/oas/root.go\r\n- Removed always enabling `EnableContextVars` in `ExtractTo` method.\r\n\r\n\r\n\r\n
    \r\n \r\n\r\n
    +0/-3 \r\n   
    \r\n
    \r\nserver.go
    Add ContextVariables struct\r\nand update Fill and ExtractTo methods.
    \r\n
    \r\n\r\napidef/oas/server.go\r\n
  • Added ContextVariables struct and related methods.
    \r\n
  • Updated Fill and ExtractTo methods to\r\nhandle ContextVariables.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +41/-0 \r\n 
    \r\n
    \r\napi.go
    Enable context variables by\r\ndefault for OAS APIs.           \r\n   
    \r\n
    \r\n\r\ngateway/api.go\r\n
  • Enabled context variables by default for OAS APIs if not explicitly\r\n
    set.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +5/-0 \r\n   
    \r\n
    \r\nx-tyk-api-gateway.json
    Add\r\ncontextVariables to schema and define\r\nX-Tyk-ContextVariables.
    \r\n
    \r\n\r\napidef/oas/schema/x-tyk-api-gateway.json\r\n
  • Added contextVariables to the schema.
  • Added\r\nX-Tyk-ContextVariables definition.
    \r\n\r\n\r\n
  • \r\n \r\n\r\n
    +14/-0 \r\n 
    \r\n\r\n___\r\n\r\n> 💡 **PR-Agent usage**:\r\n>Comment `/help` on the PR to get a list of all available PR-Agent tools\r\nand their descriptions\r\n\r\n---------\r\n\r\nCo-authored-by: Jeffy Mathew \r\nCo-authored-by: Tit Petric ","shortMessageHtmlLink":"[TT-11954/TT-12155] add x-tyk-api-gateway.servers.contextVariables.en… ("}},{"before":null,"after":"fe24bf0824f17f74906d14c707e96fcf9e51f952","ref":"refs/heads/fix/event-handler-webhooks-error-handling","pushedAt":"2024-05-23T07:18:42.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"titpetric","name":"Tit Petric","path":"/titpetric","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/233360?s=80&v=4"},"commit":{"message":"Fix poor error handling in webhook event templates","shortMessageHtmlLink":"Fix poor error handling in webhook event templates"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEUkVYvwA","startCursor":null,"endCursor":null}},"title":"Activity · TykTechnologies/tyk"}