Comments (3)
I was exploring the web app today to map out the relevant graphgl queries. Here's what I see:
GetTransactionsList
- once split, the list contains only the split transactions which are denoted withisSplitTransaction: True
member. There is no transaction member that indicates the parent transaction id (originalTransaction
as MM likes to call it).GetTransactionDrawer
- for split transactions, this query returns detailed per-transaction members to populate the drawer/side bar in the web app. Once a transaction is split, I cannot find a place in the UI such that the original transaction is shown again (unless you unsplit it - see below). ThehasSplitTransactions: <bool>
andsplitTransactions: []
members seem to indicate that if given a parent id as the query id it would return all splits; this isn't particularly useful because the UI invokes another query, described below, for getting all of the splits for a given transaction id. Importantly, this call does indicate the parent transactions by including theoriginalTransaction
member (real example):
"data": {
"getTransaction": {
"id": "123childID321", <- Fake
...other transaction members...
"hasSplitTransactions": false,
"isSplitTransaction": true,
"splitTransactions": [],
"originalTransaction": {
"id": "123parentID321", <- Fake
"date": "2024-01-02",
"amount": -100.0,
"merchant": {
"id": "12321", <- Fake
"name": "Test",
"__typename": "Merchant"
},
"__typename": "Transaction"
}
}
}
TransactionSplitQuery
- the UI invokes this query when bringing up the split dialog (which allows for creating, adjusting, deleting splits). Given the parent transaction id, returns a list of transaction ids that are the children splits.SplitTransactionMutation
- query for creating, modifying, deleting splits. All operate on the parent transaction id and are given a splitData array for how to divide the transaction. From the UI, you can only provide the new amount, merchantName, and category. If the parent transaction already has a note (or I imagine also tags - to be verified), these are cloned onto each split transaction automagically.
Deleting is the simplest: given the parent transaction id and splitData=[], delete all children transactions and return the parent transaction as the only transaction.
Creating and modifying splits are the same: given the parent transaction id and splitData=[...children splits...], where sum([s.amount for split in splitData]) == parentTranasction.amount, creates len(splitData) new transactions that are displayed in the UI in place of the parentTranasction; if parentTranasction already had splitTransactions
, then replace those with the new splitData.
Next step I am translating the network captures I've made into a working version and will create a PR once things look right.
from monarchmoney.
@grablair , can you confirm @jprouty 's PR addresses this issue?
from monarchmoney.
I believe it does. We can close this and open another one if someone discovers we are missing something.
from monarchmoney.
Related Issues (20)
- [Feature] Add method to trigger account refresh HOT 3
- Frequent 404s with MFA login HOT 6
- Missing transactions HOT 2
- Add unit test coverage HOT 3
- Does not correctly export transactions if '\n' is in the Description or Original Description column HOT 1
- Add Integration Testing HOT 1
- Add methods to delete Categories HOT 5
- [Feature] Upload Transaction History HOT 1
- Add support for querying for recurring merchants & transactions
- upload_account_balance_history endpoint is not working as expected HOT 3
- Add delete_session to delete saved session info HOT 1
- GraphQL queries that support the logoUrl element should probably not include it by default for performance HOT 1
- Login function doesn't properly return an exception when no email or password is provided HOT 1
- Recent change to API causing error when calling get_transactions HOT 6
- Transfer categories not present in `get_transaction_categories` response HOT 1
- Login fails with "HTTP Code 404: Not Found" when using a complex password HOT 4
- [Feature Request] Add additional filters to "get_transactions" HOT 1
- [Bug] 404 Error HOT 1
- No attribute 'update_account' HOT 2
- [Feature request]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monarchmoney.