set default cooldown duration to 0 so it's not a breaking change

This commit is contained in:
Athou
2024-09-21 10:35:20 +02:00
parent 6a7d83bb45
commit 3cc93b51bb
3 changed files with 4 additions and 5 deletions

View File

@@ -417,7 +417,7 @@ a| [[commafeed-server_commafeed-feed-refresh-force-refresh-cooldown-duration]] [
[.description] [.description]
-- --
Duration after which the "Fetch all my feeds now" action is available again after use to avoid spamming feeds. 0 to disable. Duration after which the "Fetch all my feeds now" action is available again after use to avoid spamming feeds.
ifdef::add-copy-button-to-env-var[] ifdef::add-copy-button-to-env-var[]
@@ -428,7 +428,7 @@ Environment variable: `+++COMMAFEED_FEED_REFRESH_FORCE_REFRESH_COOLDOWN_DURATION
endif::add-copy-button-to-env-var[] endif::add-copy-button-to-env-var[]
-- --
|link:https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html[Duration] link:#duration-note-anchor-{summaryTableId}[icon:question-circle[title=More information about the Duration format]] |link:https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/time/Duration.html[Duration] link:#duration-note-anchor-{summaryTableId}[icon:question-circle[title=More information about the Duration format]]
|`1M` |`0S`
h|[[commafeed-server_section_commafeed-database]] [.section-name.section-level0]##Database settings## h|[[commafeed-server_section_commafeed-database]] [.section-name.section-level0]##Database settings##

View File

@@ -212,10 +212,8 @@ public interface CommaFeedConfiguration {
/** /**
* Duration after which the "Fetch all my feeds now" action is available again after use to avoid spamming feeds. * Duration after which the "Fetch all my feeds now" action is available again after use to avoid spamming feeds.
*
* 0 to disable.
*/ */
@WithDefault("1m") @WithDefault("0")
Duration forceRefreshCooldownDuration(); Duration forceRefreshCooldownDuration();
} }

View File

@@ -49,6 +49,7 @@ quarkus.native.add-all-charsets=true
%test.commafeed.users.allow-registrations=true %test.commafeed.users.allow-registrations=true
%test.commafeed.password-recovery-enabled=true %test.commafeed.password-recovery-enabled=true
%test.commafeed.http-client.cache.enabled=false %test.commafeed.http-client.cache.enabled=false
%test.commafeed.feed-refresh.force-refresh-cooldown-duration=1m
# prod profile overrides # prod profile overrides