[PR #4611] Added versioned entities for Settings and History (REST/GraphQL) #4872

Open
opened 2026-03-17 02:22:13 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4611
Author: @evannpham
Created: 12/12/2024
Status: 🔄 Open

Base: mainHead: issue4160


📝 Commits (2)

  • 0816281 Implemented versioned entity directories for settings and history
  • eb77ef0 Updated validation for settings and history to include versioned entities

📊 Changes

8 files changed (+205 additions, -16 deletions)

View changed files

📝 packages/hoppscotch-common/src/services/persistence/index.ts (+15 -12)
📝 packages/hoppscotch-common/src/services/persistence/validation-schemas/index.ts (+3 -4)
packages/hoppscotch-data/src/history/graphql/index.ts (+21 -0)
packages/hoppscotch-data/src/history/graphql/v/1.ts (+21 -0)
packages/hoppscotch-data/src/history/rest/index.ts (+21 -0)
packages/hoppscotch-data/src/history/rest/v/1.ts (+26 -0)
packages/hoppscotch-data/src/settings/index.ts (+25 -0)
packages/hoppscotch-data/src/settings/v/0.ts (+73 -0)

📄 Description

Addresses #4160

This PR adds versioned entities for Settings and History (REST/GraphQL)

What's changed

  • Added directories and implemented schemas for the Settings and History versioned entities.

  • Updated the implementation to utilize the versioned entity, ensuring the necessary migration is performed to handle the latest version.


🔄 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/4611 **Author:** [@evannpham](https://github.com/evannpham) **Created:** 12/12/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `issue4160` --- ### 📝 Commits (2) - [`0816281`](https://github.com/hoppscotch/hoppscotch/commit/081628149fdfd263b74104153a07b6cdd717ce20) Implemented versioned entity directories for settings and history - [`eb77ef0`](https://github.com/hoppscotch/hoppscotch/commit/eb77ef0bf2ba43d46ea6908e8b7813504c16c1fa) Updated validation for settings and history to include versioned entities ### 📊 Changes **8 files changed** (+205 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/services/persistence/index.ts` (+15 -12) 📝 `packages/hoppscotch-common/src/services/persistence/validation-schemas/index.ts` (+3 -4) ➕ `packages/hoppscotch-data/src/history/graphql/index.ts` (+21 -0) ➕ `packages/hoppscotch-data/src/history/graphql/v/1.ts` (+21 -0) ➕ `packages/hoppscotch-data/src/history/rest/index.ts` (+21 -0) ➕ `packages/hoppscotch-data/src/history/rest/v/1.ts` (+26 -0) ➕ `packages/hoppscotch-data/src/settings/index.ts` (+25 -0) ➕ `packages/hoppscotch-data/src/settings/v/0.ts` (+73 -0) </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 --> Addresses #[4160](https://github.com/hoppscotch/hoppscotch/issues/4160) <!-- Add an introduction into what this PR tries to solve in a couple of sentences --> This PR adds versioned entities for Settings and History (REST/GraphQL) ### What's changed <!-- Describe point by point the different things you have changed in this PR --> - Added directories and implemented schemas for the Settings and History versioned entities. - Updated the implementation to utilize the versioned entity, ensuring the necessary migration is performed to handle the latest version. <!-- 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 --> <!-- Any information you feel the reviewer should know about when reviewing your PR --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#4872
No description provided.