Bug 36622

Summary: Add OpenGraph data to Bugzilla
Product: Koha Reporter: Jake Deery <jake.deery>
Component: bugs.koha-community.orgAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: chris, martin.renvoize, me
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Jake Deery 2024-04-17 12:56:21 UTC
Hi folks,

Since we've set up Mattermost, I've been working on adding OpenGraph data to Bugzilla 5.0.6 so we can reclaim lost functionality from IRC.

The solution, I've found, is to use some code written for BMO, but to rewrite it a little for our purposes.

May I present: https://gitlab.com/ptfs-europe/bz-exension-opengraph 

This extension has been tested at https://bugzilla.llownd.net/bugzilla5/show_bug.cgi?id=1 and appears to function as intended. Please feel free to do a little QA on it — it's all written in Perl/TemplateToolkit, so should be familiar to the masses :-) 

Could we get this extension installed, and the minor tweaks required applies to get it fully working?

Many thanks,
Jake
Comment 1 Katrin Fischer 2024-04-18 21:12:11 UTC
Let's get some eyes on this before installing it :)
Comment 2 Chris Cormack 2024-04-18 21:13:03 UTC
If someone wants to do a quick qa, im happy to install and tweak it after that
Comment 3 Martin Renvoize (ashimema) 2024-04-25 08:25:55 UTC
The code here is very simple to read and clear.  I can't spot any syntax issues in the templates or Perl code and it's following current Bugzilla best practices (I checked with the upstream Bugzilla devs)..

If this were a koha code patch, I'd add my lines ;)

Setting as Signed off.
Comment 4 Paul Derscheid 2024-04-26 19:42:43 UTC
Everything working as advertised, code checks out, nits picked. Now the template is formatted as well. Passed QA!
Comment 5 Paul Derscheid 2024-04-26 19:43:53 UTC
PS: I had scoped authorization for QAing this bug given by Martin Renvoize.
Comment 6 Chris Cormack 2024-04-26 20:35:51 UTC
Apply to bugzilla now
Comment 7 Paul Derscheid 2024-04-26 21:39:07 UTC
btw opengraph.xyz is a good site to test the results.