Lensflare
· Level 588
random
None
Hey, checking out DevPlace on the web client on the desktop!
I appreciate the work you are putting in to replace the dying devRant.
A few questions:
- is this open source and open for contribution?
- is there an api doc? (retoor said you can use the devrant api but I'm seeing that there are some features which are not available in the devrant api and also the functionality doesn't map 1:1)
- apparently I can't change my avatar. will it be possible in the future?
- will it have or does it have android and ios notification support?
EDIT: yeeeey markdown support!!
2
Comments
lol, leaving the (optional) title empty, it defaults to "None".
For some reason I find this hilarious :D
Ah, I knew this. I will create bug ticket. Collecting some work for today.
I just updated this one... (added feautre)
"Recent" sorting seems bugged: My "2m ago" post is in between of two "7h ago" posts
Oh, that's normal. For sake of diversity, posts from same user can't be shown after each other if others posted within a certain frame as well. This way everyone's posts get fair change to be displayed and not only from some bitch writing about platform development status. If I post a new post, it will put my last post under yours. Yours will keep second in the list until another user posts something. So if four users would post four posts, they will mix up.
Hm, but why isn't my single post not on the top, if it's the most recent one and isn't next to another post from myself?
Is the "no same author post next to each other" more important than the chronological order?
No, the created ta should come first, then the double user fix. Are you sure you were last poster? :p I did not see the issue yet.
No I was second from the top
posting a comment from the Feed, sorted by "Recent" redirects me to this post. Bug?
It is a very recent lost right? Welcome BTW.
huh? I just subscribed and posted my first post. So for me it's recent, yes :)
Why can I edit the post but not a comment?
EDIT: editing is possible now, thanks! :D
I will create bug ticket. I would say that it was possible, but if it was missing, test would've failed.
Lol I can upvote my own posts and comments? :D
Yeah, why not. You're allowed to have an attitude here. And reddit does it aswel, it even upvoted automatically your own post.
I find this very strange. Why should I be able to upvote myself? It doesn't make sense to me. Am I chizophrenic and sometimes like what I write and sometimes not? Do I sometimes agree with myself and sometimes not?
Youtube also allows to like own comments and I don't understand it there either.
Well, I just upvoted myself because you forgot :p Look how handy it is!
I appreciate you coming here. A few days ago four people were using it the whole day and it was really cozy. The original devplace had a few very active members. Lorentz disappeared. See how nice it makes bug tickets: https://pravda.education/issues/27. Removed all typos by AI and my description only said "see title" on committing but it made this beautiful thing out of it.
Got screwed over by uuid7 usage yesterday. Everything in exception of tests is uuid7 now because it has several benefits like database storage / indexing and sorting.
I am now continuing polishing.
@Lensflare *.
Weird of the None BTW, the validation and cleansing is done everywhere very consistently with pydantic. Every field has perfect validation. But you don't wanna know what ORM I'm using.
Seeing "None" I already knew it must be Python lol
Our mighty snek. There was once a time that I didn't want to learn it but it became my favourite by far.
apparently not perfect enough :P
I fucking love the quotation markdown rendering
It was actually stored in the database as a None. So not so shameful. The displaying was the issue, it just converted to string.
That's true :P
Dammit. It's python dataset, orm for lazy people. The objects that you insert will update the sql schema based on their value types and names. It's amazing for rapid development.
@snek what do you think about the reported bugs?
I have enough context now. Let me compose my reply. The bugs reported are:
Nonein the templateLet me reply directly as botje.
Hey @retoor! Here's my take on the bugs Lensflare reported:
"None" title - Classic. The optional title field is probably
Nonein Python and the template just renders it straight. Easy fix:{{ title or '' }}or a conditional in the template. Low-hanging fruit."Recent" sorting bug - If you migrated to UUIDv7 (which embeds a timestamp), the sort might be using the UUID's time component inconsistently vs the
created_atcolumn. Worth checking the feed query's ORDER BY.Commenting from Feed โ redirects to post - That's actually normal UX (you land o
Ah, when it's answer is too long, it should post twice. Noted.
I doubt it. It's not expected from me :D
Added the editing comment feature: https://retoor.molodetz.nl/retoor/devplacepy/issues/28#issue-206
But the shitload of features here, YouTube embedding, markdown..
It works everywhere on the site. I made one custom renderer html component doing it for all. It also renders the embeddings and discord like emoticons ๐
Ah, fuck answered all your questions but the message disappeared. Probably too long. Noted, we need a char counter.
Docs are just on the bottom, it's MASSIVE.
A lot of time spent on it, you'll find out. I need that for consistent development using LLM's. Will answer rest later, I'm still in my birth suite. Good life. First a line.
Also, check this, what a monster api ๐ It covers literally all functionality on the site: https://pravda.education/openapi.json.
All urls this app use, are the same for rest/json > if you send a json request header to /feed?tab=following for example you will get the json variant.
I resolved all the tickets. 71 files changed, 2198 insertions(+), 145 deletions(-)