momijizukamori: Grey tabby cat with paws on keyboard and mouse. The text reads 'code cat is on the job', lolcats-style (CODE CAT)
Cocoa ([personal profile] momijizukamori) wrote in [site community profile] dw_dev2019-04-30 10:26 am
Entry tags:

Code Tour: 2018-09-01 to 2019-04-29

So it's been a while!


Issue 1691: Banning an OpenID user exposes their ext_?? username. (pull request)
Category: Reducing Confusion
Patch by: [github.com profile] Darael
Description: When you went to ban an OpenID user, the confirmation pop-up would use the 'ext_#####' designation they have in the backend system, instead of a human-friendly display name. This now uses the display name instead!

Issue 1913: Replace S2 layer editor with something slightly more modern (pull request)
Category: Styles, Getting the Coding Up To Plum
Patch by: [github.com profile] rshatch
Description: We had a text editor for S2 layers that was... basically unchanged from what we inherited from LJ (and at that point, was unchanged since its creation, probably). As such, it mostly worked, but was pretty basic, and none of the extra bells and whistled functioned any more. This patch replaces that text editor with a new one with shiny features such as: syntax highlighting! Hotkeys! Auto-complete! Functioning links to documentation!

Issue 2230: TT/Foundation the logout page (pull request)
Category: TT Conversion
Patch by: [github.com profile] zorkian
Description: One more step in our slow migration away from (old, badly documented) BML to (new, cleaner) Template Toolkit pages.

Issue 2249: supportdelete priv no longer exists, if it ever existed in GPL'd livejournal code. (pull request)
Category: Code Machete
Patch by: [github.com profile] Darael
Description: There was user privilege called 'supportdelete'. It did not actually do anything, and possibly did not ever do anything. This removes it from the list of privs admins can assign, to reduce confusion.

Issue 2265: Basic API + sample routes (pull request)
Category: API, Getting the Coding Up To Plum
Patch by: [github.com profile] rshatch, [personal profile] allen
Description: Among the things we inherited from LJ was the XMLRPC API interface. This was ancient, did not do a whole lot, wasn't maintained, and was largely undocumented. In short: bad. Also XMLRPC is a pain to deal with, and is increasingly unused for that reason. We now have all the backend code in place for a new, better-documented, easier-to-use JSON interface, as well as API keys for it and a few basic endpoints as examples. Once we're sure we haven't missed any major issues with this, we can start adding more complicated endpoints, but it's best to make sure the foundation is rock-solid first. This is actually a TON of backend work to do all the setup, and means that the user-facing bits (endpoints) will be a lot faster to create.

Issue 2278: Global backend changes to allow converting /customize to TT (pull request)
Category: TT Conversion
Patch by: [github.com profile] rshatch
Description: While we had fancy TT elements for most form components, we were missing one for the color picker used in /customize. Also, it turned out those pages needed a few tweaks on the backend, like the ability to set form elements to nothing, and to be able to next template blocks inside themselves.

Issue 2283: Customize/advanced to tt (pull request)
Category: TT Conversion
Patch by: [github.com profile] rshatch
Description: Beginning the long messy path to total TT dominance of /customize by starting with the /advanced pages (which, ironically, were less complicated code to change)

Issue 2356: remove Yahoo Messenger from user profiles (pull request)
Issue 2376: more "Other Sites" upkeep: remove Delicious (pull request)
Category: Profile, Dead Site Graveyard
Patch by: [github.com profile] rshatch
Description: Some services have vanished since we last updated our profile pages, and it doesn't make sense to keep listing the ones that don't work any more. These fixes remove Delicious and Yahoo Messanger.

Issue 2358: add discord to profile #2358 (pull request)
Category: Profile, Getting the Coding Up To Plum
Patch by: [github.com profile] srukle
Description: ...And some new sites and services have become popular in their place! Now you can put your Discord username in your profile and have it show up nicely under 'Other Sites'.

Issue 2377: whitelist embeds from streamable.com
Issue 2366: add pastebin.com to embed whitelist
Issue 2397: add gimletmedia.com to embed whitelist
Issue 2400: add random.org to embeds whitelist
Issue 2403: whitelist embed new spotify (pull request)
Issue 2402: whitelist embed from strava
Category: Embedding
Patch by: [github.com profile] rshatch
Description: People like to show content from other sites in their journals! Now the list of sites you can put stuff from into Dreamwidth pages is longer. And Spotify works again!

Issue 2368: Attempt to make Travis run compiler (pull request)
Category: Getting the Coding Up To Plum
Patch by: [github.com profile] zorkian
Description: Adds an integration to TravisCI, so that when people submit pull requests we can run very basic tests to make sure it won't make absolutely everything fall over if we use that code.

