Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve transaction commands #85

Merged
merged 7 commits into from Oct 29, 2019
Merged

Improve transaction commands #85

merged 7 commits into from Oct 29, 2019

Conversation

cambrian-dk
Copy link

No description provided.

@kenneth-fung kenneth-fung added this to the v1.3 milestone Oct 29, 2019
Copy link

@tcgj tcgj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

If possible could you do up the TransactionEditCommand asap? Rules still depend on it to have any effect at all.


Edits the specified transaction, setting the specified fields.
Edits the specified txn, setting the specified fields.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for text perhaps use "transaction" instead?


Deletes the transactions with the specified IDs.
Deletes the txn with the specified ID.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here perhaps

@coveralls
Copy link

Coverage Status

Coverage increased (+0.8%) to 25.143% when pulling 45b3dfa on cambrian-dk/ft-transactions into b655419 on master.

Copy link

@thaowei thaowei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two issues:

The default account handling is very weird. It should definitely not be kept as a static field in AccountsManager.

Transaction add also doesn't work. TransactionAddCommandParser calls CommandParserUtil#parseAccount which creates a new Account, and then sets, on the Transaction, the Account. Then TransactionAddCommand calls AccountsManager#addTransaction, which gets the Account set on the Transaction, adds the Transaction to that account, and then the Account is promptly lost.

I'm going to merge first, and we can fix it after the other PR is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants