- 
                Notifications
    
You must be signed in to change notification settings  - Fork 0
 
feat(save_and_load): add import/export methods #200
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
          
     Open
      
      
            MaxNumerique
  wants to merge
  32
  commits into
  next
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
feat/save_and_load
  
      
      
   
  
    
  
  
  
 
  
      
    base: next
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
      
        
          +408
        
        
          −3
        
        
          
        
      
    
  
  
     Open
                    Changes from 23 commits
      Commits
    
    
            Show all changes
          
          
            32 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      ac85cf4
              
                feat(export_and_import_routes): add export, import route and schemas …
              
              
                MaxNumerique 875590c
              
                import route and schema
              
              
                MaxNumerique 86c0dcc
              
                Apply prepare changes
              
              
                MaxNumerique 1ffd4ef
              
                zip_path
              
              
                MaxNumerique c6ad376
              
                Merge branch 'feat/save_and_load' of https://github.com/Geode-solutio…
              
              
                MaxNumerique e90175a
              
                ask database for data entries to generate the zip file
              
              
                MaxNumerique 035802b
              
                Apply prepare changes
              
              
                MaxNumerique 3840fc3
              
                tests updated
              
              
                MaxNumerique 328f17a
              
                Merge branch 'feat/save_and_load' of https://github.com/Geode-solutio…
              
              
                MaxNumerique 9901c9a
              
                Apply prepare changes
              
              
                MaxNumerique ce99d0a
              
                test
              
              
                MaxNumerique 457f16f
              
                Merge branch 'feat/save_and_load' of https://github.com/Geode-solutio…
              
              
                MaxNumerique 38a82bf
              
                Apply prepare changes
              
              
                MaxNumerique 4240888
              
                validate_request
              
              
                MaxNumerique 8569821
              
                Merge branch 'feat/save_and_load' of https://github.com/Geode-solutio…
              
              
                MaxNumerique ef772ee
              
                fix
              
              
                MaxNumerique 14c6bf6
              
                Apply prepare changes
              
              
                MaxNumerique b2cf2e8
              
                test
              
              
                MaxNumerique 2309b2c
              
                Merge branch 'feat/save_and_load' of https://github.com/Geode-solutio…
              
              
                MaxNumerique 76aa2b0
              
                Apply prepare changes
              
              
                MaxNumerique 2266b97
              
                test
              
              
                MaxNumerique c35dd51
              
                Merge branch 'feat/save_and_load' of https://github.com/Geode-solutio…
              
              
                MaxNumerique 65bc037
              
                Apply prepare changes
              
              
                MaxNumerique 44b879d
              
                test
              
              
                MaxNumerique 9fd5023
              
                Merge branch 'feat/save_and_load' of https://github.com/Geode-solutio…
              
              
                MaxNumerique c306246
              
                removed Any
              
              
                MaxNumerique 85af818
              
                Apply prepare changes
              
              
                MaxNumerique ef26ea5
              
                generate viewables and session.
              
              
                MaxNumerique bde6708
              
                Apply prepare changes
              
              
                MaxNumerique 7afe531
              
                update tests and import_project
              
              
                MaxNumerique 38ed9d7
              
                Merge branch 'feat/save_and_load' of https://github.com/Geode-solutio…
              
              
                MaxNumerique 7d98acc
              
                Apply prepare changes
              
              
                MaxNumerique 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
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| 
          
            
          
           | 
    @@ -60,4 +60,3 @@ werkzeug==3.1.2 | |
| # flask | ||
| # flask-cors | ||
| 
     | 
||
| opengeodeweb-microservice==1.*,>=1.0.6rc1 | ||
  
    
      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
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| { | ||
| "route": "/export_project", | ||
| "methods": [ | ||
| "POST" | ||
| ], | ||
| "type": "object", | ||
| "properties": { | ||
| "snapshot": { | ||
| "type": "object" | ||
| }, | ||
| "filename": { | ||
| "type": "string", | ||
| "minLength": 1 | ||
| } | ||
| }, | ||
| "required": [ | ||
| "snapshot", | ||
| "filename" | ||
| ], | ||
| "additionalProperties": false | ||
| } | 
  
    
      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,9 @@ | ||
| from dataclasses_json import DataClassJsonMixin | ||
| from dataclasses import dataclass | ||
| from typing import Dict, Any | ||
| 
     | 
||
| 
     | 
||
| @dataclass | ||
| class ExportProject(DataClassJsonMixin): | ||
| filename: str | ||
| snapshot: Dict[str, Any] | 
  
    
      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,10 @@ | ||
| { | ||
| "route": "/import_project", | ||
| "methods": [ | ||
| "POST" | ||
| ], | ||
| "type": "object", | ||
| "properties": {}, | ||
| "required": [], | ||
| "additionalProperties": false | ||
| } | 
  
    
      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,7 @@ | ||
| from dataclasses_json import DataClassJsonMixin | ||
| from dataclasses import dataclass | ||
| 
     | 
||
| 
     | 
||
| @dataclass | ||
| class ImportProject(DataClassJsonMixin): | ||
| pass | 
  
    
      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.
        
    
  
  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.