Results 1 to 2 of 2

Thread: SRL Stats Details & Source

  1. #1
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,691
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default SRL Stats Details & Source

    This page will introduce a few terms/concepts of SRL Stats as well as give an overview of changes to SRL-Stats.

    SRL Stats Users

    Each user can own multiple scripts, can log in to manage his or her scripts and can commit to all the known (registered) scripts. A user also has a SHA256-hashed password; optionally an email and finally, an access level called admin_level.

    SRL Stats Variables

    The current system variables can be seen here: http://stats.villavu.com/static/vars.txt
    If you want to suggest a variable, please post here: http://villavu.com/forum/showthread.php?t=61070
    Variables are shared amongst scripts, so in a way they are ``global''.
    Random Events are also Variables.

    SRL Stats Scripts

    A script is owned by a user, and every user in the system can commit to a script. The script owner can define what variables can be committed to the script. (An essence miner script doesn't want to have people add coal to the statistics)
    Scripts can be created by any user; only the owner can allow variables to a script. (You cannot remove previously allowed variables at the moment, so be careful!)

    SRL Stats "Commits"

    A commit is a data sent from a single user to a single script, at a specific moment. It contains information like how many minutes the user has run the script since the previous commit (or script start), specific resources/variables that have been gathered/executed and random events that have been solved.

    Source Code
    https://github.com/MerlijnWajer/SRL-Stats

    Most of the source code is documented, so I'll not explain it here now. (Maybe I'll do it more briefly elsewhere; also see http://villavu.com/forum/showthread.php?t=61094)


    History till beta-release:
    Code:
    Merlijn Wajer (57):
          SRL Stats classes+cli interface
          Add fcgi runnable
          Change to PSQL database.
          classes.py: Clean up and add documentation.
          classes.py: Fix repr() return tag-like objects.
          Stats.py: Template example.
          classes.py: Add variables per script.
          stats.py: Changes to main interface.
          Templates: Add templates.
          Query Tools: Add base for users.
          Stats: User page kind of works.
          License: Set license to AGPL.
          Stats: More features
          Stats: Add graph support + various improvements.
          Stats: More features; bugfixes.
          Stats: Add more features (commit pages) + cleanups
          Stats: Fix for non existant commit.
          Templates: Internal links
          Stats: Return 404 on unknown user or script.
          Tools: Add Commit-Generator + Update TODO
          Templates: Fix scripts template. (Wrong URL)
          Minor changes.
          Templates: Nicer time rendering
          Stats: Skeleton for login functionality.
          Stats: Working login & logout.
          Stats: Add recent commits.
          Update TODO.
          Stats: Cleanup + Start of commit API.
          Stats: Small compliance fix.
          Add Stats API RFC.
          Stats: Working commit api.
          Stats: Sanity checks for POST data in /api/commit.
          Stats: Fix missing keyword.
          Stats: Check for 'password' and not 'pass'
          Stats API: Fix casing of POST data.
          Stats: Fix another casing issue.
          Stats: Force time > 0
          Query: commit() in add()
          Stats: Add VariableTool.
          Stats: Add VariableTool; update TODO.
          Stats: Expose some more features.
          Stats: Add failsafe and clean up templates.
          Graphs: Add normalise()
          Stats: Add missing templates.
          Templates: Obey base url.
          Don't import all the variables from sql.
          Stats: Add logging support.
          Stats: Add initial script managing support.
          README: Initial version.
          WebTool:    Fix crash when POST data was invalid.
          Rules:  Fix script manage regex.
          Stats:  Add basic script management.
          Stats:  Add Create Script feature.
          Stats:  Filter all data.
          TODO:   Remove filter user/pass.
          Stats:  Add User Registration.
          TODO: Small additions.
    History since beta-release till release:
    Code:
    Merlijn Wajer (31):
          Stats: Fix bug in script page.
          Stats: Fix error in user page.
          Stats: Add API to get raw data.
          Templates: Remove useless if in (user,script).html
          API: Add /api/commit/last
          Stats: Add /variable/all pages.
          TODO: Updated.
          API: Now output JSON using simplejson.
          README: Update.
          READ: More updates.
          Stats: Add pretty 404.
          Stats: Add 404 template.
          README: Fix typo.
          Stats: Fix typo.
          Templates: Fix 404 template.
          Templates: Add credits for template designer.
          Stats: Add page for commits by user to script.
          Stats: Add more advanced statistics.
          Stats: Forgot to add stats.py
          Stats: Fix a couple of bugs.
          Stats: /api/ now exposes more data.
          Templates: Expose new features.
          Templates: Major template overhaul.
          Stats: Fix inconvenience in ScriptTool.info()
          Stats: Add password hashing + email functionality.
          Stats: Disable logging.
          TODO: Updated.
          Stats: Fix a bug + small cleanup.
          Tools: Add some admin tools.
          Tools: Add FillDB; script to set up a test db.
          Template: Fix variable.html
    History since release-1.0 till release-1.1:

    Code:
    Merlijn Wajer (9):
          Tools: Add --list to variable tool.
          Templates: Fix bug in managescript.
          Stats: Fix bug in commit api.
          Stats: Allow more characters, fix several bugs.
          Stats: Allow more characters in script names.
          Stats: Add initial variable management
          Templates: Fix HTML issue.
          Stats: Add Variable creation & fix security issues.
          Stats: Complete variable management.
    History from release-1.1 till release-1.2:

    Code:
    Merlijn Wajer (14):
          Stats: Fix issue in manage variables template.
          Stats: Another oops.
          Stats: Add some comments.
          Stats: Users,Scripts,Variables now visible!
          Stats: Update tools.
          Stats: Fixes for recent changes.
          Stats: Small other bug.
          TODO: Updated.
          Stats: Order by ID as well; in top() functions.
          Query: Fix bug; I'm an idiot.
          Query: Fix deprecation warning for order_by().
          Query: Use proper aliases instead of hacks.
          Stats: Initial Unicode support.
          SQL: Add a few comments.
    History from release-1.2 till release.1-3:

    Code:
    $ git shortlog release-1.2..release-1.3 --no-merges | cat
    Merlijn Wajer (54):
          Query: Work around mySQL bug.
          Query: Fix more MySQL bugs.
          Query: Fix MySQL bug part three.
          Query: More mySQL madness.
          README: Fix typo.
          Query: Add MySQL workaround for new user_script.
          Stats: Fix a couple of bugs.
          Stats: Add a lot of documentation.
          Documentation: Add sphinx documentation.
          Stats: More documentation.
          Stats: Add exception handling when committing.
          Templates: Add owner of script.
          Stats: Less strict on empty variables.
          Templates: Show commit date on scriptcommits.
          Stats: Add more logging.
          SQL: Small cleanups.
          Stats: Small changes.
          Stats:  Update TODO. Start session switch.
          Stats:	Remove unused spaces.
          Stats:  New session alternative should now work.
          Stats:  Remove a few prints.
          Stats/commit.html:  Add link to commit filter.
          Stats/commit.html:  Remove slash.
          Stats/commit.html:  Totalle tested that...
          Stats:  Fix variable/all.
          Tools:  Updated addvariable to use new session.
          Minor change to the TODO file.
          Stats:  Update URL list.
          Stats:  Add initial graph support.
          Stats:  Add failsafe.
          Stats:  Fix import dependency.
          Stats:  Fix constant month.
          Stats:  Add more graphs.
          Stats:  Remove pylab; use matplotlib main API.
          Stats:  ``Simplify'' graph code.
          Stats:  Fix bug with MySQL Database.
          Stats: Add extra error handling.
          Stats: Fix bug when post data is None.
          Stats: Remove a print.
          Stats: Fix import.
          Stats: Fix issue in register_user. Stupid mistake.
          Stats: Experimental support for variable ID's.
          Classes: Increase variable name length.
          Stats: Change variable length.
          Stats: Show URL to user page on register.
          Stats: Loginform redirects to user page.
          Stats: Add personal page.
          Stats: Add more information to personalised page.
          Stats: Fix desc usage.
          Stats: Add additional text.
          Stats: Addtional template fixes.
          Stats: Fix loginform redirect.
          Stats: Fix query.
          Stats: Update TODO.

    History from release-1.3 till release.1-4:
    Code:
    $ git shortlog release-1.3..release-1.4|cat
    Merlijn Wajer (32):
          Stats: Fix bug.
          Stats: Fix manage scripts bug.
          Classes: Cleanups
          Stats: Add initial ranking system.
          StatsL Snall fix for ranks.
          Stats: Ranking fix.
          Stats: Ranking, first reset time; then update ranks.
          TODO: Updated.
          Update TODO
          Stats: Fix title for graphs.
          Stats: Initial cache work. Doesn't do anything yet.
          Update TODO.
          Stats: Added additional references for cache.
          Stats: Fix cache log.
          Stats: Working cache parts.
          Stats: Fix cache table filling.
          Stats: Add robots.txt support.
          Stats: Fix robots rule.
          Stats: More cache.
          Stats: Even more cache work.
          Stats: Fix bug in ScriptTool.info.
          Query: Fix bug introduced by cache.
          Tests: Initial structure.
          Stats: Finished planned caching.
          Stats: Small TODO update.
          Stats: Show variables on user page.
          Stats: First attempt at fixing my last commit.
          Stats: Another fix.
          Stats: Add traceback module.
          Stats: Fix bug.
          Stats: Fix bug in query.
          Stats: Another query fix.
    Release 1.4 till 1.4.3:
    Code:
    $ git shortlog release-1.4..release-1.4.3|cat
    Merlijn Wajer (23):
          Stats: Fix bug.
          Stats: Add HTTPS compatiblity.
          Stats: Variable checking is more strict now.
          Stats: Increase range for id's.
          Rules: Fix documentation/TODO's.
          Change sql.py to play nice with the documentation.
          Stats: Fix error plus more graphs.
          Rules quickfix.
          Stats: Thinking too fast, forgetting stuff.
          Stats: Testing on production environments.
          Stats: I should totally do this in a branch..
          Stats: Revert some of the previous work for now.
          TODO: Updated.
          Stats: Forgot at )....
          Loginform: Remove broken form tag.
          Stats: Add variables to user API.
          Stats: Add support for script variables in API.
          Revert some changes.
          Cleanups.
          Stats: Add user+script API.
          Stats: Fix attribute error.
          Query: Fix time and commit amount.
          Fix query.
    Last edited by Wizzup?; 08-19-2011 at 12:11 PM.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  2. #2
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,691
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Release 1.4.3: Updated variable list and shortlogs.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •