- 
                Notifications
    
You must be signed in to change notification settings  - Fork 32
 
♻️ web-server: preparation of trash plugin ⚠️ #7018
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 61 commits
      Commits
    
    
            Show all changes
          
          
            85 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      fe44cfb
              
                trash plugin
              
              
                pcrespov 0ec86ee
              
                common models
              
              
                pcrespov 069b997
              
                create settings
              
              
                pcrespov df61e6a
              
                trash settings
              
              
                pcrespov 261ceee
              
                renames trash settings
              
              
                pcrespov b4f9d67
              
                fixes test_activity deps
              
              
                pcrespov c3eac3b
              
                fixe env devel
              
              
                pcrespov eab8b6f
              
                static
              
              
                pcrespov fc434bf
              
                fixes app_environment in tags
              
              
                pcrespov 66bc63b
              
                fixes app_environment in gc
              
              
                pcrespov 5cb9187
              
                rm app_cfg
              
              
                pcrespov 8378ef5
              
                rm cfg from meta_modeling
              
              
                pcrespov 026ffb5
              
                cleanup
              
              
                pcrespov 04e537f
              
                enables trash plugin
              
              
                pcrespov 2c4eb37
              
                common.models
              
              
                pcrespov ec92781
              
                env
              
              
                pcrespov 76ee8a6
              
                test_activity
              
              
                pcrespov cab674f
              
                rm app_cfg and monkeypatch_setenv_from_app_config
              
              
                pcrespov 3f5ba17
              
                deprecate tests
              
              
                pcrespov 474ec43
              
                deprecate tests
              
              
                pcrespov 37e1d19
              
                fixes
              
              
                pcrespov 1cbf4dc
              
                rm unused app
              
              
                pcrespov 842eee3
              
                fix static
              
              
                pcrespov b729c22
              
                ports
              
              
                pcrespov bee1a67
              
                fixes test
              
              
                pcrespov 2efe9a1
              
                ruffed
              
              
                pcrespov 7d92715
              
                minor
              
              
                pcrespov d9af2e2
              
                fixes imports
              
              
                pcrespov e1712c1
              
                @mrnicegyu11 review: wrong env
              
              
                pcrespov 79c9e33
              
                @GitHK review: strict argument
              
              
                pcrespov 2e910f2
              
                Merge branch 'master' into mai/rm-app_config-web-tests
              
              
                pcrespov 9c1752f
              
                Merge branch 'mai/rm-app_config-web-tests' into is468/empty-trash
              
              
                pcrespov f6f3ed5
              
                rm unused
              
              
                pcrespov c16de67
              
                Merge branch 'mai/rm-app_config-web-tests' into is468/empty-trash
              
              
                pcrespov 2244584
              
                rename layers in projects
              
              
                pcrespov e79213a
              
                rename layers in folders
              
              
                pcrespov 26dcf1f
              
                rename layers in workspaces
              
              
                pcrespov 7b5a55f
              
                unused
              
              
                pcrespov b2a1e1e
              
                doc
              
              
                pcrespov 4500ed5
              
                refactor folders subdomain
              
              
                pcrespov 89e33bf
              
                common
              
              
                pcrespov 1498096
              
                rename layers in workspaces
              
              
                pcrespov a0daa3d
              
                folders columns
              
              
                pcrespov 3f4c25e
              
                projects columns
              
              
                pcrespov b412011
              
                migration
              
              
                pcrespov 1e48e05
              
                rename trashed_at in db
              
              
                pcrespov 02a015f
              
                Merge branch 'master' into is468/empty-trash
              
              
                pcrespov f8ef4e4
              
                fixes test
              
              
                pcrespov 001a4dd
              
                fixing mapping
              
              
                pcrespov fb16e05
              
                fixing tests
              
              
                pcrespov bf59729
              
                wrong name
              
              
                pcrespov 48093f1
              
                rename
              
              
                pcrespov 88cc7cb
              
                rest model knows about domain model but not the opposite
              
              
                pcrespov 344e443
              
                fixes rename
              
              
                pcrespov 80a09f1
              
                fixes export
              
              
                pcrespov e496bc3
              
                tests trash pass
              
              
                pcrespov 4867970
              
                rm redundance
              
              
                pcrespov 3a5d39b
              
                pylint
              
              
                pcrespov 65af25b
              
                Merge branch 'master' into is468/empty-trash
              
              
                pcrespov 08262d4
              
                modifies fixtures to produce projects
              
              
                pcrespov 67f973e
              
                note
              
              
                pcrespov fedcda7
              
                Merge branch 'master' into is468/empty-trash
              
              
                pcrespov 12633e2
              
                workspaces
              
              
                pcrespov b28ec39
              
                Merge branch 'master' into is468/empty-trash
              
              
                pcrespov fbf52e2
              
                api
              
              
                pcrespov 1cb104c
              
                ProjectGet.from_domain
              
              
                pcrespov 28ff2fa
              
                from_domain_model
              
              
                pcrespov 8e96ffc
              
                to_domain_model
              
              
                pcrespov a421591
              
                extra missing
              
              
                pcrespov 2ac7623
              
                refactor to reduce complexity (sonarcloud)
              
              
                pcrespov c1102bb
              
                Merge branch 'master' into is468/empty-trash
              
              
                pcrespov 2823cc4
              
                fixes tests
              
              
                pcrespov 7a22838
              
                new col
              
              
                pcrespov 3f43cf9
              
                test validation
              
              
                pcrespov 2244e95
              
                fixes response model in open-project
              
              
                pcrespov 7f4d2da
              
                Merge branch 'master' into is468/empty-trash
              
              
                pcrespov a7740c7
              
                fixes csv
              
              
                pcrespov d667474
              
                Merge branch 'master' into is468/empty-trash
              
              
                pcrespov 2bec88d
              
                adds logging
              
              
                pcrespov 7b12d1e
              
                fixes flaky by terminating open transactions in teardown
              
              
                pcrespov 69eca40
              
                Merge branch 'master' into is468/empty-trash
              
              
                pcrespov b0a95e0
              
                Merge branch 'master' into is468/empty-trash
              
              
                pcrespov 15f816f
              
                Merge branch 'is468/empty-trash' of github.com:pcrespov/osparc-simcor…
              
              
                pcrespov 6a6fb1a
              
                adds termination as well for integration tests
              
              
                pcrespov a639ad0
              
                Merge branch 'master' into is468/empty-trash
              
              
                pcrespov 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
    
  
  
    
              
  
    
      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
    
  
  
    
              
        
          
  
    
      
          
            48 changes: 0 additions & 48 deletions
          
          48 
        
  packages/models-library/src/models_library/api_schemas_webserver/folders.py
  
  
      
      
   
        
      
      
    This file was deleted.
      
      Oops, something went wrong.
      
    
  
  
    
      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
    
  
  
    
              
        
          
  
    
      
          
            84 changes: 84 additions & 0 deletions
          
          84 
        
  ...e/src/simcore_postgres_database/migration/versions/f19905923355_adds_trashed_by_column.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,84 @@ | ||
