mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3591] [MERGED] HBE-326 feature: server configuration through GraphQL API #4441
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#4441
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/3591
Author: @mirarifhasan
Created: 11/24/2023
Status: ✅ Merged
Merged: 12/12/2023
Merged by: @mirarifhasan
Base:
release/2023.12.0← Head:feat/server-config📝 Commits (10+)
49c2ee0feat: restart cmd added in aio service5bee347feat: nestjs config package added74cec03test: fix all broken test casec352202feat: infra config module add with get-update-reset functionality4e188f3test: fix test case failure0a10f7cfeat: update infra configs mutation added6157848feat: utilise ConfigService in util functions1d05a76chore: remove saml stuffef84125feat: removed saml stuffs9f62ed6fix: config service precedence📊 Changes
37 files changed (+1717 additions, -613 deletions)
View changed files
📝
docker-compose.yml(+1 -0)📝
packages/hoppscotch-backend/package.json(+1 -0)➕
packages/hoppscotch-backend/prisma/migrations/20231124104640_infra_config/migration.sql(+14 -0)📝
packages/hoppscotch-backend/prisma/schema.prisma(+9 -0)📝
packages/hoppscotch-backend/src/admin/admin.module.ts(+2 -2)📝
packages/hoppscotch-backend/src/admin/admin.service.spec.ts(+3 -0)📝
packages/hoppscotch-backend/src/admin/admin.service.ts(+3 -1)📝
packages/hoppscotch-backend/src/admin/infra.resolver.ts(+91 -2)📝
packages/hoppscotch-backend/src/app.module.ts(+57 -38)📝
packages/hoppscotch-backend/src/auth/auth.controller.ts(+18 -3)📝
packages/hoppscotch-backend/src/auth/auth.module.ts(+34 -13)📝
packages/hoppscotch-backend/src/auth/auth.service.spec.ts(+14 -1)📝
packages/hoppscotch-backend/src/auth/auth.service.ts(+21 -11)📝
packages/hoppscotch-backend/src/auth/guards/github-sso.guard.ts(+12 -1)📝
packages/hoppscotch-backend/src/auth/guards/google-sso.guard.ts(+12 -1)📝
packages/hoppscotch-backend/src/auth/guards/microsoft-sso-.guard.ts(+12 -1)📝
packages/hoppscotch-backend/src/auth/helper.ts(+15 -7)📝
packages/hoppscotch-backend/src/auth/strategies/github.strategy.ts(+6 -4)📝
packages/hoppscotch-backend/src/auth/strategies/google.strategy.ts(+6 -4)📝
packages/hoppscotch-backend/src/auth/strategies/jwt.strategy.ts(+6 -2)...and 17 more files
📄 Description
Closes HBE-326
Description
This PR introduces the ability (in backend service) to update server configurations (
GOOGLE_CLIENT_ID,MAILER_SMTP_URL,VITE_ALLOWED_AUTH_PROVIDERS, etc) from the UI (Admin Dashboard).Graphql Mutation and Query lists: https://linear.app/hopp/issue/HBE-326/shc-hands-on-implementation-server-configuration
Details of backend implementation: https://www.notion.so/hoppscotch/Env-Variable-Configuration-from-UI-609016e231fc4f8ab85d3b2d83926ec1
Checks
Testing Instruction
Additional Information
Nil
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.