A new configuration setup now allows specifying a path for database properties via command-line arguments during application startup. This update also changes the call signature for `DatabaseConnection.initialize()` method to accept a path argument. Similarly, methods in `PropertiesLoader`, `PropertiesWriter`, and `MailSettings` classes were also updated to use the specified path when working with properties files. The `TestForm` class's tests were updated accordingly to handle these changes.
340 lines
20 KiB
XML
340 lines
20 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project version="4">
|
|
<component name="AutoImportSettings">
|
|
<option name="autoReloadType" value="SELECTIVE" />
|
|
</component>
|
|
<component name="ChangeListManager">
|
|
<list default="true" id="ce59df2a-8d56-446a-867b-80e627daf479" name="Changes" comment="Update Form HTML output and disable validation auto-configuration The form-to-HTML output process has been switched from a `<div>` approach to using a `StringBuilder` with a table structure in `ContactFormData.java`. Also, the spring validation auto-configuration has been disabled by adding `exclude = ValidationAutoConfiguration.class` in the `@SpringBootApplication` annotation of `Main.java`. Some changes in `.idea/workspace.xml` and `VerifyController.java` were made as well.">
|
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
|
<change beforePath="$PROJECT_DIR$/src/main/java/com/alttd/forms/Main.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/alttd/forms/Main.java" afterDir="false" />
|
|
<change beforePath="$PROJECT_DIR$/src/main/java/com/alttd/forms/database/DatabaseConnection.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/alttd/forms/database/DatabaseConnection.java" afterDir="false" />
|
|
<change beforePath="$PROJECT_DIR$/src/main/java/com/alttd/forms/mail/MailSettings.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/alttd/forms/mail/MailSettings.java" afterDir="false" />
|
|
<change beforePath="$PROJECT_DIR$/src/main/java/com/alttd/forms/properties/PropertiesLoader.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/alttd/forms/properties/PropertiesLoader.java" afterDir="false" />
|
|
<change beforePath="$PROJECT_DIR$/src/main/java/com/alttd/forms/properties/PropertiesWriter.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/alttd/forms/properties/PropertiesWriter.java" afterDir="false" />
|
|
<change beforePath="$PROJECT_DIR$/src/main/resources/application.properties" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/application.properties" afterDir="false" />
|
|
<change beforePath="$PROJECT_DIR$/src/test/java/TestForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/TestForm.java" afterDir="false" />
|
|
</list>
|
|
<option name="SHOW_DIALOG" value="false" />
|
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
</component>
|
|
<component name="ExternalProjectsData">
|
|
<projectState path="$PROJECT_DIR$">
|
|
<ProjectState />
|
|
</projectState>
|
|
</component>
|
|
<component name="FileTemplateManagerImpl">
|
|
<option name="RECENT_TEMPLATES">
|
|
<list>
|
|
<option value="Jsp File" />
|
|
<option value="Class" />
|
|
<option value="package-info" />
|
|
<option value="package.json" />
|
|
</list>
|
|
</option>
|
|
</component>
|
|
<component name="Git.Settings">
|
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
</component>
|
|
<component name="GitToolBoxStore">
|
|
<option name="projectConfigVersion" value="5" />
|
|
</component>
|
|
<component name="KubernetesApiProvider">{
|
|
"isMigrated": true
|
|
}</component>
|
|
<component name="LogFilters">
|
|
<option name="FILTER_ERRORS" value="false" />
|
|
<option name="FILTER_WARNINGS" value="false" />
|
|
<option name="FILTER_INFO" value="true" />
|
|
<option name="FILTER_DEBUG" value="true" />
|
|
<option name="CUSTOM_FILTER" />
|
|
</component>
|
|
<component name="MarkdownSettingsMigration">
|
|
<option name="stateVersion" value="1" />
|
|
</component>
|
|
<component name="ProblemsViewState">
|
|
<option name="selectedTabId" value="ProjectErrors" />
|
|
</component>
|
|
<component name="ProjectColorInfo">{
|
|
"associatedIndex": 7
|
|
}</component>
|
|
<component name="ProjectId" id="2aJVOGgvEjzOGrKFJ1xKKH5Oshq" />
|
|
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
|
<component name="ProjectViewState">
|
|
<option name="hideEmptyMiddlePackages" value="true" />
|
|
<option name="showLibraryContents" value="true" />
|
|
</component>
|
|
<component name="PropertiesComponent"><![CDATA[{
|
|
"keyToString": {
|
|
"Gradle.Build forms.executor": "Run",
|
|
"Gradle.TestForm.executor": "Run",
|
|
"Gradle.TestForm.testFunctions.executor": "Debug",
|
|
"Gradle.TestForm.testRetrieveForm.executor": "Run",
|
|
"RequestMappingsPanelOrder0": "0",
|
|
"RequestMappingsPanelOrder1": "1",
|
|
"RequestMappingsPanelWidth0": "75",
|
|
"RequestMappingsPanelWidth1": "75",
|
|
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
|
"Spring Boot.Main.executor": "Run",
|
|
"Tomcat Server.Tomcat 10.1.17.executor": "Run",
|
|
"git-widget-placeholder": "master",
|
|
"ignore.virus.scanning.warn.message": "true",
|
|
"kotlin-language-version-configured": "true",
|
|
"node.js.detected.package.eslint": "true",
|
|
"node.js.detected.package.tslint": "true",
|
|
"node.js.selected.package.eslint": "(autodetect)",
|
|
"node.js.selected.package.tslint": "(autodetect)",
|
|
"nodejs_package_manager_path": "npm",
|
|
"project.structure.last.edited": "Project",
|
|
"project.structure.proportion": "0.0",
|
|
"project.structure.side.proportion": "0.0",
|
|
"run.code.analysis.last.selected.profile": "pProject Default",
|
|
"settings.editor.selected.configurable": "preferences.lookFeel",
|
|
"vue.rearranger.settings.migration": "true"
|
|
},
|
|
"keyToStringList": {
|
|
"DatabaseDriversLRU": [
|
|
"mysql",
|
|
"mariadb"
|
|
]
|
|
}
|
|
}]]></component>
|
|
<component name="RunManager" selected="Gradle.TestForm">
|
|
<configuration name="TestForm" type="GradleRunConfiguration" factoryName="Gradle" temporary="true">
|
|
<ExternalSystemSettings>
|
|
<option name="executionName" />
|
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
<option name="externalSystemIdString" value="GRADLE" />
|
|
<option name="scriptParameters" value="" />
|
|
<option name="taskDescriptions">
|
|
<list />
|
|
</option>
|
|
<option name="taskNames">
|
|
<list>
|
|
<option value=":test" />
|
|
<option value="--tests" />
|
|
<option value=""TestForm"" />
|
|
</list>
|
|
</option>
|
|
<option name="vmOptions" />
|
|
</ExternalSystemSettings>
|
|
<ExternalSystemDebugServerProcess>false</ExternalSystemDebugServerProcess>
|
|
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
|
|
<DebugAllEnabled>false</DebugAllEnabled>
|
|
<RunAsTest>true</RunAsTest>
|
|
<method v="2" />
|
|
</configuration>
|
|
<configuration name="TestForm.testFunctions" type="GradleRunConfiguration" factoryName="Gradle" temporary="true">
|
|
<ExternalSystemSettings>
|
|
<option name="executionName" />
|
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
<option name="externalSystemIdString" value="GRADLE" />
|
|
<option name="scriptParameters" value="" />
|
|
<option name="taskDescriptions">
|
|
<list />
|
|
</option>
|
|
<option name="taskNames">
|
|
<list>
|
|
<option value=":test" />
|
|
<option value="--tests" />
|
|
<option value=""TestForm.testFunctions"" />
|
|
</list>
|
|
</option>
|
|
<option name="vmOptions" />
|
|
</ExternalSystemSettings>
|
|
<ExternalSystemDebugServerProcess>false</ExternalSystemDebugServerProcess>
|
|
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
|
|
<DebugAllEnabled>false</DebugAllEnabled>
|
|
<RunAsTest>true</RunAsTest>
|
|
<method v="2" />
|
|
</configuration>
|
|
<configuration name="TestForm.testRetrieveForm" type="GradleRunConfiguration" factoryName="Gradle" temporary="true">
|
|
<ExternalSystemSettings>
|
|
<option name="executionName" />
|
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
<option name="externalSystemIdString" value="GRADLE" />
|
|
<option name="scriptParameters" value="" />
|
|
<option name="taskDescriptions">
|
|
<list />
|
|
</option>
|
|
<option name="taskNames">
|
|
<list>
|
|
<option value=":test" />
|
|
<option value="--tests" />
|
|
<option value=""TestForm.testRetrieveForm"" />
|
|
</list>
|
|
</option>
|
|
<option name="vmOptions" />
|
|
</ExternalSystemSettings>
|
|
<ExternalSystemDebugServerProcess>false</ExternalSystemDebugServerProcess>
|
|
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
|
|
<DebugAllEnabled>false</DebugAllEnabled>
|
|
<RunAsTest>true</RunAsTest>
|
|
<method v="2" />
|
|
</configuration>
|
|
<configuration name="Main" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
|
|
<option name="ACTIVE_PROFILES" value="dev" />
|
|
<module name="forms.main" />
|
|
<option name="SPRING_BOOT_MAIN_CLASS" value="com.alttd.forms.Main" />
|
|
<method v="2">
|
|
<option name="Make" enabled="true" />
|
|
</method>
|
|
</configuration>
|
|
<configuration name="Tomcat 10.1.17" type="#com.intellij.j2ee.web.tomcat.TomcatRunConfigurationFactory" factoryName="Local" APPLICATION_SERVER_NAME="Tomcat 10.1.17" ALTERNATIVE_JRE_ENABLED="false">
|
|
<deployment>
|
|
<artifact name="Gradle : com.alttd : forms-1.0-SNAPSHOT.war">
|
|
<settings>
|
|
<option name="CONTEXT_PATH" value="/Gradle___com_alttd___forms_1_0_SNAPSHOT_war" />
|
|
</settings>
|
|
</artifact>
|
|
</deployment>
|
|
<server-settings>
|
|
<option name="BASE_DIRECTORY_NAME" value="f710d80b-33cf-48d5-9d94-7e9dacc0f171" />
|
|
</server-settings>
|
|
<predefined_log_file enabled="true" id="Tomcat" />
|
|
<predefined_log_file enabled="true" id="Tomcat Catalina" />
|
|
<predefined_log_file id="Tomcat Manager" />
|
|
<predefined_log_file id="Tomcat Host Manager" />
|
|
<predefined_log_file id="Tomcat Localhost Access" />
|
|
<ConfigurationWrapper VM_VAR="JAVA_OPTS" RunnerId="Run">
|
|
<option name="USE_ENV_VARIABLES" value="true" />
|
|
<STARTUP>
|
|
<option name="USE_DEFAULT" value="true" />
|
|
<option name="SCRIPT" value="" />
|
|
<option name="VM_PARAMETERS" value="" />
|
|
<option name="PROGRAM_PARAMETERS" value="" />
|
|
</STARTUP>
|
|
<SHUTDOWN>
|
|
<option name="USE_DEFAULT" value="true" />
|
|
<option name="SCRIPT" value="" />
|
|
<option name="VM_PARAMETERS" value="" />
|
|
<option name="PROGRAM_PARAMETERS" value="" />
|
|
</SHUTDOWN>
|
|
</ConfigurationWrapper>
|
|
<method v="2">
|
|
<option name="Make" enabled="true" />
|
|
<option name="BuildArtifacts" enabled="true">
|
|
<artifact name="Gradle : com.alttd : forms-1.0-SNAPSHOT.war" />
|
|
</option>
|
|
</method>
|
|
</configuration>
|
|
<list>
|
|
<item itemvalue="Gradle.TestForm" />
|
|
<item itemvalue="Gradle.TestForm.testFunctions" />
|
|
<item itemvalue="Gradle.TestForm.testRetrieveForm" />
|
|
<item itemvalue="Spring Boot.Main" />
|
|
<item itemvalue="Tomcat Server.Tomcat 10.1.17" />
|
|
</list>
|
|
<recent_temporary>
|
|
<list>
|
|
<item itemvalue="Gradle.TestForm" />
|
|
<item itemvalue="Gradle.TestForm.testRetrieveForm" />
|
|
<item itemvalue="Gradle.TestForm.testFunctions" />
|
|
</list>
|
|
</recent_temporary>
|
|
</component>
|
|
<component name="SharedIndexes">
|
|
<attachedChunks>
|
|
<set>
|
|
<option value="jdk-17.0.9-corretto-17.0.9-3183f394aec4-8f899f12" />
|
|
</set>
|
|
</attachedChunks>
|
|
</component>
|
|
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
|
<component name="TaskManager">
|
|
<task active="true" id="Default" summary="Default task">
|
|
<changelist id="ce59df2a-8d56-446a-867b-80e627daf479" name="Changes" comment="" />
|
|
<created>1704036635730</created>
|
|
<option name="number" value="Default" />
|
|
<option name="presentableId" value="Default" />
|
|
<updated>1704036635730</updated>
|
|
<workItem from="1704036636799" duration="105000" />
|
|
<workItem from="1704549979998" duration="2844000" />
|
|
<workItem from="1704629811001" duration="6145000" />
|
|
<workItem from="1704639914630" duration="2938000" />
|
|
<workItem from="1704742191416" duration="685000" />
|
|
<workItem from="1705152717665" duration="6704000" />
|
|
<workItem from="1705220399998" duration="6067000" />
|
|
<workItem from="1705262555334" duration="590000" />
|
|
<workItem from="1707329373408" duration="2000" />
|
|
<workItem from="1707329426177" duration="24000" />
|
|
<workItem from="1707417916223" duration="855000" />
|
|
<workItem from="1707418804088" duration="1078000" />
|
|
<workItem from="1707560440225" duration="1006000" />
|
|
<workItem from="1707643318784" duration="1003000" />
|
|
<workItem from="1707646300783" duration="1325000" />
|
|
<workItem from="1707656217023" duration="2305000" />
|
|
<workItem from="1708153393312" duration="669000" />
|
|
<workItem from="1708154142819" duration="609000" />
|
|
<workItem from="1714315469459" duration="8118000" />
|
|
</task>
|
|
<task id="LOCAL-00001" summary="Initial commit for site for forms">
|
|
<option name="closed" value="true" />
|
|
<created>1705159506039</created>
|
|
<option name="number" value="00001" />
|
|
<option name="presentableId" value="LOCAL-00001" />
|
|
<option name="project" value="LOCAL" />
|
|
<updated>1705159506039</updated>
|
|
</task>
|
|
<task id="LOCAL-00002" summary="Refactor code to use Form objects instead of JSON strings Several parts of the code have been altered to use Form objects instead of JSON strings. Changes include updating the FormQueryResult record type to hold an Optional<Form> instead of an Optional<String>, altering methods in the StoreFormQuery class to insert Form data into the database and replacing JSON handling methods in the FormQuery class with Form object oriented methods. A 'form_class' field has also been added to the 'form' table in the database to aid form identification and reconstruction from stored data.">
|
|
<option name="closed" value="true" />
|
|
<created>1705226962796</created>
|
|
<option name="number" value="00002" />
|
|
<option name="presentableId" value="LOCAL-00002" />
|
|
<option name="project" value="LOCAL" />
|
|
<updated>1705226962796</updated>
|
|
</task>
|
|
<task id="LOCAL-00003" summary="Add TestForm class and set up related unit tests The changes add a new TestForm class to implement unit tests for form handling in the application. The included tests verify the storing, retrieving, and verification of forms from a database, as well as form object creation and confirmation of form data. This is a step towards improving the code's reliability and making it easier to catch potential bugs or issues.">
|
|
<option name="closed" value="true" />
|
|
<created>1705226977031</created>
|
|
<option name="number" value="00003" />
|
|
<option name="presentableId" value="LOCAL-00003" />
|
|
<option name="project" value="LOCAL" />
|
|
<updated>1705226977031</updated>
|
|
</task>
|
|
<task id="LOCAL-00004" summary="Mark fields as final in VerificationData and ContactFormData The 'code', 'eMail' fields in the VerificationData class and 'username', 'email', 'question' fields in the ContactFormData class are now marked as 'final'. At the same time, some unused imports from ContactController, ContactFormData, FormQuery, and VerifyController have been removed for code cleanliness.">
|
|
<option name="closed" value="true" />
|
|
<created>1705227608210</created>
|
|
<option name="number" value="00004" />
|
|
<option name="presentableId" value="LOCAL-00004" />
|
|
<option name="project" value="LOCAL" />
|
|
<updated>1705227608210</updated>
|
|
</task>
|
|
<task id="LOCAL-00005" summary="Update Form HTML output and disable validation auto-configuration The form-to-HTML output process has been switched from a `<div>` approach to using a `StringBuilder` with a table structure in `ContactFormData.java`. Also, the spring validation auto-configuration has been disabled by adding `exclude = ValidationAutoConfiguration.class` in the `@SpringBootApplication` annotation of `Main.java`. Some changes in `.idea/workspace.xml` and `VerifyController.java` were made as well.">
|
|
<option name="closed" value="true" />
|
|
<created>1714319923708</created>
|
|
<option name="number" value="00005" />
|
|
<option name="presentableId" value="LOCAL-00005" />
|
|
<option name="project" value="LOCAL" />
|
|
<updated>1714319923708</updated>
|
|
</task>
|
|
<option name="localTasksCounter" value="6" />
|
|
<servers />
|
|
</component>
|
|
<component name="TypeScriptGeneratedFilesManager">
|
|
<option name="version" value="3" />
|
|
</component>
|
|
<component name="Vcs.Log.Tabs.Properties">
|
|
<option name="TAB_STATES">
|
|
<map>
|
|
<entry key="MAIN">
|
|
<value>
|
|
<State />
|
|
</value>
|
|
</entry>
|
|
</map>
|
|
</option>
|
|
</component>
|
|
<component name="VcsManagerConfiguration">
|
|
<MESSAGE value="Initial commit for site for forms" />
|
|
<MESSAGE value="Refactor code to use Form objects instead of JSON strings Several parts of the code have been altered to use Form objects instead of JSON strings. Changes include updating the FormQueryResult record type to hold an Optional<Form> instead of an Optional<String>, altering methods in the StoreFormQuery class to insert Form data into the database and replacing JSON handling methods in the FormQuery class with Form object oriented methods. A 'form_class' field has also been added to the 'form' table in the database to aid form identification and reconstruction from stored data." />
|
|
<MESSAGE value="Add TestForm class and set up related unit tests The changes add a new TestForm class to implement unit tests for form handling in the application. The included tests verify the storing, retrieving, and verification of forms from a database, as well as form object creation and confirmation of form data. This is a step towards improving the code's reliability and making it easier to catch potential bugs or issues." />
|
|
<MESSAGE value="Remove unnecessary Gson imports in ContactFormData The Gson and GsonBuilder imports in the ContactFormData class were unused and have been removed. This cleanup simplifies the code and reduces unnecessary dependencies. " />
|
|
<MESSAGE value="Mark fields as final in VerificationData and ContactFormData The 'code', 'eMail' fields in the VerificationData class and 'username', 'email', 'question' fields in the ContactFormData class are now marked as 'final'. At the same time, some unused imports from ContactController, ContactFormData, FormQuery, and VerifyController have been removed for code cleanliness." />
|
|
<MESSAGE value="Update Form HTML output and disable validation auto-configuration The form-to-HTML output process has been switched from a `<div>` approach to using a `StringBuilder` with a table structure in `ContactFormData.java`. Also, the spring validation auto-configuration has been disabled by adding `exclude = ValidationAutoConfiguration.class` in the `@SpringBootApplication` annotation of `Main.java`. Some changes in `.idea/workspace.xml` and `VerifyController.java` were made as well." />
|
|
<option name="LAST_COMMIT_MESSAGE" value="Update Form HTML output and disable validation auto-configuration The form-to-HTML output process has been switched from a `<div>` approach to using a `StringBuilder` with a table structure in `ContactFormData.java`. Also, the spring validation auto-configuration has been disabled by adding `exclude = ValidationAutoConfiguration.class` in the `@SpringBootApplication` annotation of `Main.java`. Some changes in `.idea/workspace.xml` and `VerifyController.java` were made as well." />
|
|
</component>
|
|
</project> |