I tried to update https://fedoraproject.org/wiki/Template:Validation_results_milestone_category with current IoT template link, but I realized I don't know how to do it properly.
The template is displayed here: https://fedoraproject.org/wiki/Category:Fedora_33_Test_Results https://fedoraproject.org/wiki/Category:Fedora-IoT_33_Test_Results
The former page has one invalid link, the latter page has numerous invalid links and a space after IoT is consumed for some reason. I wonder if we can do it better somehow?
I was hoping no-one was going to notice that, because it's really hard to fix. :P
well, I should say, it's difficult to fix cleanly, because we'd need to somehow hack up a concept of using a different array based on a conditional using only ParserFunctions, which I bet is possible but would be super ugly.
You can quite easily fix it in a very ugly way which involves just flat out hardcoding the known set of test types for each known dist, but I kinda hate that so I didn't do it.
another way to do it would be to stop using wiki templates for these categories and move the 'logic' from wiki templates into python-wikitcms, I guess. I'll have to think about how much I like that idea a bit.
OK. Would you know how to make the space after IoT to not get consumed?
I fixed it for now with the "ugly flat out hardcoding the known set of test types" approach. At least it's something! And it avoids the need to solve the space problem because we don't really need the 'dist' prefix any more. :) (The answer would probably have been to wrap it in nowiki tags).
Metadata Update from @adamwill: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
also I learned that ParserFunctions has a #switch, which turns out to be handy in this case. though good luck parsing it later, it's time to play "find the right pipe"
#switch
Don't worry, next time this needs an update, I'll be sure to create another ticket for you :D Thanks for the edits!
Log in to comment on this ticket.