Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe

Commits:

2 changed files:

Changes:

  • client/core/src/main/java/fr/ird/observe/client/action/api/FeedBackBuilder.java
    ... ... @@ -116,7 +116,8 @@ public class FeedBackBuilder {
    116 116
                 case JOptionPane.CLOSED_OPTION:
    
    117 117
                 case 1:
    
    118 118
                     // cancel operation
    
    119
    -                throw new IllegalStateException("User cancel operation");
    
    119
    +                log.warn("User cancel feed back creation.");
    
    120
    +                return;
    
    120 121
             }
    
    121 122
             File feedBackFile = model.getFeedBackFile();
    
    122 123
             log.info(String.format("Create feed back at: %s", feedBackFile));
    

  • client/datasource/editor/api/src/main/java/fr/ird/observe/client/datasource/editor/api/wizard/DataSourceHelper.java
    ... ... @@ -328,7 +328,8 @@ public class DataSourceHelper {
    328 328
                     h2Config.getPassword(),
    
    329 329
                     h2Config.isShowMigrationProgression(),
    
    330 330
                     h2Config.isShowMigrationSql(),
    
    331
    -                h2Config.getModelVersion()
    
    331
    +                //tchemit 2021-04-26 always use the application model version, otherwise topia won't do correct migration if required
    
    332
    +                model.getModelVersion()
    
    332 333
             );
    
    333 334
         }
    
    334 335
     
    
    ... ... @@ -343,7 +344,8 @@ public class DataSourceHelper {
    343 344
                     pgConfig.isUseSsl(),
    
    344 345
                     pgConfig.isShowMigrationProgression(),
    
    345 346
                     pgConfig.isShowMigrationSql(),
    
    346
    -                pgConfig.getModelVersion()
    
    347
    +                //tchemit 2021-04-26 always use the application model version, otherwise topia won't do correct migration if required
    
    348
    +                model.getModelVersion()
    
    347 349
             );
    
    348 350
         }
    
    349 351
     
    
    ... ... @@ -356,7 +358,8 @@ public class DataSourceHelper {
    356 358
                     restConfig.getLogin(),
    
    357 359
                     restConfig.getPassword(),
    
    358 360
                     restConfig.getOptionalDatabaseName().orElse(null),
    
    359
    -                restConfig.getModelVersion()
    
    361
    +                //tchemit 2021-04-26 always use the application model version, otherwise topia won't do correct migration if required
    
    362
    +                model.getModelVersion()
    
    360 363
             );
    
    361 364
         }
    
    362 365
     }