ilyena_sylph: (Dreamwidth "d", rainbow-colored by Sophie) (Dreamwidth)
ilyena_sylph ([personal profile] ilyena_sylph) wrote in [site community profile] dw_dev2024-11-30 06:08 pm
Entry tags:

Code tour for 2023-11-22 to 2024-11-30

Hey everyone!

Somehow we looked around at it had been an entire year since we did a code tour. What the heck even is time?

This is... not great, so here I am trying to write one for everything that's been done in the last year. Strap in, things might get a bit exciting!

Not every change is live right at this moment, but will be soon (hopefully)!



Issue 2163: check style for width and height when parsing embeds (pull request)
Category: Embeds
Patch by: [github.com profile] kareila
Description: Making things embed much more nicely.

Issue 2315: convert /support/changenotify to Foundation (pull request)
Category: Brad in his Basement, BML go boom, Site Modernization
Patch by: [github.com profile] kareila
Description: Moving yet more things to Foundation so that Dreamwidth will continue to function.

Issue 2638: Add twitch to embed whitelist (pull request)
Category: Embed
Patch by: [github.com profile] chebegeek
Description: Making twitch something that can embed.

Issue 2803: Rework of /customize (pull request)
Category: Brad in his Basement, BML go boom, Site Modernization
Patch by: [github.com profile] momijizukamori
Description: Moving yet more things to Foundation so that Dreamwidth will continue to function.

