Let OpenWeather calls-per-minute limit cascade to orgs and users
Drop the descriptor Default of 60 so the global panel field can be left blank. A non-blank global value sits at the top of the cascade and locks every lower layer, so the fixed default made the per-minute limit un-overridable by organizations and users. Blank now means "inherit"; the runtime still falls back to 60 when no layer sets a value, so the usage gauge is unchanged. Update the descriptor help and the Settings row copy to explain the inherit behavior. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
5960fb4806
commit
3903428964
@@ -160,8 +160,8 @@ func (p *Plugin) Descriptor() plugins.Descriptor {
|
||||
Help: "Longitude used by the health probe and by calls that supply no location (−180…180)."},
|
||||
{Key: "lang", Label: "Language", Type: "text",
|
||||
Help: "Optional ISO language code for human-readable weather descriptions (e.g. en, pl, de). Leave blank for the API default."},
|
||||
{Key: "callsPerMinute", Label: "Calls per minute limit", Type: "number", Default: "60",
|
||||
Help: "Your OpenWeather plan's per-minute call limit (the free tier is 60). Used only to gauge usage in the app — OpenWeather does not report remaining quota, so the app counts the calls it makes against this number."},
|
||||
{Key: "callsPerMinute", Label: "Calls per minute limit", Type: "number",
|
||||
Help: "Your OpenWeather plan's per-minute call limit (the free tier is 60). Used only to gauge usage in the app — OpenWeather does not report remaining quota, so the app counts the calls it makes against this number. Leave blank to let each organization or user set their own limit; the app falls back to 60 when no layer sets one."},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user