[PR #3398] [MERGED] 🔧 Prevent metadata.json update if the sync time value is the same #4832

Closed
opened 2026-02-28 21:01:55 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/3398
Author: @MikesGlitch
Created: 9/8/2024
Status: Merged
Merged: 9/8/2024
Merged by: @MikesGlitch

Base: masterHead: fix/prevent-metadata-json-save-when-same-synctime


📝 Commits (2)

  • c415929 prevent metadata.json update if the sync time value is the same as the saved one
  • f704620 release notes

📊 Changes

2 files changed (+15 additions, -5 deletions)

View changed files

📝 packages/loot-core/src/server/sync/index.ts (+9 -5)
upcoming-release-notes/3398.md (+6 -0)

📄 Description

The sync gets fired when the user changes focus to the Actual app - this can cause unnecessary updates to metadata.json.

This change checks the current sync time and skips updating the metadata.json if the value is the same.

Evidence:
metadata json #2

This may help with #3390


🔄 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/actualbudget/actual/pull/3398 **Author:** [@MikesGlitch](https://github.com/MikesGlitch) **Created:** 9/8/2024 **Status:** ✅ Merged **Merged:** 9/8/2024 **Merged by:** [@MikesGlitch](https://github.com/MikesGlitch) **Base:** `master` ← **Head:** `fix/prevent-metadata-json-save-when-same-synctime` --- ### 📝 Commits (2) - [`c415929`](https://github.com/actualbudget/actual/commit/c4159292cf93645b4e17e2c2df331fa03ee9d1ed) prevent metadata.json update if the sync time value is the same as the saved one - [`f704620`](https://github.com/actualbudget/actual/commit/f70462040850e4d7204cbe8fbb655d4a0917c135) release notes ### 📊 Changes **2 files changed** (+15 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/server/sync/index.ts` (+9 -5) ➕ `upcoming-release-notes/3398.md` (+6 -0) </details> ### 📄 Description <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes --> The sync gets fired when the user changes focus to the Actual app - this can cause unnecessary updates to metadata.json. This change checks the current sync time and skips updating the metadata.json if the value is the same. Evidence: ![metadata json #2](https://github.com/user-attachments/assets/b86a8289-d6ac-4f5e-8acf-1a68fe4826a2) This may help with #3390 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 21:01:55 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#4832