The Glowfic Constellation

Do you have a setting, character, plot, art, or other notion that you wish to put on the Internet? This is the Internet! Whee!
Marri
Posts: 1026
Joined: Mon Mar 31, 2014 7:47 am

Re: The Glowfic Constellation

Post by Marri »

@Maggie it is presently problematic for the same >1000 posts, but I am working on precomputing it. (UGH I NEED BACKGROUND JOBS.)

@Daniel k, while it still seems unintuitive to me I am now outvoted and am also not generally the consumer of that particular feature so I'll change it.

@Moriwen I could give you a button to re-enable the Post button which is separate from the Post button, which seems like it gets both things. That said, I don't know why you'd have the "the page you were looking for does not exist" error; I don't see anything in my code that would do that. Can you get me the URL it's taking you to when you do that?

@Unbitwise: I don't precompute reply ids, they're sql auto increments, so I'd have to change that before I could implement such a thing.
User avatar
Unbitwise
Posts: 535
Joined: Tue Dec 16, 2014 9:39 am
Pronouns: he (or they or whatever)
Contact:

Re: The Glowfic Constellation

Post by Unbitwise »

It doesn't have to be The Reply ID or anything. Possible implementation:
1. Generate a random-or-incrementing number and put it as a hidden field in the form. Don't store it.
2a. When you get a reply form, put that number somewhere (it doesn't even have to be associated with the reply, but it could be if that's convenient).
2b. If you get a reply form and it's a number you've already seen, decline to create a new post.
3. If it suits, delete the numbers to save space after some timeout/circular-buffer-size/whatever.

This is kinda like generic XSRF protection except that you don't need to remember the number when you generate it. If you have a framework feature for XSRF protection already you might be able to piggyback on that?
Moriwen
Posts: 479
Joined: Mon Oct 19, 2015 5:54 pm
Pronouns: she/her

Re: The Glowfic Constellation

Post by Moriwen »

It apparently takes me to https://www.glowfic.com/replies for some reason.

(1): preparing to post
(2): no internet connection, hit "post"
(3): restore internet, hit "try again"
User avatar
Unbitwise
Posts: 535
Joined: Tue Dec 16, 2014 9:39 am
Pronouns: he (or they or whatever)
Contact:

Re: The Glowfic Constellation

Post by Unbitwise »

Feature request! I would like to see unread statuses on the continuities page, or a list of "continuities I haven't fully read", or the unread page grouped by continuity rather than sorted by update date. The first one sounds least cluttery though.
Marri
Posts: 1026
Joined: Mon Mar 31, 2014 7:47 am

Re: The Glowfic Constellation

Post by Marri »

@Moriwen if you know http status at all, /replies does not exist as a GET but it does exist as a POST. Your browser might be using the wrong thing when it retries? Is this on a phone or a computer? Most browsers will issue a "warning: you submitted form data, do you want to retry" when you refresh a post, but e.g. if my mobile device displayed "error no internet please try again" and I hit try again I'm not sure it does the right thing.

@Unbitwise that's a fair bit of work for something likely also solved by a button; I could To Do list it but I'd like to figure out why Moriwen's getting sent to GET /replies first. For unread statuses: sorting/filtering the unread page is already a to do, but what would you picture an unread button would do on a continuity? I mean, I'd guess it would take you to the unread link for the first thread (going by continuity order) that had anything unread, but some continuities (Sandboxes comes to mind) are basically unordered.
Moriwen
Posts: 479
Joined: Mon Oct 19, 2015 5:54 pm
Pronouns: she/her

Re: The Glowfic Constellation

Post by Moriwen »

This is on a computer; I have no idea what the words you said at the beginning mean. :P

Do not do anything that is much work for you! <33 This is a Very Small Problem.
User avatar
Unbitwise
Posts: 535
Joined: Tue Dec 16, 2014 9:39 am
Pronouns: he (or they or whatever)
Contact:

Re: The Glowfic Constellation

Post by Unbitwise »

I meant just a status display, not a link into any thread.

The scenario is that being new to reading-on-Constellation-with-an-account, one wants to catch up on reading everything (whether actually (re)reading or just mark-as-read-once-I-remember-it), and I want to do it by working through continuities in Proper Reading Order, not picking an arbitrary thread.

I can go to /posts/unread and click on the continuity link for an arbitrary unread continuity, but that feels inelegant, and doesn't give any kind of overview of things.
User avatar
DanielH
Posts: 3745
Joined: Tue Apr 01, 2014 1:50 pm
Pronouns: he/him/his

Re: The Glowfic Constellation

Post by DanielH »

Another form of double-posting protection, which might be harder but adds some other features, is to add a hidden field to the form which just has the most recent reply ID on the thread, and if that doesn’t match then error out with a generic “there are unread replies” message. In the case where it actually is a double post instead of inter-coauthor miscommunication, it would be a bit of a strange error message (or you could customize the message based on whether the new replies were by the same author as is now trying to post).

Unbitwise, would that work well? It seems like it would to me but I think you have more experience there than I do.

Marri, would that be easier to implement than generating some random number and saving it?
User avatar
Unbitwise
Posts: 535
Joined: Tue Dec 16, 2014 9:39 am
Pronouns: he (or they or whatever)
Contact:

Re: The Glowfic Constellation

Post by Unbitwise »

That sounds like a better idea than mine. However, I'd like to refine it by suggesting the “erroring out” should (much like this here forum does, actually) preserve your text (as if you hit Preview instead of Post) so that you don't lose work.
User avatar
DanielH
Posts: 3745
Joined: Tue Apr 01, 2014 1:50 pm
Pronouns: he/him/his

Re: The Glowfic Constellation

Post by DanielH »

You're saying that the people who design forums professionally, like phpBB, might be good at it?
Post Reply