Issue 2372: Convert /latest to TT and spruce it up a little. (pull request)
Category: TT Conversion
Patch by: [github.com profile] rshatch
Description: So in 2012, I told Mark that if he added Markdown support, I would clean up /latest for him. He added Markdown support that day, and I.... have finally fulfilled my half of the bargain. /latest is now using TT, and has been polished up a little.

Issue 2373: Move stc include to the controller so it's loaded for cached version.… (pull request)
Category: TT Conversion
Patch by: [github.com profile] rshatch
Description: It turned out that including CSS in the template of /latest didn't work when it was cached (and caching is good, it makes things faster!), and it had to be in the controller for that page instead. This makes that move.

Issue 2378: properly anchor header navlinks in Tectonic (pull request)
Category: Styles
Patch by: [github.com profile] rshatch
Description: If you used header navlinks, and made your header really tall in Tectonic, the navlinks would end up kind of.... floating in the middle. Whoops. Now they stay where they're supposed to be.

Issue 2381: remove fastclick.js (pull request)
Category: Code Machete, Getting the Coding Up To Plum
Patch by: [github.com profile] rshatch
Description: Fastclick.js was originally a hacky workaround for an issue with very early versions of Android - on pages not flagged a special way for mobile use, it would delay sending the message that an item had been clicked on for half a second on touchscreens (which is long enough to be noticable). Fastclick.js got around this by making a pretend mouse click in the same spot as the touch click. Which.... worked, mostly. Except Android got its act together, and this library was abandoned, and it turned out it was causing all sorts of bizarre behavior on mobile devices. We had it because it came bundled with Foundation, but nothing else relies on it, so away it went!

Issue 2386: Update year in site footer
Category: Getting the Coding Up To Plum
Patch by: [github.com profile] rahaeli
Description: It's 2019, yeaaaaah! Except our site still said it was 2018 in the copyright notice in the footer. This is now fixed (and was made live on production already)

Issue 2390: Librarian's Dream style doesn't use header image properly (pull request)
Category: Styles
Patch by: [github.com profile] rshatch
Description: Librarian's Dream has the option to use a header image, but... turned out it was getting covered up by blocks of header color because of the way it was written. Now you can add a header image without having to do a bunch of faffing around with CSS to make it actually show up.

Issue 2391: Don't strip meta tag when 'use layout stylesheet' is unchecked (pull request)
Category: Styles, Getting the Coding Up To Plum
Patch by: [github.com profile] rshatch
Description: It turns out we were removing the meta tags that make pages display nicely on small screens when people used custom CSS instead of the layout stylesheets. This was under the assumption that custom CSS layouts were probably not optimized to behave correctly on small screens, which may have been true at one point, but it's now 2019, and people are writing custom layouts with small screens in mind. And there was no way to add the meta tag back in without either including all the layout stylesheets (extra stuff to load) or manually editing S2 layers (finicky and basically a huge pain). Now all layouts include the meta viewport tags, unless you have explicity disabled it (Account Settings > Display > Mobile View > check 'Turn off mobile view for this device')

Issue 2396: Tagnav highlighting not always working (pull request)
Category: Reducing Confusion
Patch by: [github.com profile] alierak
Description: We have a feature where you can navigate entries within a tag. It's supposed to keep the tag you're browsing by highlighted, for easier navigation, but this wasn't actually working when the tag had more than one space, or special characters. Now it does!

Issue 2399: Add classes to allow easy targetting of nav module list elements (pull request)
Category: Styles
Patch by: [github.com profile] rshatch
Description: One of the most common questions asked on [profile] styles_system is 'how do I hide [x] nav menu item?'. Before, there wasn't a particularly clean way to do it that wouldn't either leave weird extra spaces, or be prone to breaking. Now each of the menu items has their own CSS class so they can be targetted and hidden easily.

Issue 2401: typo in faq #175
Category: Docs
Patch by: [github.com profile] kaberett
Description: Typos happen to the best of us, but now FAQ #175 will have one fewer!

Issue 2412: checkconfig.pl: don't re-invent version comparison (pull request)
Category: Reducing Confusion
Patch by: [github.com profile] nfagerlund
Description: Our script that checks that required dependencies are installed and up to date had some homegrown logic in it that was causing it to report that version 1.5 of something was not up to date with the requirement of version 1.45 (because 5 is less than 45), despite it being a higher version (because in the Perl world, 1.5 is the same as 1.50). We probably needed the homegrown version when the code was originally written fourteen years ago, but Perl now has a nice way to get version numbers for comparison that actually correctly reports 1.5 as being newer than 1.45.


