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

Tool UIs: Handle missing folder short name #662

Merged
merged 4 commits into from
Jun 18, 2024

Conversation

iLLiCiTiT
Copy link
Member

Changelog Description

It looks like "shortName" does not have to be filled on project so safe access to the key was added.

Additional info

Also added base handling of failed thread in folders widget to at least print exception.

Testing notes:

  1. Projects without "shortName" in folder type should show folders in UIs.

@ynbot ynbot added type: bug Something isn't working size/XS labels Jun 18, 2024
Copy link
Collaborator

@BigRoy BigRoy left a comment

Choose a reason for hiding this comment

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

Didn't test, but changes make sense for the described issue.

I did notice my projects have these as default values:
image

And I've not faced an issue before this PR with anything. The question then becomes, how do I get my project into such a state that it is an actual issue?

Comment on lines +195 to +197
if thread.failed:
# TODO visualize that refresh failed
folder_items, folder_type_items = {}, {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we do anything to reproduce this particular issue when the thread would fail?

Copy link
Member Author

@iLLiCiTiT iLLiCiTiT Jun 18, 2024

Choose a reason for hiding this comment

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

It may wary, could be because server connection failed, or like reason of this PR, missing key in data.

@iLLiCiTiT iLLiCiTiT merged commit ea9ec56 into develop Jun 18, 2024
1 check passed
@iLLiCiTiT iLLiCiTiT deleted the bugfix/missing-folder-short-name branch June 18, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS type: bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants