Refresh community demo and docs
Deploy / deploy (push) Successful in 1m42s
CI / Rust Checks (push) Successful in 6m9s
CI / UI Checks (push) Successful in 5s
CI / Deployment Manifests (push) Successful in 2s
CI / Frontend E2E (push) Successful in 4m42s

This commit is contained in:
github-ops committed 2026-06-21 11:20:12 +00:00
1 parent cab9282c50
commit c77065756d
24 files changed
+688 -807

No files matched your search

+19 -5
View File
@@ -85,19 +85,33 @@ impl AdminService {
workspace_id: &WorkspaceId,
) -> Result<(), ApiError> {
let existing = self.registry.list_workspace_upstreams(workspace_id).await?;
if existing.iter().any(|item| item.name == "Open Meteo") {
if existing.iter().any(|item| item.name == "Frankfurter") {
return Ok(());
}
let now = OffsetDateTime::now_utc();
let existing_open_meteo = existing
.iter()
.find(|item| {
item.name == "Open Meteo"
&& item.base_url == "https://api.open-meteo.com"
&& item.auth_profile_id.is_none()
})
.cloned();
let upstream = WorkspaceUpstream {
id: WorkspaceUpstreamId::new(new_prefixed_id("upstream")),
id: existing_open_meteo
.as_ref()
.map(|item| item.id.clone())
.unwrap_or_else(|| WorkspaceUpstreamId::new(new_prefixed_id("upstream"))),
workspace_id: workspace_id.clone(),
name: "Open Meteo".to_owned(),
base_url: "https://api.open-meteo.com".to_owned(),
name: "Frankfurter".to_owned(),
base_url: "https://api.frankfurter.dev".to_owned(),
static_headers: json!({}),
auth_profile_id: None,
created_at: now,
created_at: existing_open_meteo
.as_ref()
.map(|item| item.created_at)
.unwrap_or(now),
updated_at: now,
};
self.registry