28 total issues resolved
Contributors: [github.com profile] Darael, [personal profile] allen, [github.com profile] alierak, [github.com profile] kaberett, [github.com profile] nfagerlund, [github.com profile] rahaeli, [github.com profile] rshatch, [github.com profile] srukle, [github.com profile] wahiaronkwas, [github.com profile] zorkian - welcome back to a few old faces, and a special shout-out to [github.com profile] nfagerlund for their first contribution!
brainwane: My smiling face, including a small gold bindi (Default)

API and CI!!!!

[personal profile] brainwane 2019-04-30 03:13 pm (UTC)(link)
Thank y'all as always! And in particular I am excited to read:

We now have all the backend code in place for a new, better-documented, easier-to-use JSON interface, as well as API keys for it and a few basic endpoints as examples.

Adds an integration to TravisCI, so that when people submit pull requests we can run very basic tests to make sure it won't make absolutely everything fall over if we use that code.

AW YEAH! Rock!

Re: API and CI!!!!

[personal profile] green_knight - 2019-05-02 06:14 (UTC) - Expand

(no subject)

[personal profile] green_knight - 2019-05-02 12:57 (UTC) - Expand

(no subject)

[personal profile] bcholmes - 2019-06-29 22:27 (UTC) - Expand

(no subject)

[personal profile] bcholmes - 2019-06-29 22:37 (UTC) - Expand

(no subject)

[personal profile] bcholmes - 2019-06-30 10:56 (UTC) - Expand

(no subject)

[personal profile] bcholmes - 2019-07-01 17:00 (UTC) - Expand

(no subject)

[personal profile] bcholmes - 2019-07-01 17:23 (UTC) - Expand
20_00: (Default)

[personal profile] 20_00 2019-04-30 03:27 pm (UTC)(link)
Issue 2265!

