Learn more about these different git repos.
Other Git URLs
As discussed in the 17 Oct 2017 meeting, we need mockups to show the new MVP version of IRC integration in hubs using links out to riot.im / matrix. Below is the log from the meeting describing the idea:
15:18:39 <mizmo> abompard: could we use this in the chat widget to provide a view of the room, > and have the button to link people over to riot to chat? https://view.matrix.org/room/!cURbafjkfsMDVwdRDQ:matrix.org/ 15:19:04 <abompard> mizmo: totally 15:19:20 <abompard> mizmo: we only need to know how to get that room id 15:19:34 <mizmo> ok awesome. it'll work for team hubs but not users 15:19:45 <mizmo> abompard: maybe put that burden on the hub admins for now 15:19:59 <sayan> abompard: admins fill the settings page 15:20:04 <mizmo> i can look them up manually in riot, eg this room is !pQKymaaQXBFBeuOxHn:matrix.org 15:20:05 <sayan> I mean the matrix room id 15:20:30 <mizmo> that seems really doable 15:20:43 <abompard> mizmo: yeah that's enough for a MVP, unless I find a magical API that gives me the answer easily 15:21:03 <mizmo> theres a js api for matrix, let me see if it lets you look up 15:21:54 <sayan> mizmo: nope, you cannot do that using the js dsk 15:22:02 <mizmo> https://matrix.org/docs/api/client-server/#!/Room32directory/get_matrix_client_r0_directory_room_roomAlias 15:22:11 <mizmo> so the aliases are predictable, this should work 15:22:39 <mizmo> eg the alias for this room is #freenode_#fedora-hubs:matrix.org 15:22:50 <mizmo> so you take the base IRC room name, prepend #freenode_ and append :matrix.org 15:23:07 <mizmo> that's the alias that you put into this api call 15:23:08 <abompard> mizmo: perfect 15:23:48 <mizmo> so we could just ask the hub admin for the irc channel name (as we were planning anyway), convert it to a matrix alias, then look up using the API call for the ID, and use that to pull in both the viewer and also to link over to riot 15:24:56 <abompard> Yep! 15:25:59 <mizmo> \o/ 15:26:11 <abompard> sounds cool :) 15:26:11 <mizmo> i think that'll be good enough for mvp 15:26:17 <abompard> yeah I think so too 15:26:34 <mizmo> and it doesnt tie us too tightly either in case something happens 15:28:04 <abompard> yeah 15:28:45 <mizmo> cool so ill work on those mockups today and if needed tommorrow with the aim of having something to show tomm afternoon my time 15:29:10 <abompard> BTW, it works: curl -X GET --header 'Accept: application/json' 'https://matrix.org:8448/_matrix/client/r0/directory/room/%23freenode_%23fedora-hubs%3Amatrix.org'
Here's what this would look like for MVP. I'm not 100% sure if this is possible.
Metadata Update from @duffy: - Issue priority set to: High
<img alt="irc-riot-integration.png" src="/fedora-hubs/issue/raw/files/c36f870e17684a55656c951136e2e5980c2c6f15142e15f2c5e57fdbd5129852-irc-riot-integration.png" />
Still working on the admin config side of this.
Ideally, what the config would look like:
<img alt="hub-admin-enter.png" src="/fedora-hubs/issue/raw/files/b9fe5bb590fc1d85753754cc679202ff77a98ce981208a12d416b6b25d505889-hub-admin-enter.png" />
<img alt="IRC-settings.png" src="/fedora-hubs/issue/raw/files/f5b201bbb452626aa4ef424bd8f5e3c9f4f1f990c50ad82f73b72b79b5394ec2-IRC-settings.png" />
Metadata Update from @ryanlerch: - Issue set to the milestone: Production
Metadata Update from @ryanlerch: - Issue set to the milestone: None (was: Production)
Login to comment on this ticket.