[BUG] Setting the Auto fetch above 180 minutes truncates the last digits
Describe the bug I have many repositories so I didn’t want to fetch too frequently, so I just set the value to 240 minutes without noticing the range tooltip (5 - 180 minutes). I then noticed that it was truncated to 24 minutes!
To Reproduce Steps to reproduce the behavior:
- Go to GitToolbox > Auto fetch
- Set Auto fetch to 181 minutes
- Click OK
- Re-open the settings
- Value was truncated to 18 minutes
Also, if you set the value to something lower than 5 minutes, the dialog closes without saving it.
Expected behavior The field should indicate an out-of-range error. Also, it might not be unreasonable to be able to configure it for higher values, such as once a day?
Plugin version 600.1.2+243
IDE version IntelliJ IDEA 2025.1.2 (Ultimate Edition) Build #IU-251.26094.121, built on June 3, 2025 Source revision: 616fa4675f624 Runtime version: 21.0.7+9-b895.130 amd64 (JCEF 122.1.9) VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Toolkit: sun.awt.windows.WToolkit Windows 11.0 Kotlin plugin: K2 mode GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation Memory: 3072M Cores: 14 Registry: analyze.exceptions.on.the.fly=true vcs.log.index.enable=true documentation.show.toolbar=true ide.undo.transparent.caret.movement=true ide.experimental.ui=true jvm.dfa.analysis.ui.security.analysis.window.was.shown=true Non-Bundled Plugins: org.intellij.plugins.hcl (251.26094.37) com.jetbrains.space (251.23774.318) PythonCore (251.26094.121) com.jetbrains.jax.ws (251.23774.318) com.redhat.devtools.intellij.telemetry (1.2.1.62) com.redhat.devtools.lsp4ij (0.13.0) com.intellij.aqua (251.26094.133) org.asciidoctor.intellij.asciidoc (0.44.7) com.intellij.bigdatatools.core (251.26094.121) zielu.gittoolbox (600.1.2+243) com.intellij.wiremock (251.23774.435) com.intellij.bigdatatools.kafka (251.23774.318) Kotlin: 251.26094.121-IJ
Hi, I wil extend available time range to 480 min and investigate the truncation.
Extension done in 600.1.4+243. Truncation is not something I can easily fix as this code uses IDE utilities