| """Adds trashed by column | ||
| 
     | 
||
| Revision ID: f19905923355 | ||
| Revises: 307017ee1a49 | ||
| Create Date: 2025-01-10 16:43:21.559138+00:00 | ||
| 
     | 
||
| """ | ||
| import sqlalchemy as sa | ||
| from alembic import op | ||
| 
     | 
||
| # revision identifiers, used by Alembic. | ||
| revision = "f19905923355" | ||
| down_revision = "307017ee1a49" | ||
| branch_labels = None | ||
| depends_on = None | ||
| 
     | 
||
| 
     | 
||
| def upgrade(): | ||
| 
     | 
||
| with op.batch_alter_table("folders_v2") as batch_op: | ||
| batch_op.alter_column( | ||
| "trashed_at", | ||
| new_column_name="trashed", | ||
| comment="The date and time when the folders was marked as trashed. Null if the folders has not been trashed [default].", | ||
| ) | ||
| batch_op.add_column( | ||
| sa.Column( | ||
| "trashed_by", | ||
| sa.BigInteger(), | ||
| nullable=True, | ||
| comment="User who trashed the folders, or null if not trashed or user is unknown.", | ||
| ) | ||
| ) | ||
| batch_op.create_foreign_key( | ||
| "fk_folders_trashed_by_user_id", | ||
| "users", | ||
| ["trashed_by"], | ||
| ["id"], | ||
| onupdate="CASCADE", | ||
| ondelete="SET NULL", | ||
| ) | ||
| 
     | 
||
| with op.batch_alter_table("projects") as batch_op: | ||
| batch_op.alter_column( | ||
| "trashed_at", | ||
| new_column_name="trashed", | ||
| comment="The date and time when the projects was marked as trashed. Null if the projects has not been trashed [default].", | ||
| ) | ||
| batch_op.add_column( | ||
| sa.Column( | ||
| "trashed_by", | ||
| sa.BigInteger(), | ||
| nullable=True, | ||
| comment="User who trashed the projects, or null if not trashed or user is unknown.", | ||
| ) | ||
| ) | ||
| batch_op.create_foreign_key( | ||
| "fk_projects_trashed_by_user_id", | ||
| "users", | ||
| ["trashed_by"], | ||
| ["id"], | ||
| onupdate="CASCADE", | ||
| ondelete="SET NULL", | ||
| ) | ||
| 
     | 
||
| 
     | 
||
| def downgrade(): | ||
| with op.batch_alter_table("projects") as batch_op: | ||
| batch_op.drop_constraint("fk_projects_trashed_by_user_id", type_="foreignkey") | ||
| batch_op.drop_column("trashed_by") | ||
| batch_op.alter_column( | ||
| "trashed", | ||
| new_column_name="trashed_at", | ||
| comment="The date and time when the project was marked as trashed. Null if the project has not been trashed [default].", | ||
| ) | ||
| 
     | 
||
| with op.batch_alter_table("folders_v2") as batch_op: | ||
| batch_op.drop_constraint("fk_folders_trashed_by_user_id", type_="foreignkey") | ||
| batch_op.drop_column("trashed_by") | ||
| batch_op.alter_column( | ||
| "trashed", | ||
| new_column_name="trashed_at", | ||
| comment="The date and time when the folder was marked as trashed. Null if the folder has not been trashed [default].", | ||
| ) | ||
  
    
      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.