canonical / canonicalwebteam.discourse

GNU Lesser General Public License v3.0
11 stars 16 forks source link

Tutorial keys with typos cause 500s #111

Closed sowasred2012 closed 2 years ago

sowasred2012 commented 2 years ago

We had an issue where a tutorial had been added with an incorrect key, "Difficulty" was set to "Difficulty level", and it caused ubuntu.com/tutorials to 500 because it couldn't find the "Difficulty" key on a recently added tutorial: https://sentry.is.canonical.com/canonical/ubuntu-com/issues/23057/?query=is%3Aunresolved

It would be good to handle that differently - maybe by excluding tutorials like that until they're fixed (not sure how you'd indicate there's a problem with the tutorial to the author though)?

carkod commented 2 years ago

The way we do it on engage pages is to show an error in the front-end. I don't know a way to notify the Discourse user, but quite often I think anybody could really fix the error, not just the author, so if we need to notify then everyone should be notified maybe including us.

So after taking a look at this issue, it seems that the main issue that breaks ubuntu.com/tutorials is that we are looking for this exact word on ubuntu.com list of tutorials in order to order the tutorials by difficulty. So I don't think this is an issue in the module, it's more of an issue on ubuntu.com side.