global schema fixed for good3

This commit is contained in:
Priec
2026-09-04 23:46:22 +02:00
parent ebb24f8783
commit 670fbdf1ea
9 changed files with 12 additions and 12 deletions

2
client

Submodule client updated: e104825edc...53ec9866af

2
server

Submodule server updated: 81a49d66d6...32374830ed

View File

@@ -247,7 +247,7 @@ mod tests {
});
AddTablePageState {
nav: crate::ui::Nav::default(),
shared_profile: "__global".to_string(),
shared_profile: "global".to_string(),
profiles: vec!["billing".to_string()],
rate_sources: vec!["ecb".to_string()],
draft,

View File

@@ -505,7 +505,7 @@ mod tests {
fn the_column_list_shows_what_a_definition_row_expands_into() {
let mut page = AddTablePageState {
nav: crate::ui::Nav::default(),
shared_profile: "__global".to_string(),
shared_profile: "global".to_string(),
profiles: Vec::new(),
rate_sources: vec!["ecb".to_string()],
draft: posted_form().to_draft(),
@@ -592,7 +592,7 @@ mod tests {
let page = AddTablePageState {
nav: crate::ui::Nav::default(),
shared_profile: "__global".to_string(),
shared_profile: "global".to_string(),
profiles: Vec::new(),
rate_sources: vec!["ecb".to_string()],
draft,

View File

@@ -109,7 +109,7 @@ mod tests {
AddTablePageState {
nav: Nav::default(),
shared_profile: "__global".to_string(),
shared_profile: "global".to_string(),
profiles: vec!["billing".to_string()],
rate_sources: vec!["ecb".to_string()],
draft,

View File

@@ -50,7 +50,7 @@ mod tests {
/// What this deployment's server happens to call the shared profile. The
/// page is handed the name rather than knowing it, so the tests spell it
/// once here.
const SHARED_PROFILE: &str = "__global";
const SHARED_PROFILE: &str = "global";
#[test]
fn dashboard_links_every_admin_action() {
@@ -131,7 +131,7 @@ mod tests {
};
let html = render_workspace(&page);
assert!(html.contains(r#"name="profile" value="__global""#));
assert!(html.contains(r#"name="profile" value="global""#));
assert!(html.contains("shared by every profile"));
// Selecting it marks it, and its empty state names the global scope
// rather than a profile that has no tables.
@@ -209,7 +209,7 @@ mod tests {
let html = render_workspace(&page);
assert!(
html.contains("/admin/tables/delete?profile=__global&table=currencies"),
html.contains("/admin/tables/delete?profile=global&table=currencies"),
"{html}"
);
assert!(html.contains("/admin/tables/new?global=true"));

View File

@@ -258,7 +258,7 @@ mod tests {
/// What this deployment's server happens to call the shared profile. The
/// page is handed the name rather than knowing it.
const SHARED_PROFILE: &str = "__global";
const SHARED_PROFILE: &str = "global";
fn page() -> TableDefinitionPageState {
TableDefinitionPageState {

View File

@@ -66,7 +66,7 @@ pub(crate) mod tests {
/// What this deployment's server happens to call the shared profile; the
/// tables carry it, and nothing here composes it.
const SHARED_PROFILE: &str = "__global";
const SHARED_PROFILE: &str = "global";
pub(crate) fn table(name: &str, global: bool) -> Table {
Table {