Skip to content
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

Add jsp manager #2

Open
wants to merge 25 commits into
base: main
Choose a base branch
from

Commits on Apr 27, 2023

  1. Add server proxy manager

    It keeps simpervisor proc objects in internal state to be able to teminate
    a process by calling terminate method on proc object.
    
    It also checks the status of active processes by running a periodic
    callback. If a process is killed outside of jsp, it removes it from
    running apps list.
    mahendrapaipuri committed Apr 27, 2023
    Configuration menu
    Copy the full SHA
    dc8d4c9 View commit details
    Browse the repository at this point in the history
  2. Add API handlers to list&del servers from manager

    Existing servers-info endpoint is moved with api sub directory to have
    a consistent end point scheme.
    mahendrapaipuri committed Apr 27, 2023
    Configuration menu
    Copy the full SHA
    8351275 View commit details
    Browse the repository at this point in the history
  3. Add proxy app to manager upon starting

    We also check if proxy is "running" and if it is not, we remove proc
    object to restart the proxy. This way proxy will be restarted only when user
    does it via lancher.
    mahendrapaipuri committed Apr 27, 2023
    Configuration menu
    Copy the full SHA
    34a0cba View commit details
    Browse the repository at this point in the history
  4. Add manager for lab extension

    This manager will be added to running sessions widget so that user can
    view and terminate running server proxy apps.
    
    Proxy app metadata will be shown when we hover over proxy app name.
    mahendrapaipuri committed Apr 27, 2023
    Configuration menu
    Copy the full SHA
    6b743c9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d9be248 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3c6cd9a View commit details
    Browse the repository at this point in the history
  7. Update package.json

    mahendrapaipuri committed Apr 27, 2023
    Configuration menu
    Copy the full SHA
    38fc180 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f540620 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3719188 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5bab31e View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2023

  1. Rework manager based on PR comments

    Do not instantiate manager in the file anymore. This will be done
    during extension loading
    
    Rework monitoring for proxy apps natively using asyncio. This will be
    added as callback to ServerApp IO loop during extension loading
    
    Manager spits out logs in debug mode when there is proxy app is
    added/removed from it.
    
    Added uni_socket to server proxy app dataclass
    
    Remove unnecessary async methods
    
    Properly handle the get_server_proxy_{app,proc} methods when server
    proxy is not found in the manager. We return a default ServerProxyApp
    tuple in this case with empty values
    mahendrapaipuri committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    d1653d1 View commit details
    Browse the repository at this point in the history
  2. Add OpenAPI spec file

    An OpenAPI spec file is added to keep track of APIs for better
    maintainability
    
    All APIs are moved into /server-proxy/ subdirectory. Seems like root /
    is used by jupyter_server and /lab/ is used by jupyterlab_server.
    Moving all APIs under /server-proxy will future incompatibilities
    
    Initialise ServersAPIHandler with manager instead of importing it
    
    Use a function to setup API handlers which can be called directly during
    extension loading
    mahendrapaipuri committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    6f30064 View commit details
    Browse the repository at this point in the history
  3. Instantiate manager during extension loading

    We add manager as a traitlet to ServerApp and add monitor as a callback
    to ServerApp IO lopp
    
    Simplify API handlers setup
    mahendrapaipuri committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    f69a67a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    97ce111 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dafd671 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    900493b View commit details
    Browse the repository at this point in the history
  7. Rework labextension based on PR comments

    Move RunningServerProxyApp to a separate file
    
    Use lab transalation capabilities for complex strings
    
    Use URLExt package to manipulate URLs
    mahendrapaipuri committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    c54b956 View commit details
    Browse the repository at this point in the history
  8. Use configurable refreshInterval for polling

    Use lumino polling class for polling server proxy apps
    
    Add schema to be able to configure refreshInterval
    mahendrapaipuri committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    4738d04 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a778a0f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    86d0ad9 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    bd966ca View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    bb68e2b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    4ffe4f6 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2023

  1. Extend Manager from BaseManager

    Avoid duplicating codebase
    mahendrapaipuri committed Sep 30, 2023
    Configuration menu
    Copy the full SHA
    f25996b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8987c54 View commit details
    Browse the repository at this point in the history