- 
                Notifications
    
You must be signed in to change notification settings  - Fork 32
 
🎨 Improve web-api listing task manager (download logs, credits, node name) #7656
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
      
      
            sanderegg
  merged 15 commits into
  ITISFoundation:master
from
matusdrobuliak66:improve-listing-task-manager-2
  
      
      
   
  May 12, 2025 
      
    
  
     Merged
                    Changes from 7 commits
      Commits
    
    
            Show all changes
          
          
            15 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      9442bfd
              
                fix
              
              
                matusdrobuliak66 44e5a5c
              
                fix
              
              
                matusdrobuliak66 547cbcb
              
                review @sanderegg
              
              
                matusdrobuliak66 9f99c9c
              
                Merge branch 'master' into improve-listing-task-manager-2
              
              
                matusdrobuliak66 42500d9
              
                improve listing task manager
              
              
                matusdrobuliak66 29edb1b
              
                Merge branch 'master' into improve-listing-task-manager-2
              
              
                matusdrobuliak66 bb8a6c2
              
                fix:
              
              
                matusdrobuliak66 86019e4
              
                adding unit test
              
              
                matusdrobuliak66 e76f5e7
              
                improve comment
              
              
                matusdrobuliak66 7ea3e4c
              
                return back to previous
              
              
                matusdrobuliak66 cb94158
              
                Merge branch 'master' into improve-listing-task-manager-2
              
              
                matusdrobuliak66 c717a2b
              
                fix tests
              
              
                matusdrobuliak66 0bf9c95
              
                Merge branch 'master' into improve-listing-task-manager-2
              
              
                matusdrobuliak66 b724757
              
                review @sanderegg
              
              
                matusdrobuliak66 b032154
              
                Merge branch 'master' into improve-listing-task-manager-2
              
              
                matusdrobuliak66 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
  
    
      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
    
  
  
    
              
        
          
  
    
      
          
            24 changes: 24 additions & 0 deletions
          
          24 
        
  packages/models-library/src/models_library/computations.py
  
  
      
      
   
        
      
      
    
                              
      
                  matusdrobuliak66 marked this conversation as resolved.
               
          
            Show resolved
            Hide resolved
         | 
            
  
    
      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,24 @@ | ||
| from datetime import datetime | ||
| from decimal import Decimal | ||
| from typing import Any | ||
| 
     | 
||
| from pydantic import AnyUrl, BaseModel | ||
| 
     | 
||
| from .projects import ProjectID | ||
| from .projects_nodes_io import NodeID | ||
| from .projects_state import RunningState | ||
| 
     | 
||
| 
     | 
||
| class ComputationTaskWithAttributes(BaseModel): | ||
| project_uuid: ProjectID | ||
| node_id: NodeID | ||
| state: RunningState | ||
| progress: float | ||
| image: dict[str, Any] | ||
| started_at: datetime | None | ||
| ended_at: datetime | None | ||
| log_download_link: AnyUrl | None | ||
| 
     | 
||
| # Attributes added by the webserver | ||
| node_name: str | ||
| osparc_credits: Decimal | None | 
  
    
      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.