2012-02-14

fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
[personal profile] fu2012-02-14 01:50 pm

[dw-free] optimize viewing entries with large # of comments

[commit: http://hg.dwscoalition.org/dw-free/rev/5be268e0a765]

http://bugs.dwscoalition.org/show_bug.cgi?id=4315

Tweak test for new expected values (these extra parameters still cause an
error, just now a different one)

Patch by [personal profile] fu.

Files modified:
  • t/comment.t
Diff: 1 file changed. )
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
[personal profile] fu2012-02-14 01:54 pm

[dw-free] optimize viewing entries with large # of comments

[commit: http://hg.dwscoalition.org/dw-free/rev/6121fc84a811]

http://bugs.dwscoalition.org/show_bug.cgi?id=4315

When we set _loaded_text back to false, make sure we also add this comment
back to the list of unloaded text singletons (we don't appear to go down
this path for anything user-facing at the moment, as we always set both
when editing comments but better safe than sorry)

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/LJ/Comment.pm
Diff: 1 file changed. )
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
[personal profile] fu2012-02-14 02:53 pm

[dw-free] optimize viewing entries with large # of comments

[commit: http://hg.dwscoalition.org/dw-free/rev/f18a58c7d31f]

http://bugs.dwscoalition.org/show_bug.cgi?id=4315

Efficiency tweaks! Quick summary:

* now only load the information on the comments we need

* make sure we don't end up looking through our hashes over and over again
trying to find unloaded singletons that were actually already loaded.

Implementation Details:
* creates a new sub "preload_props" which takes a list of comments to preload
properties for, so we can load the info for only those comments that we want
to display, rather than trying to preload props for (effectively) every
comment on the entry

* changes the lists of unloaded items into hashes, to make it easy to mark
as loaded. Note: we have this additional data structure so that we don't
need to iterate over all comment singletons in order to find those that
haven't been loaded yet

* make sure we remove from the unloaded list when we absorb_row. Important
because in LJ::Talk::get_talk_data, we create a comment singleton and call
absorb_row for *every* comment in the entry (but have it in the unloaded
data structure, so we iterate over it every time we call preload_rows -- and
we call that a lot)
* clears out the unloaded items hashes when we reset_singletons to avoid a
potential memory leak

Patch by [personal profile] allen.

Files modified:
  • cgi-bin/LJ/Comment.pm
  • cgi-bin/LJ/Talk.pm
Diff: 2 files changed. )
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
[personal profile] fu2012-02-14 05:41 pm

[dw-free] Cleanup tables on site-styled /icons

[commit: http://hg.dwscoalition.org/dw-free/rev/f24d2e4438a9]

http://bugs.dwscoalition.org/show_bug.cgi?id=4312

Use CSS instead of tables to align and space out /icons.

Patch by [personal profile] momijizukamori.

Files modified:
  • bin/upgrading/s2layers/siteviews/layout.s2
  • htdocs/stc/allpics.css
Diff: 2 files changed. )
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
[personal profile] fu2012-02-14 05:45 pm

[dw-free] Styles: refactor the CSS styling of the navlinks module to remove the absolute positioning

[commit: http://hg.dwscoalition.org/dw-free/rev/dc71eb43ca95]

http://bugs.dwscoalition.org/show_bug.cgi?id=3078

Remove absolute positioning in Modular. Remove obsolete browser-specific
border radius properties and adjust module header for Starry Night theme.

Patch by [personal profile] ninetydegrees.

Files modified:
  • bin/upgrading/s2layers/modular/layout.s2
  • bin/upgrading/s2layers/modular/themes.s2
Diff: 2 files changed. )
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
[personal profile] fu2012-02-14 07:28 pm

[dw-free] CSS Structure: add .inner to .header in entries and comments

[commit: http://hg.dwscoalition.org/dw-free/rev/591839082b56]

http://bugs.dwscoalition.org/show_bug.cgi?id=4219

Add .inner divs to .header divs for consistency.

Patch by [personal profile] laitaine.

Files modified:
  • bin/upgrading/s2layers/core2.s2
  • bin/upgrading/s2layers/refriedtablet/layout.s2
Diff: 2 files changed. )
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
[personal profile] fu2012-02-14 10:01 pm

[dw-free] New Style: Marginless (+3 color themes)

[commit: http://hg.dwscoalition.org/dw-free/rev/40433367c052]

http://bugs.dwscoalition.org/show_bug.cgi?id=4299

Remove extra copies of files.

Patch by [personal profile] fu.

Files modified:
  • LJ/S2Theme/marginless.pm
  • upgrading/s2layers/marginless/layout.s2
  • upgrading/s2layers/marginless/themes.s2
Diff: 3 files changed. )