Title: Self-documenting settings template by Vassiliy-Kudryashov · Pull Request #1420 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Self-documenting settings template by Vassiliy-Kudryashov · Pull Request #1420 · UnitTestBot/UTBotJava
X Title: Self-documenting settings template by Vassiliy-Kudryashov · Pull Request #1420 · UnitTestBot/UTBotJava
Description: Description There is new helper to be used from Gradle task. It converts UtSettings.kt to resource file settings.properties. So, actual state of UtSettings.kt (properties, defauls, relevant documentation comments) will allways be converted to bundled resource file we publish along with the plugin as top-level entry inside utbot-intellij-{version}.jar file. Note, the template contains commented lines only so we free to change our hardcoded defaults later and re-write outdated template with new one until it's customized by user. Just after IDE start (namely when plugin loads its settings) we check if settings.properties is presented in user's local file system as {home}/.utbot/settings.properties: If not we create it from the resource template together with the folder is need. If file already exists we copy resource template only if there are no custom (provided by user) values inside to persist existing users' configuration "as is". Fixes #1412 Type of Change New feature (non-breaking change which adds functionality) How Has This Been Tested? Manual Scenarios Scenario 1 Delete {home}/.utbot folder if exists. Start IDE, wait for project loading. The folder {home}/.utbot should be created automatically, for Windows it also should be marked as "hidden file". There should be template file settings.properties inside. If you delete the file it should appear again after IDE restart. Scenario 2 Clear the file {home}/.utbot/settings.properties, leave just one line inside: disableCoroutinesDebug=true Start IDE, wait for project loading. As soon as property file contains defaults, it should be re-writen with template. Scenario 3 Clear the file {home}/.utbot/settings.properties, leave just one line inside: disableCoroutinesDebug=false Start IDE, wait for project loading. As soon as property file contains custom value, it should stay as is. Checklist (remove irrelevant options): The change followed the style guidelines of the UTBot project Self-review of the code is passed The change contains enough commentaries, particularly in hard-to-understand areas New documentation is provided or existed one is altered No new warnings
Open Graph Description: Description There is new helper to be used from Gradle task. It converts UtSettings.kt to resource file settings.properties. So, actual state of UtSettings.kt (properties, defauls, relevant docum...
X Description: Description There is new helper to be used from Gradle task. It converts UtSettings.kt to resource file settings.properties. So, actual state of UtSettings.kt (properties, defauls, relevant docum...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/pull/1420
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:0293eca9-47b8-c4a4-fbdf-fe3db26c9dc1 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | D866:12866F:D4EF58:1220C38:698F0B83 |
| html-safe-nonce | 445f0792b13a21cbc209f9df68ca041ec54c2d4acdb8fd5eb7d4275e58357573 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODY2OjEyODY2RjpENEVGNTg6MTIyMEMzODo2OThGMEI4MyIsInZpc2l0b3JfaWQiOiI4NzMxMDg1NzM0NzIxNTU1MzMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 03dae6876c620b20e7ac9c338c4a372c417e2efb1283ff815e9467eaed5b8c42 |
| hovercard-subject-tag | pull_request:1135197569 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/UnitTestBot/UTBotJava/pull/1420/checks |
| twitter:image | https://avatars.githubusercontent.com/u/4101410?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4101410?s=400&v=4 |
| og:image:alt | Description There is new helper to be used from Gradle task. It converts UtSettings.kt to resource file settings.properties. So, actual state of UtSettings.kt (properties, defauls, relevant docum... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2da1a0d1318592c9965539b12269c4641177dfabfc86c3807992efb13e1d96ff |
| turbo-cache-control | no-preview |
| go-import | github.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git |
| octolytics-dimension-user_id | 87413538 |
| octolytics-dimension-user_login | UnitTestBot |
| octolytics-dimension-repository_id | 480810501 |
| octolytics-dimension-repository_nwo | UnitTestBot/UTBotJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 480810501 |
| octolytics-dimension-repository_network_root_nwo | UnitTestBot/UTBotJava |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 66d26b1a7f81bd3ffe8d0f16abab43f6e64fd21a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width