Skip to content

Fix uncaught exception when sorting columns in Graph Summary #111

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

Open
wants to merge 1 commit into
base: Main
Choose a base branch
from

Conversation

Olipro
Copy link
Collaborator

@Olipro Olipro commented Nov 5, 2024

The callback responsible for sorting columns would assume that the Tag field of the control always held a DataObjectBase but this is not necessarily true.

We now safely check if the type is compatible to avoid an uncaught exception.

Additionally, I have added code that will make a final attempt to sort by quality level; though I'm not entirely clear if it actually makes sense to do so here. If not, please let me know and I can alter/remove it.

fixes #106

The callback responsible for sorting columns would assume that the Tag
field of the control always held a `DataObjectBase` but this is not
necessarily true.

We now safely check if the type is compatible to avoid an uncaught
exception.

Additionally, I have added code that will make a final attempt to sort
by quality level; though I'm not entirely clear if it actually makes
sense to do so here. If not, please let me know and I can alter/remove
it.

fixes DanielKote#106
@Olipro Olipro force-pushed the GraphSummaryCrashFix branch from 74339c9 to 6481db1 Compare November 5, 2024 09:00
@Olipro
Copy link
Collaborator Author

Olipro commented Nov 5, 2024

I would mention that I did investigate having ItemQualityPair implement DataObjectBase - but given the fields in the base, that didn't strike me as making sense, if it does make sense, I'd be interested in learning why since I'm new to this codebase.

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.

Sorting issue within Factory Summary / Graph Summary
1 participant