- 
                Notifications
    
You must be signed in to change notification settings  - Fork 35
 
feat(cli): support draft number and revision in TBRN #525
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
feat(cli): support draft number and revision in TBRN #525
Conversation
          Pull Request Test Coverage Report for Build 835617688Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes. 
 Details
 
 
 
 💛 - Coveralls | 
    
        
          
                tensorbay/utility/tbrn.py
              
                Outdated
          
        
      | 'TensorBay Resource Name should add dataset name "tb:<dataset name>"' | ||
| ) | ||
| 
               | 
          ||
| is_draft = TBRN._DRAFT_SEPARATOR in dataset_name | 
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.
branch and tag may contain #
5763cb8    to
    b2cdd6c      
    Compare
  
            
          
                tensorbay/utility/tbrn.py
              
                Outdated
          
        
      | return self._type | ||
| 
               | 
          ||
| @property | ||
| def is_draft(self) -> int: | 
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.
return int?
| else: | ||
| names[TBRN._FRAME_INDEX] = "" | ||
| if self.is_draft: | ||
| names[1] = f"{names[1]}{TBRN._DRAFT_SEPARATOR}{self.draft_number}" | 
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.
should not change names[1]
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.
names is a local variable, can be changed.
        
          
                tensorbay/utility/tbrn.py
              
                Outdated
          
        
      | names[TBRN._FRAME_INDEX] = "" | ||
| if self.is_draft: | ||
| names[1] = f"{names[1]}{TBRN._DRAFT_SEPARATOR}{self.draft_number}" | ||
| else: | 
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.
elif?
| else: | ||
| names[TBRN._FRAME_INDEX] = "" | ||
| if self.is_draft: | ||
| names[1] = f"{names[1]}{TBRN._DRAFT_SEPARATOR}{self.draft_number}" | 
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.
names is a local variable, can be changed.
b2cdd6c    to
    dd03dd7      
    Compare
  
    ebaa6db    to
    b583651      
    Compare
  
    2e6d4fc    to
    913aa1f      
    Compare
  
    | remote_path: Object path of the file. | ||
| tbrn: Full TBRN string. | ||
| draft_number: The draft number (if the status is draft). | ||
| revision: The commit revision (if the status is commit). | 
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.
status is not draft
commit revision -> revision
913aa1f    to
    b4a6f09      
    Compare
  
    b4a6f09    to
    e6ce906      
    Compare
  
    
No description provided.