[PR #5496] [MERGED] fix: reset ONBOARDING_COMPLETED to false during infra config reset #5238

Closed
opened 2026-03-17 02:42:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5496
Author: @mirarifhasan
Created: 10/20/2025
Status: Merged
Merged: 10/20/2025
Merged by: @mirarifhasan

Base: nextHead: fix/reset-onboarding-completed-on-config-reset


📝 Commits (1)

  • c9be2c2 fix: reset ONBOARDING_COMPLETED config to false on reset

📊 Changes

1 file changed (+13 additions, -8 deletions)

View changed files

📝 packages/hoppscotch-backend/src/infra-config/infra-config.service.ts (+13 -8)

📄 Description

Closes BE-668 #5495.

What's changed

This pull request updates the logic for resetting infrastructure configuration defaults in the InfraConfigService. The main improvement is ensuring that the ONBOARDING_COMPLETED configuration is explicitly set to false when performing a reset, which helps maintain a consistent onboarding state for users.

Improvements to infra config reset logic:

  • The reset logic now explicitly sets the value of ONBOARDING_COMPLETED to 'false' when resetting configuration defaults.
  • Refactored variable names for clarity (infraConfigDefaultObjsdefaultConfigs, updatedInfraConfigDefaultObjsconfigsToReset).

Notes to reviewers

Please reset from the admin dashboard and check if the onboarding steps start


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/5496 **Author:** [@mirarifhasan](https://github.com/mirarifhasan) **Created:** 10/20/2025 **Status:** ✅ Merged **Merged:** 10/20/2025 **Merged by:** [@mirarifhasan](https://github.com/mirarifhasan) **Base:** `next` ← **Head:** `fix/reset-onboarding-completed-on-config-reset` --- ### 📝 Commits (1) - [`c9be2c2`](https://github.com/hoppscotch/hoppscotch/commit/c9be2c2acf719f74fcc746f109799371d851189b) fix: reset ONBOARDING_COMPLETED config to false on reset ### 📊 Changes **1 file changed** (+13 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-backend/src/infra-config/infra-config.service.ts` (+13 -8) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> <!-- Issue # here --> Closes BE-668 #5495. <!-- Add an introduction into what this PR tries to solve in a couple of sentences --> ### What's changed <!-- Describe point by point the different things you have changed in this PR --> This pull request updates the logic for resetting infrastructure configuration defaults in the `InfraConfigService`. The main improvement is ensuring that the `ONBOARDING_COMPLETED` configuration is explicitly set to `false` when performing a reset, which helps maintain a consistent onboarding state for users. **Improvements to infra config reset logic:** * The reset logic now explicitly sets the value of `ONBOARDING_COMPLETED` to `'false'` when resetting configuration defaults. * Refactored variable names for clarity (`infraConfigDefaultObjs` → `defaultConfigs`, `updatedInfraConfigDefaultObjs` → `configsToReset`). <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> ### Notes to reviewers <!-- Any information you feel the reviewer should know about when reviewing your PR --> Please reset from the admin dashboard and check if the onboarding steps start --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:42:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#5238
No description provided.