-
Notifications
You must be signed in to change notification settings - Fork 3
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
Zoltan/defining default allocation #45
Zoltan/defining default allocation #45
Conversation
Resolves cauldron#22 - The issue here is that bd.projects.get_base_directories() will return a Path object which cannot be serialized. We can address this by simply converting it to a string before saving it out. ===== TESTS ====== I tested by ensuring my local copy of AB would boot up without issues. Prior to this, I was getting errors about the json file not being readable or writable with json.load or json.dump
…tings-is-invalid app will crash if settings is invalid
- sorting after changing a def alloc field does not always work automatically (sorting column and order is reset by the update_proxy_model() call) - checking the read-only checkboxes sometimes triggers a reorder of the table (probably because of the sync() call) - application crashes when flushing the databases (even without changes), because flush() triggers a sync(), which does not call begin / end ModelReset()
Pull Request Test Coverage Report for Build 10628628341Details
💛 - Coveralls |
- on the read-only flag: here we expect clicks to toggle the flag - on the default allocation column, when the database is not read-only: in this case we expect the item editor for the cell to open
createIndex(row, col) only works with QTableView and with no proxy model, in all these cases index is the correct method to call.
@zoltanszocs This is good progress! The double-click to change database default allocation is definitely not intuitive, but I don't think we need to worry about that right now. I updated #33 with more detail on the remaining tasks.
This is blocked by brightway-lca/multifunctional#23
I don't see the allocation values, not sure where the bug is. According to the tests this information is being stored correctly? |
For not multifunctional db: - default allocatin can not be edited now - its value is "Not applicable"
…-browser into zoltan/defining-default-allocation
Checklist
bug
,feature
,ui
,change
,documentation
,breaking
,ci
as they show up in the changelog.