Tuesday, August 29, 2017

Change Log: 2.25.579

Release 2.25.579 pushes a refactored dashboard "World" panel that automatically refreshes itself.

The code is primarily based on the work I've been pushing this week on the new API Admin Panel, so, in a way, this is the user-facing payoff for the last two production releases. The new "World" panel not only looks better at all three CSS breakpoints, but should help the dashboard load a little more quickly.

(Current average render times on the dashboard are hovering around 0.480874010989 seconds, and I'd like to get them down to less than half of that. Signing into the legacy app now hits the API, which slows it down, so I'm trying to compensate for that.)

At any rate, work on The Watcher will resume with the next release.

Thanks again for using the Manager!


Corrections and Fixes



  1. Addressed a bizarre CSS bug that made the "World" dashboard panel appear not to be lined up correctly at all resolutions.
  2. Worked up a quick workaround for an issue in the legacy webapp that could cause tracebacks when the 'White Box & Promo" expansion content was enabled.

Application Improvements


  1. api.get_api_url() method now supports the 'strip_http' kwarg, which basically cuts the "http://" from its output
  2. The corner loader HTML element now renders in all views so I can spin it whenever.
  3. Implemented a new, auto-refreshing, AngularJS-based version of the World panel that uses the API for data. 
    1. deprecated a ton of old, really poorly-written world panel CSS from two years ago
    2. Re-implemented the world panel as pure AngularJS with in automatic, no-reload refresh of the data every 120 seconds.
    3. Added the new top innovations table to the panel
    4. deprecated the legacy html.dashboard.world() method complete
    5. enhanced the "latest settlement" feature to include the age of the settlement
    6. Deprecated the "current hunt" feature for now. I don't like it any more and I have no evidence that anyone cares.
    7. Deprecated the html_world() method from the legacy webapp's User class methods.
    8. removed API "world" info from the legacy webapp admin panel
  4. The world asset top_survivor_names now defines its own limit
  5. The world.get_top() method no longer inflicts a five result minimum if no limit is supplied.

API Enhancements

  1. The latest_kill asset now ships from world.py with strings representing the date and time the monster was killed.
  2. Cleaned up the documentation re: the /admin routes.
  3. User blocks in the API Admin Panel now represent the user's age using the utils.get_time_elapsed_since() method.
  4. Updated utils.get_time_elapsed_since() to do years and replaced the code in models.users.User.get_age() with a call to it.

No comments:

Post a Comment