[PR #4129] [MERGED] Add ability to provide defaults for and skip updating cleared status in API #5203

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

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/4129
Author: @NikxDa
Created: 1/11/2025
Status: Merged
Merged: 1/15/2025
Merged by: @matt-fidd

Base: masterHead: feature/api-default-cleared


📝 Commits (6)

  • c5dd8e4 Cleared import changes
  • 82e3657 Add release notes
  • 129fc23 Make linter happy
  • 736172d Fix optional param
  • bd0347f Use nullish coalescing operator
  • bf3a2ac Merge branch 'master' into feature/api-default-cleared

📊 Changes

6 files changed (+29 additions, -3 deletions)

View changed files

📝 packages/api/methods.ts (+12 -1)
📝 packages/loot-core/src/server/accounts/sync.ts (+3 -2)
📝 packages/loot-core/src/server/main.ts (+2 -0)
📝 packages/loot-core/src/types/api-handlers.d.ts (+3 -0)
📝 packages/loot-core/src/types/server-handlers.d.ts (+3 -0)
upcoming-release-notes/4129.md (+6 -0)

📄 Description

  • Add ability to provide default for cleared field
  • Add ability to skip updating cleared field

Motivation

The reason for these changes is explained in https://github.com/NikxDa/actual-moneymoney/issues/20.
Basically, there is currently no way for an API import to leave the cleared status as set by the user, and neither is there a way to import transactions with the status defaulting to false. This addresses both issues, enabling importing and updating transactions without modifying their cleared status (a request I have so far received twice in the importer repo above).


🔄 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/4129 **Author:** [@NikxDa](https://github.com/NikxDa) **Created:** 1/11/2025 **Status:** ✅ Merged **Merged:** 1/15/2025 **Merged by:** [@matt-fidd](https://github.com/matt-fidd) **Base:** `master` ← **Head:** `feature/api-default-cleared` --- ### 📝 Commits (6) - [`c5dd8e4`](https://github.com/actualbudget/actual/commit/c5dd8e4fa42c8eb0b693d23691800d14416b5942) Cleared import changes - [`82e3657`](https://github.com/actualbudget/actual/commit/82e3657293e130a9e545c28e4e49f9dec7083609) Add release notes - [`129fc23`](https://github.com/actualbudget/actual/commit/129fc2367215ed78c293dbca6303535f76fc9eca) Make linter happy - [`736172d`](https://github.com/actualbudget/actual/commit/736172d4dbea5dbfedf15f606cfe40bcbefb233b) Fix optional param - [`bd0347f`](https://github.com/actualbudget/actual/commit/bd0347fdaaebeabd211f381911b8fabd522f64a4) Use nullish coalescing operator - [`bf3a2ac`](https://github.com/actualbudget/actual/commit/bf3a2acbaa1ab3f8bff919bfd7da45c61ceffcdd) Merge branch 'master' into feature/api-default-cleared ### 📊 Changes **6 files changed** (+29 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/api/methods.ts` (+12 -1) 📝 `packages/loot-core/src/server/accounts/sync.ts` (+3 -2) 📝 `packages/loot-core/src/server/main.ts` (+2 -0) 📝 `packages/loot-core/src/types/api-handlers.d.ts` (+3 -0) 📝 `packages/loot-core/src/types/server-handlers.d.ts` (+3 -0) ➕ `upcoming-release-notes/4129.md` (+6 -0) </details> ### 📄 Description - Add ability to provide default for cleared field - Add ability to skip updating cleared field *Motivation* The reason for these changes is explained in https://github.com/NikxDa/actual-moneymoney/issues/20. Basically, there is currently no way for an API import to leave the cleared status as set by the user, and neither is there a way to import transactions with the status defaulting to false. This addresses both issues, enabling importing and updating transactions without modifying their cleared status (a request I have so far received twice in the importer repo above). --- <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:08:00 -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#5203