Skip to content

Commit d6dd647

Browse files
committed
Make plan_management_iframe_uri be a String not URL
1 parent 18d30b3 commit d6dd647

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

crates/config/src/sections/experimental.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use chrono::Duration;
88
use schemars::JsonSchema;
99
use serde::{Deserialize, Serialize};
1010
use serde_with::serde_as;
11-
use url::Url;
1211

1312
use crate::ConfigurationSection;
1413

@@ -77,9 +76,10 @@ pub struct ExperimentalConfig {
7776
#[serde(skip_serializing_if = "Option::is_none")]
7877
pub inactive_session_expiration: Option<InactiveSessionExpirationConfig>,
7978

80-
/// Experimental feature to show a plan management tab and iframe
79+
/// Experimental feature to show a plan management tab and iframe.
80+
/// This value is passed through "as is" to the client without any validation.
8181
#[serde(skip_serializing_if = "Option::is_none")]
82-
pub plan_management_iframe_uri: Option<Url>,
82+
pub plan_management_iframe_uri: Option<String>,
8383
}
8484

8585
impl Default for ExperimentalConfig {

crates/data-model/src/site_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@ pub struct SiteConfig {
9292
pub login_with_email_allowed: bool,
9393

9494
/// The iframe URL to show in the plan tab of the UI
95-
pub plan_management_iframe_uri: Option<Url>,
95+
pub plan_management_iframe_uri: Option<String>,
9696
}

crates/handlers/src/graphql/model/site_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub struct SiteConfig {
5757
/// Whether users can log in with their email address.
5858
login_with_email_allowed: bool,
5959

60-
plan_management_iframe_uri: Option<Url>,
60+
plan_management_iframe_uri: Option<String>,
6161
}
6262

6363
#[derive(SimpleObject)]

0 commit comments

Comments
 (0)