!GsmxjHfeAYLsTEQmjS:nixos.org

Matrix Meta (Nix)

658 Members
Discuss your proposals for the Matrix space here, before suggesting them in #matrix-suggestions:nixos.org189 Servers

Load older messages


SenderMessageTime
7 Jul 2024
@emma:rory.gay@emma:rory.gay hey hexa, which room id is the new space? 17:57:30
@emma:rory.gay@emma:rory.gayim getting very conflicting information from my server17:57:51
@emma:rory.gay@emma:rory.gay!MKvhXlSTLGJUXpYuWF:nixos.org vs !brXHJeAtqliwNGqHQx:lossy.network (both of them showing up as NixOS with the blue logo on my end)17:59:42
@dgrig:erethon.comdgrigI get !brXHJeAtqliwNGqHQx:lossy.network from my HS for the new one17:59:53
@emma:rory.gay@emma:rory.gayah so the n.o one is the old one, got it18:00:09
@emma:rory.gay@emma:rory.gayi dont exactly have a space to test on but i can check thhe basic logic18:01:41
@emma:rory.gay@emma:rory.gayhm, kinda screwed by low moderating server count in the new space...18:07:40
@emma:rory.gay@emma:rory.gayclipboard.png
Download clipboard.png
18:07:48
@emma:rory.gay@emma:rory.gayalright, just taking top 10 servers in the space by member count, everything looks okay, time to build, publish and push to git :)18:14:02
@emma:rory.gay@emma:rory.gay

its kinda slow because i kept the code simple, but should get the job done
shoved as much as i could into the check phase, as i cant test the execution phase
execution phase workflow:

 - iterate over children
   - skip if no permission to send m.space.parent in room
   - set canonical to false for all spaces that are set to canonical = true, if any
   - send new m.space.parent with canonical = true
18:16:41
@emma:rory.gay@emma:rory.gayalright, its done18:29:28
@emma:rory.gay@emma:rory.gay

deployment: https://mru.rory.gay/Tools/Room/FixCanonicalParentSpace?OldSpaceId=!MKvhXlSTLGJUXpYuWF:nixos.org&NewSpaceId=!brXHJeAtqliwNGqHQx:lossy.network

Source: https://cgit.rory.gay/matrix/tools/MatrixUtils.git/tree/MatrixUtils.Web/Pages/Tools/Room/FixCanonicalParentSpace.razor?h=main-pre-media-refactor

18:30:43
@emma:rory.gay@emma:rory.gay (hexa - keep in mind this requires being in all the direct children of the new space, whether spaces or rooms, also requires having a powerlevel that can send m.space.parent, though itll skip over rooms where either of these isnt the case) 18:33:27
@emma:rory.gay@emma:rory.gay https://github.com/matrix-org/matrix-spec-proposals/pull/4168
also give an upvote to this MSC, it adds this functionality at the spec level
19:03:06
@emma:rory.gay@emma:rory.gayoh and just something i noticed: it seems that the nixos ws and nixos gaming rooms arent in the new space?19:04:39
@emma:rory.gay@emma:rory.gay(theyre in the root space on the old one)19:05:02
@hexa:lossy.networkhexawhat is a .razor file? 👀20:14:29
@emma:rory.gay@emma:rory.gay
In reply to @hexa:lossy.network
what is a .razor file? 👀
https://dotnet.microsoft.com/en-us/apps/aspnet/web-apps/blazor
21:06:03
@emma:rory.gay@emma:rory.gay tl;dr https://mru.rory.gay is a native dotnet client (Single-Page Application style) using a custom matrix SDK 21:06:53
@emma:rory.gay@emma:rory.gayits pretty much the modern variant of .cshtml xD21:07:27
@hexa:lossy.networkhexa?????????????????21:11:30
@hexa:lossy.networkhexaI have so many questions21:11:34
@hexa:lossy.networkhexafor one, you deployed this21:12:02
@hexa:lossy.networkhexado you expect me to enter credentials on your deployment? 🤔21:12:30
@hexa:lossy.networkhexabecause I'd rather not21:12:47
@emma:rory.gay@emma:rory.gay
In reply to @hexa:lossy.network
do you expect me to enter credentials on your deployment? 🤔
usually yes, but the source is provided if you'd rather not
21:17:16
@emma:rory.gay@emma:rory.gaythe "deployment" is just "build static assets, throw on nginx to serve", theres no serverside compoents at all21:17:49
@emma:rory.gay@emma:rory.gay

assuming you have dotnet-sdk_8 on path:

git clone --recursive https://cgit.rory.gay/matrix/tools/MatrixUtils.git
cd MatrixUtils/MatrixUtils.Web
dotnet run -c Release
21:18:47
@emma:rory.gay@emma:rory.gay
In reply to @emma:rory.gay
the "deployment" is just "build static assets, throw on nginx to serve", theres no serverside compoents at all
or well, there is one serverside component, nginx serving a wwwroot :)
21:19:26
@emma:rory.gay@emma:rory.gay i chose not to go with a client/server architecture specifically to ease the entire "im entering credentials on your thing" aspect, whether you do is up to you, the source is provided as-is and the "deployment" is a direct build straight from source 21:20:57

Show newer messages


Back to Room ListRoom Version: 6