- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
IFC-727 calculate diff tree in proposed change pipeline #4546
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
      
      
    
  
     Merged
                    Changes from 7 commits
      Commits
    
    
            Show all changes
          
          
            9 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      48a8e9b
              
                remove test that belongs in sdk
              
              
                ajtmccarty 406bbcb
              
                calculate diff in pc pipeline
              
              
                ajtmccarty d45e576
              
                update integration test
              
              
                ajtmccarty 91760ab
              
                point to SDK commit of partner PR
              
              
                ajtmccarty 96b6afa
              
                fix unit test, generate docs
              
              
                ajtmccarty 70e8343
              
                clean up NodeDiff imports following SDK changes
              
              
                ajtmccarty 77a08ea
              
                force full import for docs generation
              
              
                ajtmccarty 0011c01
              
                update python_sdk to latest stable commit
              
              
                ajtmccarty e9b34ed
              
                try to catch EntityNotFoundError
              
              
                ajtmccarty 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
    
  
  
    
              
  
    
      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
    
  
  
    
              
        
          
  
    
      
          
            2 changes: 1 addition & 1 deletion
          
          2 
        
  backend/tests/unit/core/constraint_validators/test_determiner.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
    
  
  
    
              
  
    
      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
    
  
  
    
              
  
  Submodule python_sdk
    updated
      
        23 files
      
      
          
    | +23 −0 | CHANGELOG.md | |
| +0 −2 | infrahub_sdk/__init__.py | |
| +2 −4 | infrahub_sdk/batch.py | |
| +840 −161 | infrahub_sdk/client.py | |
| +123 −0 | infrahub_sdk/code_generator.py | |
| +30 −104 | infrahub_sdk/ctl/cli_commands.py | |
| +49 −0 | infrahub_sdk/ctl/constants.py | |
| +1 −1 | infrahub_sdk/ctl/schema.py | |
| +1 −2 | infrahub_sdk/ctl/utils.py | |
| +128 −0 | infrahub_sdk/diff.py | |
| +0 −9 | infrahub_sdk/exceptions.py | |
| +0 −21 | infrahub_sdk/node.py | |
| +54 −0 | infrahub_sdk/protocols.py | |
| +52 −16 | infrahub_sdk/protocols_base.py | |
| +37 −13 | infrahub_sdk/schema.py | |
| +38 −10 | infrahub_sdk/store.py | |
| +2 −0 | infrahub_sdk/transfer/importer/json.py | |
| +1 −1 | infrahub_sdk/uuidt.py | |
| +1 −1 | pyproject.toml | |
| +13 −10 | tests/integration/test_export_import.py | |
| +24 −4 | tests/unit/sdk/conftest.py | |
| +16 −15 | tests/unit/sdk/test_client.py | |
| +160 −0 | tests/unit/sdk/test_diff_summary.py | 
      
      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.
  
    
  
    
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.
This would only update the branch diff and not in any way give us access to the diff_summary right? I'm thinking that we first do some operations directly against the database and then as the next step we use the SDK to query for the changes (which I guess would be what we updated but also what might have been updated earlier)
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.
the
DiffTreeandDiffTreeSummarygraphql queries get their data from the same place. Runningupdate_branch_diffhere will create/update that data so that both queries can be used and will be up-to-date (for the moment, at least. other stuff that runs in the pipeline can make changes that will require another update to the diff