[PR #4546] feat: sync collection, requests to server if data is unsynced #4846

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4546
Author: @shipko
Created: 11/18/2024
Status: 🔄 Open

Base: mainHead: sync-data


📝 Commits (2)

  • 0856014 feat(sync-data): sync to server unsynced data
  • 83fbd83 feat(sync-data): add desktop platform

📊 Changes

6 files changed (+685 additions, -297 deletions)

View changed files

📝 packages/hoppscotch-common/src/components/collections/index.vue (+3 -0)
📝 packages/hoppscotch-common/src/newstore/collections.ts (+1 -1)
📝 packages/hoppscotch-selfhost-desktop/src/platform/collections/collections.api.ts (+58 -4)
📝 packages/hoppscotch-selfhost-desktop/src/platform/collections/collections.platform.ts (+304 -148)
📝 packages/hoppscotch-selfhost-web/src/platform/collections/collections.api.ts (+18 -0)
📝 packages/hoppscotch-selfhost-web/src/platform/collections/collections.platform.ts (+301 -144)

📄 Description

Closes #4436

What's changed

This change improves the functionality of synchronizing user data for REST collections and queries.
Now data that is stored only locally (without the ID parameter) will be sent to the server if:

  1. If the user worked locally without logging in to the account
  2. If the user did not have Internet access.
  • Not Completed
  • Completed

Notes to reviewers

This is the first stage of the functionality implementation. I want to get feedback from you


🔄 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/4546 **Author:** [@shipko](https://github.com/shipko) **Created:** 11/18/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `sync-data` --- ### 📝 Commits (2) - [`0856014`](https://github.com/hoppscotch/hoppscotch/commit/08560146c19bde101f3abbe625b9abfc96b6e978) feat(sync-data): sync to server unsynced data - [`83fbd83`](https://github.com/hoppscotch/hoppscotch/commit/83fbd83576b9fb2029ef3bcfe8ee9761ad725b22) feat(sync-data): add desktop platform ### 📊 Changes **6 files changed** (+685 additions, -297 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components/collections/index.vue` (+3 -0) 📝 `packages/hoppscotch-common/src/newstore/collections.ts` (+1 -1) 📝 `packages/hoppscotch-selfhost-desktop/src/platform/collections/collections.api.ts` (+58 -4) 📝 `packages/hoppscotch-selfhost-desktop/src/platform/collections/collections.platform.ts` (+304 -148) 📝 `packages/hoppscotch-selfhost-web/src/platform/collections/collections.api.ts` (+18 -0) 📝 `packages/hoppscotch-selfhost-web/src/platform/collections/collections.platform.ts` (+301 -144) </details> ### 📄 Description Closes #4436 ### What's changed This change improves the functionality of synchronizing user data for REST collections and queries. Now data that is stored only locally (without the ID parameter) will be sent to the server if: 1) If the user worked locally without logging in to the account 2) If the user did not have Internet access. - [ ] Not Completed - [x] Completed ### Notes to reviewers This is the first stage of the functionality implementation. I want to get feedback from you --- <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#4846
No description provided.