mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3505] [MERGED] feat: collection level headers and authorization #4415
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#4415
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/3505
Author: @nivedin
Created: 11/7/2023
Status: ✅ Merged
Merged: 12/13/2023
Merged by: @AndrewBastin
Base:
release/2023.12.0← Head:feat/coll-root-auth-headers📝 Commits (10+)
1896e5afeat: added properties option for root collectionf8aeb42chore: improve UI flow and add i18nae531f5chore: update properties UI flow59735c1refactor: update components to encapsulated326063chore: update typesa48d7e8refactor: inherited auth and header for req runner2687592refactor: add auth and header fields coll in sh7c3a842refactor: add fallback for new request auth stateb893607refactor: inherit properties when saving0a54455refactor: inherit header from multiple collecions📊 Changes
95 files changed (+3216 additions, -965 deletions)
View changed files
📝
packages/hoppscotch-cli/src/types/collections.ts(+2 -2)📝
packages/hoppscotch-cli/src/types/request.ts(+1 -1)📝
packages/hoppscotch-cli/src/utils/checks.ts(+2 -9)📝
packages/hoppscotch-cli/src/utils/collections.ts(+52 -54)📝
packages/hoppscotch-cli/src/utils/mutators.ts(+18 -16)📝
packages/hoppscotch-common/assets/themes/base-themes.scss(+1 -0)📝
packages/hoppscotch-common/locales/en.json(+5 -0)📝
packages/hoppscotch-common/src/components.d.ts(+1 -0)📝
packages/hoppscotch-common/src/components/app/spotlight/entry/GQLRequest.vue(+2 -2)📝
packages/hoppscotch-common/src/components/app/spotlight/entry/RESTRequest.vue(+2 -2)📝
packages/hoppscotch-common/src/components/collections/Collection.vue(+20 -4)📝
packages/hoppscotch-common/src/components/collections/ImportExport.vue(+29 -12)📝
packages/hoppscotch-common/src/components/collections/MyCollections.vue(+31 -10)➕
packages/hoppscotch-common/src/components/collections/Properties.vue(+166 -0)📝
packages/hoppscotch-common/src/components/collections/SaveRequest.vue(+61 -0)📝
packages/hoppscotch-common/src/components/collections/TeamCollections.vue(+31 -1)📝
packages/hoppscotch-common/src/components/collections/graphql/Add.vue(+46 -46)📝
packages/hoppscotch-common/src/components/collections/graphql/AddFolder.vue(+40 -38)📝
packages/hoppscotch-common/src/components/collections/graphql/Collection.vue(+55 -12)📝
packages/hoppscotch-common/src/components/collections/graphql/Edit.vue(+7 -6)...and 75 more files
📄 Description
Closes HFE-238 HFE-348 HFE-331 HFE-330 #2259 #1741
Description
This PR adds ability to set authorization & headers in collection and folder level which their requests can inherit.
The children request can either inherit the parent collection authorization or headers
The request authorization has a new option 'inherit' where the auth is inherited from their parent collection/folder if selected.
The authorizatiuon priority is like this
The auth set in request > Parent Folder > Root Colection
The header are can be inherited from the entire tree ie,
The request has the ability to overide the following headers
Checks
Additional information
TODO
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.