- 
                Notifications
    
You must be signed in to change notification settings  - Fork 32
 
          ♻️ Refactor: migrate more aiohttp app keys to type-safe web.AppKey (follow up)
          #8452
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
  
    ♻️ Refactor: migrate more aiohttp app keys to type-safe web.AppKey (follow up)
  
  #8452
              Conversation
aiohttp app keys to type-safe web.AppKey (follow up)
      
          Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@            Coverage Diff             @@
##           master    #8452      +/-   ##
==========================================
+ Coverage   87.18%   87.21%   +0.03%     
==========================================
  Files        1984     1483     -501     
  Lines       77284    62291   -14993     
  Branches     1333      678     -655     
==========================================
- Hits        67377    54330   -13047     
+ Misses       9508     7723    -1785     
+ Partials      399      238     -161     
 
 Continue to review full report in Codecov by Sentry. 
 🚀 New features to boost your workflow:
  | 
    
2ba05b8    to
    332b271      
    Compare
  
    …ty and type safety
…KS_CONTEXT_APPKEY for consistency
…ONTEXT_REQKEY for consistency
332b271    to
    ef92407      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
        
          
                services/web/server/src/simcore_service_webserver/long_running_tasks/plugin.py
          
            Show resolved
            Hide resolved
        
      There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
          
 | 
    



What do these changes do?
Follows up refactoring webserver's
appstate keys from strings toweb.AppKey(see #7734)Application state key refactoring:
web.AppKeyobjects in the long-running tasks module, introducingAPP_LONG_RUNNING_MANAGER_APPKEYandRQT_LONG_RUNNING_TASKS_CONTEXT_APPKEYfor safer access to manager and task context objects (_manager.py,_request.py,_server.py,__init__.py, tests, and plugins). [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]CLIENT_SOCKET_REGISTRY_APPKEYfor registry access (_constants.py,plugin.py,registry.py). [1] [2] [3] [4] [5]PROJECT_PERMALINK_FACTORY_APPKEYinstead of a string key for the permalink factory coroutine (_permalink_service.py). [1] [2] [3]APP_CLIENT_SOCKET_DECORATED_HANDLERS_APPKEYandAPP_CLIENT_SOCKET_SERVER_APPKEYfor handler and server references, replacing string keys (_utils.py). [1] [2]Related issue/s
How to test
Dev-ops
None