Sorry, I did not understand.
This means that Semagic will stop working ??! If so, very bad (

(no subject)

[personal profile] 20_00 - 2019-04-30 15:36 (UTC) - Expand

(no subject)

[personal profile] sweetmeow - 2019-04-30 20:38 (UTC) - Expand
cesy: "Cesy" - An old-fashioned quill and ink (Default)

[personal profile] cesy 2019-04-30 04:20 pm (UTC)(link)
I am excited about the API and the S2 layer editor and the TT-ification and general cleanup.
azurelunatic: Vivid pink Alaskan wild rose. (Default)

[personal profile] azurelunatic 2019-04-30 07:27 pm (UTC)(link)
Whee!
roadrunnertwice: DTWOF's Lois in drag. Dialogue: "Dude, just rub a little Castrol 30 weight into it. Works for me." (Castrol (Lois))

[personal profile] roadrunnertwice 2019-04-30 08:52 pm (UTC)(link)
sweeeeet

In retrospect I guess the title of that PR should have been "don't pre-invent version comparison," lmao

(no subject)

[personal profile] roadrunnertwice - 2019-05-02 06:52 (UTC) - Expand
mdlbear: blue fractal bear with text "since 2002" (Default)

[personal profile] mdlbear 2019-04-30 10:22 pm (UTC)(link)
YAY! Looking forward to playing with the new API.
arethinn: glowing green spiral (Default)

[personal profile] arethinn 2019-04-30 10:22 pm (UTC)(link)
Description: People like to show content from other sites in their journals! Now the list of sites you can put stuff from into Dreamwidth pages is longer. And Spotify works again!

Do I need to be using the standard (non-beta) Create Entries page to see such embed options?
alyndra: (Default)

[personal profile] alyndra 2019-04-30 10:44 pm (UTC)(link)
You just need to copy-paste the html for embedding into the entry space, it shouldn't matter which page you're using!

(no subject)

[personal profile] arethinn - 2019-05-01 00:48 (UTC) - Expand
musyc: Dreamsheep with user name and "Styles" as caption. (Other: Dreamsheep styles Musyc)

[personal profile] musyc 2019-05-01 02:35 am (UTC)(link)
Issue 1913: Replace S2 layer editor with something slightly more modern

Ooooh? OOH. Can't wait to poke at this!

[personal profile] jazzyjj 2019-05-01 03:07 am (UTC)(link)
Just read through this latest code tour, and am excited to try out the enhancements once they go live. I'm a bit confused though about what you mean by S2. Does this mean that the beta "Create Entry" page is now coming out of beta? I've been using that for awhile now because it is just slightly more accessible with my 2 screen readers than the original default editor. Not by much though. But anyways, thanks again for all the time and effort that has gone into Dreamwidth! Very much appreciated.
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2019-05-01 03:32 am (UTC)(link)
S2 is the journal customization programming language that runs under the hood -- some people like to get really detailed in their customization by writing new styles rather than using the site styles and just tweaking them a bit. You probably will never have to worry about it!

(no subject)

[personal profile] kareila - 2019-05-01 03:35 (UTC) - Expand
alexseanchai: Katsuki Yuuri wearing a blue jacket and his glasses and holding a poodle, in front of the asexual pride flag with a rainbow heart inset. (Default)

[personal profile] alexseanchai 2019-05-01 03:37 am (UTC)(link)
discord! yay!

nice usericons
alexseanchai: Katsuki Yuuri wearing a blue jacket and his glasses and holding a poodle, in front of the asexual pride flag with a rainbow heart inset. (Default)

[personal profile] alexseanchai 2019-05-01 03:40 am (UTC)(link)
my profile now says my discord is AlexSeanchai%235912 and I def told the form AlexSeanchai#5912

...this probably goes in dw_maintenance?
Edited 2019-05-01 03:41 (UTC)

(no subject)

[personal profile] beatrice_otter - 2019-05-01 05:57 (UTC) - Expand

(no subject)

[personal profile] alexseanchai - 2019-05-01 07:04 (UTC) - Expand

(no subject)

[personal profile] delight - 2019-05-01 14:30 (UTC) - Expand
lxe: (Default)

[personal profile] lxe 2019-05-01 03:38 am (UTC)(link)
I am feeling a little bit uneasy about removing old messenger credentials. While unusable for direct messaging, they might still be useful for reconnecting with old friends etc. I understand that it might sound like deadnaming, but - if anyone would like to remove their profile element, they would; and if they'd like to retain one, it shouldn't require extra effort.

On the third hand, I fully admit that I have no standing here; my published contacts are up to date (or, more accurately, were moments ago). Just nitpicking.
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2019-05-01 03:41 am (UTC)(link)
We remove old/defunct sites because the list is really long already and people don't deal well with long lists of inputs -- every text box you add, it's one more text box you need to scan through to find the one you want. It's not about the visual clutter on the profile page that people see when they look at their profile, it's about the clutter on the management page when someone is trying to edit their profile!
silveradept: A kodama with a trombone. The trombone is playing music, even though it is held in a rest position (Default)

[personal profile] silveradept 2019-05-01 03:54 am (UTC)(link)
These look like very useful things to people who know what to do with them.
cpthorn: (Default)

[personal profile] cpthorn 2019-05-01 04:51 am (UTC)(link)
Thank you! Everything works great so far. Hope the new Create Entries page will be released soon, it's still in Beta, but I've been using it on a permanent basis for a long time. The only thing I'm missing is the ability to quickly insert <cut text="..." and <img src="..." tags from the panel. Also the ability to search for mobile-friendly styles would be very useful.
Edited 2019-05-01 04:51 (UTC)
azurelunatic: Vivid pink Alaskan wild rose. (Default)

[personal profile] azurelunatic 2019-05-01 05:05 am (UTC)(link)
The text on my profile page is now in exciting different sizes. I draw attention particularly to AO3 & Discord in the other services bit.
hitchhiker: image of "don't panic" towel with a rocketship and a 42 (Default)

[personal profile] hitchhiker 2019-05-01 05:07 am (UTC)(link)
ooh, awesome! really looking forward to seeing where the api cleanup goes.
saga: (Default)

[personal profile] saga 2019-05-01 05:44 am (UTC)(link)
Hi Team! Thanks for the hard work and the additional icon slots IT'S NICE. I also like how viewport meta tag is also gonna be usable in custom.

I use the Tectonic layout for one of my accounts and after the code push, it's pushed everything up and the headers now float all over the navigation strip. I also use Firefox. Is there a setting I am missing? Thanks!

(no subject)

[personal profile] saga - 2019-05-01 13:36 (UTC) - Expand

(no subject)

[personal profile] saga - 2019-05-01 15:40 (UTC) - Expand
syntheid: Anadh with a canyon wren and a cup of tea (wren(ish))

[personal profile] syntheid 2019-05-01 06:14 pm (UTC)(link)
Oh man this is just full of good news. New api backend! TravisCI! S2 editor update!
sylvaine: Dark-haired person with black eyes & white pupils. ([gen:text] coding)

[personal profile] sylvaine 2019-05-02 08:32 am (UTC)(link)
Hooray, thank you everyone! \o/