Application.Ringtoets.Migration

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
* Refactored IInquiryHelper such that it no longer depends on FileFilterGenerator. ** From the abstraction level point of view, it just feels incorrect to pass generators around. * Extended IInquiryHelper with a method to check if a certain optional step should be performed or not. * Refactored StorageCommandHandler to use IInquiryHelper instead of showing dialogs itself. ** This should solve some issues we're having on the build server (expected dialogs not appearing) ** Also improves consistency with other code. * CalculationConfigurationWriter.WriteDistributionProperties now based on IDictionary instead of IEnumerable<Tuple> * Cleanup Related to Issue [WTI-1153]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8775 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: dec4df77800b65c57be1a8c2b6783e85a0f2c900

Former-commit-id: 9288f6b609cf96bdfa62d1fefa7e13ba956a85b7

  1. … 21 more files in changeset.
Implemented review comments: - Removed obsolete lines in project file - Added assertions for the log level of the generated log messages - Renamed tests for naming consistency - Replaced testcases with a general source for the invalid file paths

Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8730 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: fe2b47099a1213a7a063bf08564abb9c1b5562bb

Former-commit-id: 5564b6705928765ed5bc716661f2ba635da89681

    • -2
    • +0
    ./Application.Ringtoets.Migration.csproj
  1. … 2 more files in changeset.
* Refactored RingtoetsProjectMigrator to move responsibility of determining target location for migrated project to seperate method. * Fixed 2 failing tests. Related to Issue [WTI-1049]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8660 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: e725e71ba9d80444c8a49d6618832bee6ccd237d

Former-commit-id: 457b058abc9f8baa453a165f511492c49c895042

    • -0
    • +1
    ./Application.Ringtoets.Migration.csproj
  1. … 7 more files in changeset.
* Some refactoring to RingtoetsProjectMigrator ** Now more clear return result for ShouldMigrate method between the need for migration or not or when the migration workflow is aborted. ** Moved responsibility of asking user for accepting migration from Migrate to ShouldMigrate method.

These steps have been taken as preparation to ask user for confirmation and location before starting an Activity to perform the actual migration and subsequently opening the migrated project.

Related to Issue [WTI-1049]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8654 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 3d793cf304e5f7f685b1d4341368297a7cbebdc7

Former-commit-id: 61ca241d865cafa2dc91367fd1dbf780aa790f73

  1. … 7 more files in changeset.
Final changes to the migrator: - Adjusted inquiry such that it is consistent with the console application - Updated XMLDoc - Refactored RingtoetsProjectMigratorTest: -- Extracted general method which asserts the messages from the inquiry helper -- Added tests to assert behaviour of the migrator when the file to migrate to locks (unable to write) -- Replaced all DirectoryDisposeHelpers with the FileDisposeHelpers, because the SaveFileDialog interactions are now obsolete -- Some minor cleanup

Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8636 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 024a738fb573f6a4a968fba23eb6b54b859b8596

Former-commit-id: acf833a66fdc442a399e5251063d7b6baa08fc0b

  1. … 2 more files in changeset.
Incorporated the RingtoetsProjectMigrator in the StorageCommandHandler: - Fixed compilation errors of affected tests -- Introduced mocks where necessary - Ran DeltaresClean Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8618 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: d546ad32067db464f96e9faa5a55aaa2b5eef6ca

Former-commit-id: c73bfdeaf395de90207b9bdedc43baf05869ac0b

  1. … 14 more files in changeset.
Removed dependency on the SaveFileDialog: - Converted tests to incorporate the IInquiryHelper - Removed unused references - Added tests to verify behaviour when migration is supposed to fail: -- Unsupported version -- Target path is the same as the source path

Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8598 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 868f6ce88911e3381c40092e7576dd62834eadbd

Former-commit-id: f4f76a6956d026ac4ba4c68a6ea82bb3b6f75fd5

    • -1
    • +0
    ./Application.Ringtoets.Migration.csproj
  1. … 1 more file in changeset.
Investigate alternative for failing SaveDialogTests on the buildserver: - Expanded the IInquiryHelper with a GetTargetFileLocation which takes a file filter and a suggested initial name as argument - Incorporated mentioned feature in the RingtoetsProjectMigrator - Adjusted failing tests Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8594 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 5dcba28f6f531f2c0cc17da88348f279e582a6e1

