legacy removed
This commit is contained in:
@@ -20,8 +20,8 @@ use crate::{
|
||||
definitions::{
|
||||
common::Empty,
|
||||
table_definition::{
|
||||
GetColumnAliasRenameHistoryRequest, GetProfileDetailsRequest, GetTableCatalogRequest,
|
||||
MoneyRounding, table_definition_client::TableDefinitionClient,
|
||||
AliasChangeKind, GetAliasChangeHistoryRequest, GetProfileDetailsRequest,
|
||||
GetTableCatalogRequest, MoneyRounding, table_definition_client::TableDefinitionClient,
|
||||
},
|
||||
},
|
||||
pages::table_scope,
|
||||
@@ -249,12 +249,16 @@ pub(crate) async fn load_page(
|
||||
// The history is per profile; a selected table narrows it to that table.
|
||||
let history = match inputs.selection.has_profile() {
|
||||
true => {
|
||||
let request = GetColumnAliasRenameHistoryRequest {
|
||||
let request = GetAliasChangeHistoryRequest {
|
||||
profile_name: inputs.selection.profile.clone(),
|
||||
table_definition_id: detail.as_ref().map(|detail| detail.id),
|
||||
column_id: None,
|
||||
alias_kind: AliasChangeKind::Column as i32,
|
||||
option_value: None,
|
||||
limit: 0,
|
||||
};
|
||||
definitions
|
||||
.get_column_alias_rename_history(
|
||||
.get_alias_change_history(
|
||||
authenticated_request(headers, request)
|
||||
.map_err(|_| LoadError::Unauthenticated)?,
|
||||
)
|
||||
@@ -265,9 +269,9 @@ pub(crate) async fn load_page(
|
||||
.into_iter()
|
||||
.map(|entry| RenameEntry {
|
||||
table_name: entry.table_name,
|
||||
old_column_name: entry.old_column_name,
|
||||
new_column_name: entry.new_column_name,
|
||||
created_at: entry.created_at,
|
||||
old_column_name: entry.old_alias.unwrap_or_default(),
|
||||
new_column_name: entry.new_alias.unwrap_or_default(),
|
||||
created_at: entry.changed_at,
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user