restore empty global catalog handling
This commit is contained in:
2
client
2
client
Submodule client updated: 2031656932...1821d1fdd5
@@ -316,10 +316,8 @@ message ProfileTreeResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message GetTableCatalogRequest {
|
message GetTableCatalogRequest {
|
||||||
// Profile whose tables to list, together with the shared tables every
|
// Selected profile. Omit this field to request the global-only scope.
|
||||||
// profile sees. The profile holding the shared tables is named like any
|
optional string profile_name = 1;
|
||||||
// other, and asking for it lists exactly those.
|
|
||||||
string profile_name = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetTableCatalogResponse {
|
message GetTableCatalogResponse {
|
||||||
|
|||||||
Binary file not shown.
@@ -288,11 +288,9 @@ pub mod profile_tree_response {
|
|||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
||||||
pub struct GetTableCatalogRequest {
|
pub struct GetTableCatalogRequest {
|
||||||
/// Profile whose tables to list, together with the shared tables every
|
/// Selected profile. Omit this field to request the global-only scope.
|
||||||
/// profile sees. The profile holding the shared tables is named like any
|
#[prost(string, optional, tag = "1")]
|
||||||
/// other, and asking for it lists exactly those.
|
pub profile_name: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
#[prost(string, tag = "1")]
|
|
||||||
pub profile_name: ::prost::alloc::string::String,
|
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct GetTableCatalogResponse {
|
pub struct GetTableCatalogResponse {
|
||||||
|
|||||||
2
server
2
server
Submodule server updated: 645b45e81b...1a7b8946a2
@@ -18,11 +18,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|||||||
|
|
||||||
- **The shared profile is named by the backend** — `ProfileTreeResponse`
|
- **The shared profile is named by the backend** — `ProfileTreeResponse`
|
||||||
gained `shared_profile_name`, and every page that browses the shared tables
|
gained `shared_profile_name`, and every page that browses the shared tables
|
||||||
now reads the name from there instead of spelling `__global` itself. The
|
now reads the name from there instead of spelling `__global` itself. Catalog
|
||||||
admin panel, the table-definition workspace, the add-table builder and the
|
discovery retains its global-only request, which does not require the shared
|
||||||
transfer pages each pass that name as `GetTableCatalogRequest.profile_name`,
|
profile to have been created yet.
|
||||||
which is no longer optional: the shared profile is asked for by name like
|
|
||||||
any other.
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ pub(crate) async fn load_page(
|
|||||||
let catalog_tables = definitions
|
let catalog_tables = definitions
|
||||||
.get_table_catalog(
|
.get_table_catalog(
|
||||||
authenticated_request(headers, GetTableCatalogRequest {
|
authenticated_request(headers, GetTableCatalogRequest {
|
||||||
profile_name: shared_profile.clone(),
|
profile_name: None,
|
||||||
})
|
})
|
||||||
.map_err(|_| LoadError::Unauthenticated)?,
|
.map_err(|_| LoadError::Unauthenticated)?,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ pub(crate) async fn load_admin_page(
|
|||||||
&definitions
|
&definitions
|
||||||
.get_table_catalog(
|
.get_table_catalog(
|
||||||
authenticated_request(headers, GetTableCatalogRequest {
|
authenticated_request(headers, GetTableCatalogRequest {
|
||||||
profile_name: shared_profile.clone(),
|
profile_name: None,
|
||||||
})
|
})
|
||||||
.map_err(authentication_error)?,
|
.map_err(authentication_error)?,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ pub(crate) async fn load_page(
|
|||||||
let catalog_tables = definitions
|
let catalog_tables = definitions
|
||||||
.get_table_catalog(
|
.get_table_catalog(
|
||||||
authenticated_request(headers, GetTableCatalogRequest {
|
authenticated_request(headers, GetTableCatalogRequest {
|
||||||
profile_name: shared_profile.clone(),
|
profile_name: None,
|
||||||
})
|
})
|
||||||
.map_err(|_| LoadError::Unauthenticated)?,
|
.map_err(|_| LoadError::Unauthenticated)?,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ pub(crate) async fn load_catalog(
|
|||||||
&definitions
|
&definitions
|
||||||
.get_table_catalog(
|
.get_table_catalog(
|
||||||
authenticated_request(headers, GetTableCatalogRequest {
|
authenticated_request(headers, GetTableCatalogRequest {
|
||||||
profile_name: shared_profile.clone(),
|
profile_name: None,
|
||||||
})
|
})
|
||||||
.map_err(|_| LoadError::Unauthenticated)?,
|
.map_err(|_| LoadError::Unauthenticated)?,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user