Former-commit-id: b94f1c1b7bad927661d5eae11fecd6e414e30e71

  1. … 4 more files in changeset.
- Fixed failing tests: used Path.Combine to get the desired target path - Introduced a IMigrateProject: -- Will be used to inject the RingtoetsProjectMigrator in the StorageCommandHandler Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8584 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: a91dcf37e1ce0202f18834db2b39a8f26fa28191

Former-commit-id: cced646b70846232ac83e9628e40cd58cbea1d2a

    • -0
    • +5
    ./Application.Ringtoets.Migration.csproj
  1. … 4 more files in changeset.
Fixed compilation errors: - Removed assembly references - Readded references of the solution Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8582 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 275e198d4625c83e03749cfff54f7564f4ae5c61

Former-commit-id: dff9eebc1a623b6cb503bf63dc28d32eaed290b1

    • -16
    • +32
    ./Application.Ringtoets.Migration.csproj
Created RingtoetsProjectMigrator: - GUI handler for determining when a file should be migrated and performs the migration - Added tests - Removed unused reference Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8580 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: d94000a2583fb23bc4f5a00fdaf6ebe6764791a3

Former-commit-id: 23536a9d5c9045d0ba7526835a4da47bab7b0ff4

    • -0
    • +34
    ./Application.Ringtoets.Migration.csproj
    • -0
    • +152
    ./Properties/Resources.Designer.cs
    • -0
    • +209
    ./RingtoetsProjectMigrator.cs
  1. … 4 more files in changeset.
Created new Application.Migration project which will be responsible for the GUI migration logic - Updated License - Renamed and moved existing Application.Migration projects: -- Application.Migration --> Application.Migration.Core which will serve as the main library for all related Migration Ringtoets functionality -- Application.MigrationConsole --> Application.Migration.Console -- Updated the TestDataPath to point to the correct path Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8518 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 26428f30b3c9f36ab105d8aa3a93e3df6449211b

Former-commit-id: dcb9d35bd6a34039e0d7b5a66b001036eed19c95

    • -74
    • +3
    ./Application.Ringtoets.Migration.csproj
    • -170
    • +0
    ./Properties/Resources.Designer.cs
    • -1706
    • +0
    ./Resources/DatabaseStructure17.1.sql
    • -157
    • +0
    ./Resources/Migration_5_17.1.sql
    • -114
    • +0
    ./RingtoetsSqLiteDatabaseFileMigrator.cs
  1. … 78 more files in changeset.
Incorporated comments review 1478: - Adjusted sql script - Added tests for the strategy template classes to assert the correct function arguments are used when the protected functions are called - Updated XMLDocs Related to Issue [WTI-1075]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8409 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: f4c9ff2c01986c8e24d309d3a1095352ede30c64

Former-commit-id: 668e94b92a17932f62f7583edae32491bec917d1

  1. … 9 more files in changeset.
Added backwards compatibility for the surface lines (in case duplicate names are present in older projects)

Related to Issue [WTI-1075]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8371 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 14050d8f792b1f42e132eb7ab181366dd2618fac

Former-commit-id: ea5cdbc04dc064fa1848f76c20f0e6ef1b9b9fe5

Updated migration script with modification of stochastic soil profile probabilities and stochastic soil model name uniqueness. Related to Issue [WTI-1070]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8284 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 7d9232b52b453b78c7bb41a452dca0bd107c6e74

Former-commit-id: daef51a2680f287d9e04ca1592864efb4acc0612

- Updated texts of ValidateFilePath Added method GetFullPath that throws only ArgumentExceptions Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8270 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: c17a15c75b90157638db91f8a04112cafacf43d8

Former-commit-id: 0eed903d451361194e8d2111d155a0755c633259

  1. … 32 more files in changeset.
Performed cleanup over Application.Ringtoets.Storage. Added validation for StochasticSoilProfile requiring value for Probability. Added NOT NULL constraint to StochasticSoilProfileEntity.Probability column.

Related to Issue [WTI-1070]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8249 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 5e29aefdb152eb1964dafacd53fcbfafd14713b4

