this post was submitted on 22 Sep 2023
17 points (100.0% liked)

Photon (moved to lemdro.id)

47 readers
1 users here now

We've moved to lemdro.id:

[email protected]

https://lemdro.id/c/Photon

founded 1 year ago
MODERATORS
17
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

Lemmy v0.19.0 is introducing some breaking changes that, if I add support for in Photon, will break compatibility with instances before v0.19.0. If I don't add support for v0.19.0, instances with that version or higher will break. How should I proceed?

A: Keep an old version of photon available for people who need to use a pre-0.19.0 instance (medium difficulty)

B: Add a message to login saying the instance must be v0.19.0 or higher, nuke all backwards compatibility (easiest solution)

C: wait until most instances are on v0.19.0 to proceed with B

D: Add code to handle different versions (hardest solution)

I'd prefer that people be able to rely on Photon, and anything that prevents them from doing stuff on photon I see as a catastrophic issue. A looks the most appealing right now.

all 17 comments
sorted by: hot top controversial new old
[–] Krafting 7 points 1 year ago (1 children)

"A" seems okey, just have an unsupported version with no more updates and just focus on the compatibility with Lemmy 1.19.

[–] [email protected] 2 points 1 year ago (1 children)

no more updates

I see you like to live dangerously with a publicly exposed website that no longer receives security updates

[–] Krafting 1 points 1 year ago

Lemmy is a fast-moving piece of software and you should keep it updated anyway. It doesn't get security update either

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (3 children)

I would just do B.

~~I have photon set to auto update on lemmy.ca so it would break ours until I upgrade lemmy, but that still seems reasonable.~~

Edit: I lied, I guess I never set that up after all. Still seems reasonable.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

How often does it auto upgrade? I noticed that photon.lemmy.ca is on V1.4.2 while the current version is V1.9.4. Are builds failing?

A few quite large bugs are on v1.4.2

[–] [email protected] 2 points 1 year ago

Yeah it doesn't. I was thinking of something else.

I'll update it now though 😂

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

How did you think you had it set to auto-update? Just curious how people have their Photons set up

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

Aww yiss, my instance admin is on top of it 😎

forgetting to update not withstanding

Edit: subscript formatting doesn't work right with sentences 🤔

[–] [email protected] 1 points 1 year ago (2 children)

What is Photon? I found this linked from somewhere else in the fediverse, but there's no sticky

[–] [email protected] 5 points 1 year ago

It's an alternative UI for the lemmy website.

[–] [email protected] 3 points 1 year ago

Made a sticky post.

[–] [email protected] 1 points 1 year ago

Is A just B but letting admins know what the latest compatible version of Photon is?

[–] FooBarrington 1 points 1 year ago (1 children)

I'd guess that this kind of thing will keep happening. Is D so hard because you don't have any infrastructure in place for supporting different versions? Or because this change will be particularly hard?

If it's missing infrastructure, it will probably be worth it to spend the time once and implement it.

[–] [email protected] 2 points 1 year ago (1 children)

What I mean is adding code in photon to support any version. I have the infrastructurae for A.

[–] FooBarrington 1 points 1 year ago

Then you should consider your long-term plans. If you will stay with option A long-term it's no issue. If you ever decide to switch to option D, it will be easier the earlier you do it.