Issue 3029: [#3029] allow listing of multiple accounts for a service on user's profile (pull request)
Category: Profile Prettiness
Patch by: [github.com profile] kareila
Description: Allows people to have multiple accounts for a service listed on their profile.

Issue 3083: optionally include expired sysbans in query results (pull request)
Category: Under the Hood (no, not a Red one)
Patch by: [github.com profile] kareila
Description: Help for the backend work.

Issue 3214: Convert remaining shop routes to TT/Foundation (pull request)
Category: Brad in his Basement, BML go boom, Site Modernization, Money Money Money
Patch by: [github.com profile] momijizukamori
Description: Moving yet more things to Foundation so that Dreamwidth will continue to function.

Issue 3271: standardize "Help/Support" link URL (pull request)
Category: Odds and ends
Patch by: [github.com profile] belatedly
Description: There was an odd thing going on where the Help/Support url didn't look the same everywhere.

Issue 3284: translation string cleanup G-J plus restore local community strings (pull request)
Category: Brad in his Basement, BML go boom, Site Modernization
Patch by: [github.com profile] kareila
Description: continuing to wrangle the mess of legacy translation strings and the occasional site-specific override.

Issue 3289: allow embeds from pbs.org (pull request)
Category: Embeds
Patch by: [github.com profile] chebegeek
Description: Allow pbs to embed neatly.

Issue 3290: allow embeds from libsyn.com
Category: Embeds
Patch by:
Description: More places things can embed from!

Issue 3304: December points bonus (pull request)
Category: User Benefits
Patch by: [github.com profile] kareila
Description: The code to allow last year's points' bonus to run.

Issue 3312: Re-add editjoural.bml strings for now (pull request)
Category: A little too eager with the Code Machete
Patch by: [github.com profile] momijizukamori
Description: Accidentally removed some text strings that were still in use (for now........)

Issue 3313: Remove a bunch of strings from local deadphrases (pull request)
Category: Code Machete
Patch by: [github.com profile] momijizukamori
Description: Got rid of some dead cruft!

Issue 3316: Move /edittags to Template Toolkit (pull request)
Category: Brad in his Basement, BML go boom, Site Modernization
Patch by: [github.com profile] momijizukamori
Description: More BML removal! Moving yet more things to Foundation so that Dreamwidth will continue to function.

Issue 3317: Convert /manage/circle/edit to Foundation (pull request)
Category: Brad in his Basement, BML go boom, Site Modernization
Patch by: [github.com profile] momijizukamori
Description: Moving yet more things to Foundation so that Dreamwidth will continue to function. Converts /manage/circle/edit to Foundation and gives it a bit of sprucing-up, so it's nice on mobile and has a real color picker for circle colors.

Issue 3318: Fix some minor display issues with updated /manage/circle/edit page (pull request)
Category: Brad in his Basement, BML go boom, Site Modernization
Patch by: [github.com profile] momijizukamori
Description: We were missing one of the display icons for the /manage/circle/edit page, and I tweaked some CSS for nicer tablet/split desktop views.

Issue 3321: Convert Customize widgets to TT (pull request)
Category: Brad in his Basement, BML go boom, Site Modernization
Patch by: [github.com profile] momijizukamori
Description: Slowly working our way through re-templating old code.... Moving yet more things to Foundation so that Dreamwidth will continue to function.

Issue 3322: Tidy up the edit tag page some (pull request)
Category: Brad in his Basement, BML go boom, Site Modernization
Patch by: [github.com profile] momijizukamori
Description: Momiji is entirely too hard on themself, but they say "Rectifying my sins (removing tables from a page conversion I forgot to clean up). Now matches other site styling and actually looks okay on mobile."

Issue 3329: update year in site footer to 2024
Category: Site Prettiness
Patch by:
Description: Linear time is a hell of a thing, innit?

Issue 3331: Convert CustomTextModule, NavStripChooser, and CustomizeTheme widgets to TT (pull request)
Category: Brad in his Basement, BML go boom, Site Modernization
Patch by: [github.com profile] momijizukamori
Description: But wait, there's more (widgets to convert to Template Toolkit)

Issue 3332: Clean up some bugs with converted shop pages (pull request)
Category: Site Prettiness, Money Money Money
Patch by: [github.com profile] momijizukamori
Description: Some minor bugfixes for post-conversion shop pages!

Issue 3333: Beta Inbox updates (pull request)
Category: Bug Swatting
Patch by: [github.com profile] momijizukamori
Description: Fix ALL the inbox bugs!

Issue 3339: trap ERR to see apache errors before the container dies (pull request)
Category: Backend Improvements
Patch by: [github.com profile] alierak
Description: More troubleshooting info when a web container fails to start.

Issue 3340: run apache2ctl configtest before starting (pull request)
Category: Bug Swatting
Patch by: [github.com profile] alierak
Description: More debugging in prod! (whee!!!!)

Issue 3341: fix typo in error.log filename (pull request)
Category: Typoes
Patch by: [github.com profile] alierak
Description: Sometimes typoes get past us! Then they get fixed!

Issue 3343: show build log on cpan install failure (pull request)
Category: Backend Improvements
Patch by: [github.com profile] alierak
Description: get debug info when a required perl module fails to install.

Issue 3344: blacklist version 2.207 of IO::Compress and related modules (pull request)
Category: Oh, Perl
Patch by: [github.com profile] alierak
Description: avoid using a buggy version of a required perl module.

Issue 3345: cpm won't accept spaces in version spec (pull request)
Category: Ridiculous spaces
Patch by: [github.com profile] alierak
Description: fixing a problem with the previous fix, typoes again.


Issue 3352: Fixes for updated shop pages (pull request)
Category: Bug Swatting, Money Money Money
Patch by: [github.com profile] momijizukamori
Description: Fixing some more little bugs

Issue 3357: Update more /shop links (pull request)
Category: User experience, Money Money Money
Patch by: [github.com profile] alierak
Description: continuing effort to direct traffic to new shop URL, where it really should be.

Issue 3362: theme chooser widget not working correctly with communities (pull request)
Category: User experience
Patch by: [github.com profile] momijizukamori
Description: Fixed the problem with picking a theme for communities.

Issue 3365: Fix escaping for edittags page (pull request)
Category: Code is Wild
Patch by: [github.com profile] momijizukamori
Description: TIL the HTML cleaner function in Template Toolkit expects HTML attributes to be double-quoted, and thus does not escape single quotes, leading to chaos if your attribute is single-quoted.

Issue 3366: Make our hidden inputs have a value on /manage/circle/edit (pull request)
Category: Brad in his Basement, BML go boom, Site Modernization
Patch by: [github.com profile] momijizukamori
Description: This bit of code uses a bunch of hidden form fields to keep track of what users already exist on the list, but when we converted it to TT, these form fields were given names but no values, and an earlier step in the request processing workflow removes inputs without values, which means the code for the page didn't know where to check for changes. This has been rectified.

Issue 3367: Make the linklist button use unicode instead of an HTML entity (pull request)
Category: oh, Perl; Code is Wild, Site Modernization
Patch by: [github.com profile] momijizukamori
Description: Moving the linkslist widget from Perl to TT meant that a character encoded as an HTML entity was not getting processed as HTML and was instead just dumping the raw HTML into the button text. As it is 2024 and we have utf8, it is now the actual utf8 symbol that was the HTML entity for, which is much tidier.

Issue 3368: remove more pnote references (pull request)
Category: Code Machete
Patch by: [github.com profile] alierak
Description: Mark removed a function without updating everything that was calling it.

Issue 3369: back out commits for removing pnote/pnotes (pull request)
Category: Um, oops?
Patch by: [github.com profile] kareila
Description: trying to remove dependencies on Apache, but this method was more deeply embedded than we realized, apparently?

Issue 3373: Show session messages on S2 pages, too. (pull request)
Category: Oh, Perl, Code is Wild, Site Prettiness
Patch by: [github.com profile] momijizukamori
Description: To quote Momiji again: "We've had session message flashing (basically little temporary messages like 'Edit successful!' that show after taking an action, and which vanish when you navigate to a new page) for a while now, but when we upgraded the tag editing page, they got added there, too, and we discovered a bug: they didn't show in journal-styled pages, causing them to appear on the next site-styled page you visited instead, which was generally very confusing. This adds those messages to journal-styled pages, currently with very minimal styling.

[note to devs deleted]"

Issue 3374: Manage circle fix (pull request)
Category: Site Modernization
Patch by: [github.com profile] momijizukamori
Description: Template Toolkit syntax is kind of cursed.

Issue 3379: update Gift Paid Time profile link to use new shop url
Category: User Experience, Money Money Money
Patch by:
Description: The 'gift paid time' was stuck in the past. Now it's joined us in the present.

Issue 3381: No longer using Freenode. (pull request)
Category: The Depths Of Time
Patch by: [github.com profile] pauamma
Description: https://www.dreamwidth.org/about wasn't updated when Dreamwidth IRC moved from Freenode to Libera Chat.

Issue 3389: Add Socchan's Fancy Rats as a mood theme (pull request)
Category: Moods!
Patch by: [github.com profile] momijizukamori
Description: Adorable new mood theme! Go check it out! Thank you [personal profile] soc_puppet!

Issue 3393: Add Socchan's Jellyfish mood themes (pull request)
Category: Moods!
Patch by: [github.com profile] momijizukamori
Description: Another Adorable new mood theme! Go check it out! Thank you [personal profile] soc_puppet!

Issue 3394: Order history in shop missing dates (pull request)
Category: Site Modernization, User Experience, Money Money Money
Patch by: [github.com profile] momijizukamori
Description: Made the shop show order history dates again.

Issue 3396: Convert /customize/viewuser to TT (pull request)
Category: Brad in his Basement, BML go boom, Site Modernization
Patch by: [github.com profile] momijizukamori
Description: Another BML page down! Was anyone using this one? Who knows! It was short enough to convert either way.

Issue 3397: Fix profile page link to shop (pull request)
Category: Site Modernization, Regulatory Nonsense
Patch by: [github.com profile] momijizukamori
Description: We had to move the shop to shop.dreamwidth.org for extremely unexciting compliance reasons, and most of the references to the old dreamwidth.org/shop got updated, but we missed the one on the profile page -- it would get you to the shop after a redirect, but it dropped the info about the account you wanted to buy paid time for along the way -- which was declared 'suboptimal'. This fixes the issue.

Issue 3399: set up December points bonus (pull request)
Category: Money Money Money
Patch by: [github.com profile] kareila
Description: The code for THIS year's points bonus, which needs to go live tomorrow!

Issue 3401: theme widget preview on DW homepage has malformed credit link (pull request)
Category: Code is Wild
Patch by: [github.com profile] momijizukamori
Description: Something was wonky about how credit was being displayed. Now it displays correctly!

Issue 3407: Remove debug code causing errors (pull request)
Category: Site Modernization, Bug Swatting
Patch by: [github.com profile] momijizukamori
Description: It turns out debug print messages do not make valid JSON! Who knew, right? The layout chooser widget now returns valid JSON that does not cause it to spew errors when you select a new layout.

56 total issues resolved
Contributors: [github.com profile] alierak, [github.com profile] belatedly, [github.com profile] chebegeek, [github.com profile] kareila, [github.com profile] momijizukamori, [github.com profile] pauamma
muccamukk: Wanda walking away, surrounded by towering black trees, her red cloak bright. (Default)

[personal profile] muccamukk 2024-12-01 01:20 am (UTC)(link)
Thank you for the code tour! When there's a chance, could you add the jellyfish to the moodtheme preview page?

https://www.dreamwidth.org/moodlist
kareila: Rosie the Riveter "We Can Do It!" with a DW swirl (dw)

[personal profile] kareila 2024-12-01 02:07 am (UTC)(link)
I believe they will show up on page 2 once the next site update goes live!
muccamukk: Wanda walking away, surrounded by towering black trees, her red cloak bright. (Default)

[personal profile] muccamukk 2024-12-01 02:14 am (UTC)(link)
Oh great! Thank you <3
soc_puppet: A gray hooded dumbo rat dragging a paintbrush along the ground; the brush is drawing a line of red. (Art Rat)

[personal profile] soc_puppet 2024-12-01 05:14 am (UTC)(link)
If you want to see them before that, you can check here ✌️ It's not all of them, and a few were reassigned to other moods, but it's a decent preview! Plus there's a download link for the files, in case you want to make a custom version with multiple colors 👍
Edited (missing space, and typo in the edit box ) 2024-12-01 05:15 (UTC)
muccamukk: Wanda walking away, surrounded by towering black trees, her red cloak bright. (Default)

[personal profile] muccamukk 2024-12-01 06:31 am (UTC)(link)
OMG! Those are so cute!
soc_puppet: Adorable art of the Pokémon Piplup; its flippers are clutched close to its chin, its eyes are dewy, and it is blushing, while light pink hearts and bubbles float around it. Originally a sticker for Pokémon Go. (Love Piplup)

[personal profile] soc_puppet 2024-12-01 06:32 pm (UTC)(link)
Thanks 😊 They were a lot of fun to make!
havocthecat: the lady of shalott (Default)

[personal profile] havocthecat 2024-12-01 01:42 am (UTC)(link)

That is a LOT of work! Thank you!

havocthecat: the lady of shalott (Default)

[personal profile] havocthecat 2024-12-01 01:43 am (UTC)(link)

And by that I mean to the coders and to you for writing the code tour!

soc_puppet: A gray masked dumbo rat wearing a Dreamwidth cheerleading outfit and waving red color-matched pompoms (Cheerleader)

[personal profile] soc_puppet 2024-12-01 04:06 am (UTC)(link)
Yay, they're here! I'm so excited 😁🥰

I'm sure you didn't time this to land on my birthday on purpose, but since the timing worked out that way, I'm counting it anyway 😜
msilverstar: (Default)

[personal profile] msilverstar 2024-12-01 05:49 am (UTC)(link)
I find the tags Brad in his Basement, BML go boom quite nostalgic
batrachian: (Lurking Frog)

[personal profile] batrachian 2024-12-01 11:01 am (UTC)(link)
There are many fewer things in the codebase that haven't been substantially altered since 1999...

[personal profile] pinterface 2024-12-01 07:25 am (UTC)(link)

If you haven't already, 3365 (<tag attr='[% var | html %]'> allowing HTML injection in tt) is the kind of thing I'd encourage y'all to file a security bug against the library for. A templating library for the web should not be handing you that particular footgun.

(I filed a similar bug against the mustache spec for this very issue in ... 2013(!). It is, apparently, still unresolved. sigh)

momijizukamori: Grey tabby cat with paws on keyboard and mouse. The text reads 'code cat is on the job', lolcats-style (CODE CAT)

[personal profile] momijizukamori 2024-12-01 06:02 pm (UTC)(link)
Oh, an excellent point - went ahead an filed a bug with TT for that :)
teres: A picture of a grey heron standing on rocks. (Amevlig)

[personal profile] teres 2024-12-01 07:54 am (UTC)(link)

Well done! I'd love to see these live.

musyc: Gregory House smiling at laptop, captioned "I love the internet" (House: I love the internet)

[personal profile] musyc 2024-12-01 08:29 am (UTC)(link)
Categories and descriptions in these always amuse me greatly. XD
musyc: Coffee beans captioned "I'm a coffee based life form" (Coffee: Coffee-based lifeform)

[personal profile] musyc 2024-12-02 04:55 pm (UTC)(link)
*cackle* I have tried to be very careful about that ever since buying an expensive keyboard. XD
silverflight8: bee on rose  (Default)

[personal profile] silverflight8 2024-12-02 02:28 am (UTC)(link)
Phew, lots to catch up on. Thanks for the code tour!
darjeeling: (STOCK | all the pretty colours)

[personal profile] darjeeling 2025-01-16 09:06 pm (UTC)(link)
Issue 3362: theme chooser widget not working correctly with communities (pull request)
Category: User experience
Patch by: [github.com profile] momijizukamori
Description: Fixed the problem with picking a theme for communities.


Yessss I was hoping this would get fixed. Thank you!