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(ui): Upcoming events are shown again. #58

Merged
merged 1 commit into from Nov 1, 2022

Conversation

Teebusch
Copy link
Contributor

@Teebusch Teebusch commented Nov 1, 2022

fix(ui): Events are shown again. The problem was caused by a parsing error of event descriptions with links in it. As a quick fix, the event description is not shown anymore. and the github action should work again.

The "upcoming events shortcode" converts the vortex xml feed into a JSON using an API. The summary/description text was then extracted from the JSON. This worked fine unti one of the descriptions contained a link. Links are converted to nested levels of JSON. See image:

image

The shortcode was unable to "plainify" this nested JSON and crashed. As a quick fix, I have removed the description from the output.

A proper fix would be to filter the nested "p" structure for all "text" fields and paste them together.
The code is commented out, in case anyone wants to dive into Hugo and figure out how to do this later. I currently have no capacity for it.

Itnow looks like this:
image

fixes #57

fix(ui): Events are shown again. The problem was caused by a parsing error of  event descriptions with links in it. As a quick fix, the event description is not shown anymore. and the github action should work again.

#57
@Teebusch Teebusch added the bug 🐞 Issues that make the product feel broken. High priority. label Nov 1, 2022
@Teebusch Teebusch mentioned this pull request Nov 1, 2022
@arockenberger arockenberger merged commit 95ba845 into master Nov 1, 2022
@arockenberger
Copy link
Member

Thank you!! Wonderful! I will forward your suggestion for future fixes and improvements to the community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Issues that make the product feel broken. High priority.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No upcoming events
2 participants