2011-01-30

fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
[personal profile] fu2011-01-30 12:49 pm

[dw-free] new feeds pulling in entries in reverse order

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

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

Refactor to create a helper function that takes the feed XML and returns a
list of ordered item from the feed. Add tests.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/LJ/SynSuck.pm
  • t/synsuck.t
Diff: 2 files changed. )
fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
[personal profile] fu2011-01-30 12:57 pm

[dw-free] new feeds pulling in entries in reverse order

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

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

Add an additional (reversed) sort by eventtime (user-provided time) when
different from logtime (system-provided). Not relying on jitemid sort,
because events may have come in in the wrong order (say an import or a
synsuck). Also add support parsing the entry time as dc:date in addition to
pubDate and some refactoring for handling things in either the nsdc or the
dc namespace. Finally, make sure that we order the feed items by datestamp
in synsuck, when applicable.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/DW/Logic/LogItems.pm
  • cgi-bin/LJ/ParseFeed.pm
  • cgi-bin/LJ/SynSuck.pm
Diff: 3 files changed. )