- 
                Notifications
    
You must be signed in to change notification settings  - Fork 32
 
🎨 publish port events to frontend #6396
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
          
     Merged
      
      
            GitHK
  merged 31 commits into
  ITISFoundation:master
from
GitHK:pr-osparc-port-change-notifications
  
      
      
   
  Sep 25, 2024 
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            31 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      220b7b6
              
                extracting notifications as seprate module
              
              
                 b419e64
              
                refactor internals
              
              
                 71678d6
              
                Merge remote-tracking branch 'upstream/master' into pr-osparc-port-ch…
              
              
                 d1c838e
              
                rename module
              
              
                 fc88f8d
              
                extend notifications interface
              
              
                 6bd6d15
              
                added notifications tests
              
              
                 249dda7
              
                refactor to work as expected
              
              
                 0c2153c
              
                added missing project_id to notification
              
              
                 4e22b75
              
                Merge remote-tracking branch 'upstream/master' into pr-osparc-port-ch…
              
              
                 4ed8e2a
              
                adding missing port notifier to constructor
              
              
                 d9950fa
              
                refactor broken tests
              
              
                 796e1b5
              
                Merge remote-tracking branch 'upstream/master' into pr-osparc-port-ch…
              
              
                 9973d68
              
                fixed tests
              
              
                 9f2854f
              
                using str auto enum
              
              
                 d0a7698
              
                fixed relative imports
              
              
                 c4fe846
              
                Merge remote-tracking branch 'upstream/master' into pr-osparc-port-ch…
              
              
                 525bce1
              
                refactor using function
              
              
                 bf7408a
              
                using limited_gather
              
              
                 0085f4b
              
                outputs_callback is now totally optional
              
              
                 05ed52e
              
                added tests
              
              
                 5d7d1a3
              
                refactor tests
              
              
                 cb2662c
              
                Merge remote-tracking branch 'upstream/master' into pr-osparc-port-ch…
              
              
                 4136cde
              
                fix flaky test
              
              
                 ab3ace9
              
                pylint
              
              
                 d4d5fd9
              
                Merge remote-tracking branch 'upstream/master' into pr-osparc-port-ch…
              
              
                 82b4701
              
                revert changes
              
              
                 8cb8520
              
                Merge branch 'master' into pr-osparc-port-change-notifications
              
              
                GitHK 4c32ec0
              
                restore flaky marker
              
              
                 12e72b7
              
                Merge branch 'pr-osparc-port-change-notifications' of github.com:GitH…
              
              
                 78771ae
              
                Merge branch 'master' into pr-osparc-port-change-notifications
              
              
                GitHK 886b151
              
                Merge branch 'master' into pr-osparc-port-change-notifications
              
              
                GitHK File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
        
          
  
    
      
          
            35 changes: 35 additions & 0 deletions
          
          35 
        
  packages/models-library/src/models_library/api_schemas_dynamic_sidecar/ports.py
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| from enum import auto | ||
| 
     | 
||
| from models_library.projects import ProjectID | ||
| from models_library.projects_nodes_io import NodeID | ||
| from models_library.services_types import ServicePortKey | ||
| from models_library.utils.enums import StrAutoEnum | ||
| from pydantic import BaseModel | ||
| 
     | 
||
| 
     | 
||
| class OutputStatus(StrAutoEnum): | ||
| UPLOAD_STARTED = auto() | ||
| UPLOAD_WAS_ABORTED = auto() | ||
| UPLOAD_FINISHED_SUCCESSFULLY = auto() | ||
| UPLOAD_FINISHED_WITH_ERRROR = auto() | ||
| 
     | 
||
| 
     | 
||
| class InputStatus(StrAutoEnum): | ||
| DOWNLOAD_STARTED = auto() | ||
| DOWNLOAD_WAS_ABORTED = auto() | ||
| DOWNLOAD_FINISHED_SUCCESSFULLY = auto() | ||
| DOWNLOAD_FINISHED_WITH_ERRROR = auto() | ||
| 
     | 
||
| 
     | 
||
| class _PortStatusCommon(BaseModel): | ||
| project_id: ProjectID | ||
| node_id: NodeID | ||
| port_key: ServicePortKey | ||
| 
     | 
||
| 
     | 
||
| class OutputPortStatus(_PortStatusCommon): | ||
| status: OutputStatus | ||
| 
     | 
||
| 
     | 
||
| class InputPortSatus(_PortStatusCommon): | ||
| status: InputStatus | ||
        
          
  
    
      
          
            2 changes: 2 additions & 0 deletions
          
          2 
        
  packages/models-library/src/models_library/api_schemas_dynamic_sidecar/socketio.py
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| from typing import Final | ||
| 
     | 
||
| SOCKET_IO_SERVICE_DISK_USAGE_EVENT: Final[str] = "serviceDiskUsage" | ||
| SOCKET_IO_STATE_OUTPUT_PORTS_EVENT: Final[str] = "stateOutputPorts" | ||
| SOCKET_IO_STATE_INPUT_PORTS_EVENT: Final[str] = "stateInputPorts" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.