Former-commit-id: a85ccc6fe92f813435517cac8abbf7a44e164480

  1. … 62 more files in changeset.
Update migration script Related to Issue [WTI-1093]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8226 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: d568543395057a6880a61fdd1ca61324674da2dd

Former-commit-id: 077fe318833c0e82d43d7a047a35b8161d790bd1

- Updated texts Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8224 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: f6c28a3cf3890d7739e3f084ca0f4fcf7640e320

Former-commit-id: e3b698b0078df6750460ad154b53b8d585ce964f

  1. … 12 more files in changeset.
- Updated texts Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8215 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 68650ad5922e20b88aa738c2210247718418450c

Former-commit-id: f6d8c7a149f3210a91ff604a419ad58307f33301

  1. … 1 more file in changeset.
Fixed migration script so that it works when there are more than one assessment sections in one project. Updated the FullTestProject164.rtd with the demo project. Now, the project consists of (this should be the standard for future releases): - A FullTestProject - A demo assessment section Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8191 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 69e0442bf211245524f227615ec6319208905d59

Former-commit-id: 0c6fcb27eebccbf51762ad9de6c57a533efe514f

  1. … 1 more file in changeset.
Introduced ValidateVersion and used where possible Refactored ConsoleHelper.GetWindowWidth Created test case source for Valid and Invalid Ringtoets versions Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8141 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: f0424502c7e1f90654dc31ea041ff7fa20f92254

Former-commit-id: 377895345b2dd85a3e894d7d5c63a60cb3b13cb0

  1. … 8 more files in changeset.
Review related changes Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8138 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: a49ab132bc83e24096bab6c44313eff9822ddaac

Former-commit-id: 93877f5bf2e9e6cc5190c466524b3e1a3f6e8be0

  1. … 15 more files in changeset.
Implemented storage to store the source path location of the surface lines - Added functionality, and relevant tests - Readded missing license headers - Ran DeltaresClean over DBContext, committed changed files

Related to Issue [WTI-1083]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8083 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: f0f61efb6b3c5a6d48cfac01e8da44ea58d24c5f

Former-commit-id: c0bc8d7dd394dbcc58925cb0b720db6ac3dd6313

  1. … 18 more files in changeset.
Linked minimum database version for migration to RingtoetsVersionHelper Updated migration with new minimum version Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8067 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 6eb7cad3ce90b6ade3917b0fedc39cf302441011

Former-commit-id: e98ea607aec97db86055198a61af55acf3e47110

    • -1
    • +1
    ./Application.Ringtoets.Migration.csproj
    • -119
    • +0
    ./Resources/Migration_4_17.1.sql
    • -0
    • +119
    ./Resources/Migration_5_17.1.sql
  1. … 6 more files in changeset.
Various review related changes

Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8048 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 470dff7df1471130399ed0aa37152fd2be9eccae

Former-commit-id: 800301e395949ce32878b0584b551fccc7ed3a84

  1. … 1 more file in changeset.
Various review related changes Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8036 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 0ea760c603ca2f9027e48c58e3ab01246b84ebad

Former-commit-id: de1b1c0100b80f5c09f21ae9e3102b1dd6e8f8c8

  1. … 6 more files in changeset.
Changed license of Migrator to GNU Lesser General Public License Various review related changes Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8034 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 9f0ef06051d4b46e8dd8e42c4f72cf35ae2c07ca

Former-commit-id: cb795f6985db519fc3dfc11b1e5290d76aac76f1

  1. … 65 more files in changeset.
- Connected Read en Create methods to AssessmentSection. - Implemented Migration. Related to Issue [WTI-1087]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8027 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 666ae8c7cd69ec117cbcd88c3d0a74074367a615

Former-commit-id: bf8b85b1106daf832bd6a53b240874ac3bf6f8d3

    • -1
    • +22
    ./Resources/DatabaseStructure17.1.sql
  1. … 7 more files in changeset.
Paired with ~berg_jl to possibly refactor parts of Migration Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8025 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: b543dd74b8f248a2237f65d6065d7a20e1604585

Former-commit-id: e4b5dc7b2ebefcf63624e175be545eb7daecfa72

  1. … 6 more files in changeset.