Thursday, August 24, 2017

Change Log: 2.24.566

Release 2.24.566 is focused on the new Admin Panel for the API and, like the previous release, does not do much for the legacy webapp, though it lays the ground for the dashboard upgrade that I've been working on for a while.

I figure on maybe one or two more days of work on this Admin Panel, and then I should be able to get back to work on The Watcher and the legacy app improvement/API migration project.

Thanks for using the Manager!

Corrections and Fixes



  1. Fixed a bug where users who have not created any survivors would throw an API error when the get_friends() method was called.
  2. Addressed an issue in User.is_active() that caused false positives.
  3. Removed some leftover print debugging from a few world.World methods (and replaced it, where appropriate, with CLI debug hooks).
  4. (Finally!) fixed the bug that caused recent session/user counts to be way off. 
  5. Fixed an obscure bug in Models.get_campaign() that could cause the method to fail and raise an exception when normalizing legacy survivors whose campaign type was undefined (i.e. whose settlement was created in 2015, prior to expansion support).
  6. Fixed a scope issue in world.py where the refresh_asset() method was updating attributes that should only be in the refresh_all_assets() scope.

Application Improvements



    1. Refactored the top_innovations World asset to a.) work and b.) tally handles and names (for better data including legacy settlements)

    API Enhancements


    1. Moved the Admin Panel's user agent popularity contest code to panel.get_user_data() and updated the panel. 
    2. Rewrote the request_broker.py and panel.py code for retrieving user data to include recent data, as well as meta data about recent users; updated the panel to flag active users visually (i.e. with an asterisk, for now).
    3. Enhanced models.users.get_age() to be able to produce a sentence reflecting a user's age in years and days
    4. Added get_latest_activity() method to models.users.User class.
    5. The world daemon now initializes (and normalizes) dead survivors when it runs.
    6. Adjusted the presentation on the panel to be more efficient with space.
    7. "Recent User Activity" panel now displays the rules for what's active, versus what's merely recent
    8. Created utils.get_elapsed_time_since() to be the single source of datecalc within the API
    9. Implemented a Kill Board view on the new Admin Panel
    10. Added a count-up timer to the next no-reload data refresh (i.e. API pull)
    11. API route /world info now renders with the generic API meta info from utils
    12. Generic API meta info now includes instance admins.
    13. The world.py query operations for the panel have been optimized:
      1. update operations are atomic now, and the refresh_asset() method now calls two methods (initialize_asset_dict() and update_asset_dict()) to work on an individual asset
      2. the do_query() method has been updated to use the atomic asset init/update methods and dump full results to the commandline during CLI debugging
      3. world assets now support the 'limit' attribute (which simply constrains their results)
      4. the assets.world.py AssetCollection is now checked when attempting to update an asset_key, and if the key does not exist, we throw a very detailed/specific exception. The same is true of the world.World class methods: if the method corresponding to the key does not exist, we throw a detailed exception.
      5. queries that fail to run now get their own exception message that logs their specific issue (we still fail gracefully, we just do it with way higher resolution now)
      6. Cleaned up the latest_settlement output to use pretty strings, eschew timeline, etc. and generally be more suitable for presentation.
      7. Added the pretty_survivor() method for cleaning up survivor JSON and making it 'shippable' to world.
      8. The latest_fatality and latest_survivor methods have been refactored for DRYness and to include calls to the pretty_survivor() method.
    14. Added get_epithets() method to the survivors.Survivor class methods (to rapidly get a pretty string on demand)
    15. Updated Models.get_campaign() method to be more resilient.
    16. Enhanced logging in the Models.get_asset() method and made it so that regular failures and failures after the (optional) back off to a name-based lookup log different (and with more detail).
    17. Added support for -u argument to world.py to update individual warehouse items.

    No comments:

    Post a Comment