From 9ebe038130bcb200a13194a1fa8c09d384ff4a13 Mon Sep 17 00:00:00 2001 From: Priec Date: Wed, 12 Aug 2026 20:45:25 +0200 Subject: [PATCH] account_id is now being aliased cos its fk --- client | 2 +- common/proto/table_structure.proto | 3 +++ common/src/proto/descriptor.bin | Bin 167665 -> 167822 bytes common/src/proto/komp_ac.table_structure.rs | 3 +++ server | 2 +- .../pages/admin/table_definition/loader.rs | 3 +++ 6 files changed, 11 insertions(+), 2 deletions(-) diff --git a/client b/client index 1d7d88e4..d8cbdbfc 160000 --- a/client +++ b/client @@ -1 +1 @@ -Subproject commit 1d7d88e4c6640c3172afd45be18a1f1cea51c584 +Subproject commit d8cbdbfcf180bd769265c82b458658691271a1b4 diff --git a/common/proto/table_structure.proto b/common/proto/table_structure.proto index df653545..d2da235f 100644 --- a/common/proto/table_structure.proto +++ b/common/proto/table_structure.proto @@ -84,4 +84,7 @@ message TableColumn { // Logical source column name, empty for ordinary and system columns. string generated_from = 8; + + // True when clients may offer this column in an alias rename picker. + bool renameable = 9; } diff --git a/common/src/proto/descriptor.bin b/common/src/proto/descriptor.bin index 358dde94b81a6be45195e52aced2d8e476c71835..2505535c28a1c7e8d7aabf8809dba531754268cf 100644 GIT binary patch delta 163 zcmex3m#c3+SHl*@>?cgC)RyNyVPs<5us!b?qafpS9&bi|K~4om4UQnLqSU;^+|P8fdWiyTu>e(kjE|v<1qtyBBDub1x5KK`NmvZCNOe|O*a%`65B5Jo$>Z`0F$04 A=>Px# delta 62 zcmV-E0Kxx`p9=Av3V^f$YvclrC8urV0RjP#w{GSE5doK<=K+@q+8qi85(EJNR<}Rs U0iy^3R=4Bu0WSu(kM{xpm-@OGSpWb4 diff --git a/common/src/proto/komp_ac.table_structure.rs b/common/src/proto/komp_ac.table_structure.rs index 6f49055c..8bd1e790 100644 --- a/common/src/proto/komp_ac.table_structure.rs +++ b/common/src/proto/komp_ac.table_structure.rs @@ -67,6 +67,9 @@ pub struct TableColumn { /// Logical source column name, empty for ordinary and system columns. #[prost(string, tag = "8")] pub generated_from: ::prost::alloc::string::String, + /// True when clients may offer this column in an alias rename picker. + #[prost(bool, tag = "9")] + pub renameable: bool, } /// Generated client implementations. pub mod table_structure_service_client { diff --git a/server b/server index da8681a1..94bf8fb2 160000 --- a/server +++ b/server @@ -1 +1 @@ -Subproject commit da8681a1c2df5c254ee9f6f1dc2c1f944e171185 +Subproject commit 94bf8fb25b8c8b556abb903c7ea15c5eae515b1d diff --git a/web/src/pages/admin/table_definition/loader.rs b/web/src/pages/admin/table_definition/loader.rs index 61cacc26..ebe3ba37 100644 --- a/web/src/pages/admin/table_definition/loader.rs +++ b/web/src/pages/admin/table_definition/loader.rs @@ -177,6 +177,9 @@ pub(crate) async fn load_page( generated_from: behavior .map(|behavior| behavior.generated_from.clone()) .unwrap_or_default(), + // Renaming changes shared table metadata, so an + // incomplete server capability response does + // not grant permission by omission. renameable: behavior.is_some_and(|behavior| behavior.renameable), } })