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

The dropdown in DataChartUI shows a category for both transaction types - even though it is only in one #110

Closed
M-Zuber opened this issue Dec 28, 2015 · 2 comments

Comments

@M-Zuber
Copy link
Owner

M-Zuber commented Dec 28, 2015

I am not sure what layer the code that causes the bug is on...
[EDIT]
See below as the issue is caused when entering a new transaction

@M-Zuber
Copy link
Owner Author

M-Zuber commented Dec 29, 2015

Brain dump on the matter:

Since the categories are called with AsNoTracking, they seem to be treated as new items when saving the transaction.

Before any of this, look if there is a setting for CodeFirst that controls the creation of sub objects


As a precondition, maybe add unique indexes to the appropiate tables - code can be found in VirtualGabbai

First try and see if just removing the AsNoTracking is enough
- This entails updaing the update methods as well
- The tests should be able to catch any regressions in this area

If that does work, before saving the item, pull the categories from the database and set the properties to be equal to the object that is returned

Last ditch scenario is too revert to having seperate sets of objects.
- Although I am not so sure that this will actually help.

@M-Zuber
Copy link
Owner Author

M-Zuber commented Dec 29, 2015

Per this article the change is to update the non-read actions to use FK properties.

@M-Zuber M-Zuber modified the milestone: v2.0.1 Dec 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant