Fix: Filter only active accounts in booking view#363
Conversation
|
Thanks for your support. |
|
Looking deeper on your changes I'm a bit confused. Did you try to fix the bug I filled today? If so, you are working on the wrong view model. I was talking about the import, so |
Also added a unit test to ensure only active accounts with valid mappings are shown.
|
Thanks for the update. The change looks correct, the test too. (I only will request some cosmetic changes separately.) |
…ewModelTests.cs Co-authored-by: Lukas Grützmacher <44983012+lg2de@users.noreply.github.com>
|
Thanks for the feedback! I'm really enthusiastic about contributing to this project, so I'm glad I could help. I'll add the filtering for inactive accounts and update the code soon. |
- Added null check for ImportMapping.Columns to prevent NullReferenceException. - Improved filtering logic to ensure only active accounts with valid remote configurations are included in ImportAccounts. - Updated unit tests to cover edge cases, including null and empty mappings.
- Added null check for ImportMapping.Columns to prevent NullReferenceException. - Improved filtering logic to ensure only active accounts with valid remote configurations are included in ImportAccounts. - Updated unit tests to cover edge cases, including null and empty mappings.
|
Sorry, but still you did not touch the list of remote accounts. So, "my bug" cannot be fixed. The check on null columns is fine, but should be integration into Regarding the tests: Please always use exactly on empty line between "arrange", "act" and "assert", not more if somehow possible. Ensure consistent format regarding indentation. |
|
Thanks for the guidance. I've applied the cosmetic changes and refactored the unit tests as you requested. However, I’m still struggling to reproduce the exact issue with the remote accounts on my end. Could you please provide a quick example of the account configuration that is still causing the bug? I want to make sure I'm testing the right scenario before I submit the final fix. |
|
Account 100: Bank account - with import configuration The list of remote accounts (for all entries in the list) should only show "New Shoes". |
|
Thanks for your patience. Refactored |
|
Thanks!! |
|
You're welcome! I learned a lot from this process, especially regarding the data structure of remote accounts. Thanks for your patience and guidance along the way. Happy to contribute! |


Related issue
Fixes #362