piggymouse: (Default)
[personal profile] piggymouse

Summary

History of changes in friends & friend-of lists automatically updated on a daily basis.

Feature specification

Terminology used in this specification:

  • Friend state: F, contents of friends and friend-of lists for a specific LJ user.
  • Friend state delta: ΔF, information about differences between two friend states (added and removed users from both friends and friend-of lists).

Friend state history tracking

If the friend history tracking is enabled for currently logged on LJ user and one of the following events occurs:

  • The application has just logged on to LJ.
  • The system date has just changed.
  • "Edit Friends" dialog box is being opened.

Execute the following procedure:

  • Load the actual friend state Fcurr. Save it as the friend state for the current date Dcurr. If a friend state was already saved for Dcurr, overwrite it.
  • Find the latest date Dprev before Dcurr for which a friend state Fprev was stored.
  • If Fprev was found, calculate the friend state delta ΔFcurr = Fcurr – Fprev.
  • If Fprev was not found (i.e. this is the first day of the friend history tracking), set ΔFcurr = Fcurr – Ø, where Ø represents a friend state with empty friends and friend-of lists.
  • Save ΔFcurr as the friend state delta for Dcurr. If a friend state delta was already saved for Dcurr, overwrite it.

Friend state history reporting

If friend history data are stored for currently logged on LJ user, the application shall provide the possibility to view and save the friend history report.

It shall be possible to specify the beginning and end date for the report.

It shall be possible to save the report in HTML and XML-based formats. The XML-based format should be specified elsewhere (in a form of a DTD or an XML Schema).

(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

Profile

piggymouse: (Default)
piggymouse

April 2011

S M T W T F S
     1 2
34 56 789
10 1112 13141516
17181920212223
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 18th, 2025 03:31 am
Powered by Dreamwidth Studios