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

fix: dashboard crashes if an item is missing type [TECH-588] #1812

Merged
merged 3 commits into from
Jun 11, 2021

Conversation

jenniferarnesen
Copy link
Collaborator

@jenniferarnesen jenniferarnesen commented Jun 9, 2021

One character fix in itemTypes.js

The rest is support for new cypress tests that mock a request with missing or unrecognized item types.

Look at view_errors.feature for a summary of what the new new cypress tests do. Some cypress changes are just moving functions to common so that all tests can access the function

@jenniferarnesen jenniferarnesen marked this pull request as draft June 10, 2021 06:20
@jenniferarnesen jenniferarnesen marked this pull request as ready for review June 10, 2021 10:08
<ItemHeader
itemId={item.id}
dashboardMode={dashboardMode}
isShortened={false}
Copy link
Member

Choose a reason for hiding this comment

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

Is item.shortened not available anymore? Or is it supposed to be always false for non supported items?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Wait you are right. It could be shortened.

@jenniferarnesen jenniferarnesen merged commit a200395 into master Jun 11, 2021
@jenniferarnesen jenniferarnesen deleted the fix/dashboard-crashes-when-itemtype-missing branch June 11, 2021 07:08
dhis2-bot added a commit that referenced this pull request Jun 14, 2021
## [31.16.1](v31.16.0...v31.16.1) (2021-06-14)

### Bug Fixes

* dashboard crashes if an item is missing type [TECH-588] ([#1812](#1812)) ([a200395](a200395))
* include hideTitle property when loading map [DHIS2-11302] ([18d3053](18d3053))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 31.16.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants