mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 09:16:03 +03:00
[PR #4315] [MERGED] fix: sidebar codegen crashing and AWS Signature Auth flow updates #4748
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4748
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/4315
Author: @AndrewBastin
Created: 9/1/2024
Status: ✅ Merged
Merged: 9/1/2024
Merged by: @AndrewBastin
Base:
patch← Head:fix/codegen-crash📝 Commits (6)
d4a6e4afix: sidebar codegen crashingee65f3fchore: resolve type errors9cbd59achore: add default values for AWS Signature auth type fields5f42475chore: no response message added2dda654Merge branch 'fix/codegen-crash' of github.com:AndrewBastin/hoppscotch into pr/AndrewBastin/4315ad9ce4cchore: revert updates toHttpRequestcomponent📊 Changes
7 files changed (+63 additions, -26 deletions)
View changed files
📝
packages/hoppscotch-common/locales/en.json(+2 -1)📝
packages/hoppscotch-common/src/components/graphql/Authorization.vue(+4 -0)📝
packages/hoppscotch-common/src/components/http/Authorization.vue(+5 -0)📝
packages/hoppscotch-common/src/components/http/Codegen.vue(+13 -3)📝
packages/hoppscotch-common/src/components/http/ResponseInterface.vue(+15 -2)📝
packages/hoppscotch-common/src/helpers/RequestRunner.ts(+2 -2)📝
packages/hoppscotch-common/src/helpers/utils/EffectiveURL.ts(+22 -18)📄 Description
Closes #4314
This PR includes fixes for the following issues:-
What's changed
getEffectiveRESTRequestreturns a Promise, this was not awaited in the computation for the code generation, leading to a null reference, crashing the sidebar. The correction was to await the promise and evaluate based on that. This has been extended to all places of usage.AWS Signatureas the Authorization type.Notes to reviewers
N/A
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.