Skip to content

Commit f1200d7

Browse files
committed
Revert "[teams 2/5] client-api: Add parent parameter to publish endpoint (#3519)"
This reverts commit 99882ad.
1 parent b3e65ae commit f1200d7

3 files changed

Lines changed: 0 additions & 7 deletions

File tree

crates/client-api/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ pub struct DatabaseDef {
163163
pub num_replicas: Option<NonZeroU8>,
164164
/// The host type of the supplied program.
165165
pub host_type: HostType,
166-
pub parent: Option<Identity>,
167166
}
168167

169168
/// Parameters for resetting a database via [`ControlStateDelegate::reset_database`].

crates/client-api/src/routes/database.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -681,8 +681,6 @@ pub struct PublishDatabaseQueryParams {
681681
policy: MigrationPolicy,
682682
#[serde(default)]
683683
host_type: HostType,
684-
#[allow(unused)] // ignore for now
685-
parent: Option<NameOrIdentity>,
686684
}
687685

688686
pub async fn publish<S: NodeDelegate + ControlStateDelegate>(
@@ -694,7 +692,6 @@ pub async fn publish<S: NodeDelegate + ControlStateDelegate>(
694692
token,
695693
policy,
696694
host_type,
697-
parent: _, // ignore for now
698695
}): Query<PublishDatabaseQueryParams>,
699696
Extension(auth): Extension<SpacetimeAuth>,
700697
program_bytes: Bytes,
@@ -765,7 +762,6 @@ pub async fn publish<S: NodeDelegate + ControlStateDelegate>(
765762
program_bytes,
766763
num_replicas,
767764
host_type,
768-
parent: None,
769765
},
770766
schema_migration_policy,
771767
)
@@ -918,7 +914,6 @@ pub async fn pre_publish<S: NodeDelegate + ControlStateDelegate>(
918914
program_bytes,
919915
num_replicas: None,
920916
host_type,
921-
parent: None,
922917
},
923918
style,
924919
)

crates/testing/src/modules.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ impl CompiledModule {
210210
program_bytes: self.program_bytes(),
211211
num_replicas: None,
212212
host_type: self.host_type,
213-
parent: None,
214213
},
215214
MigrationPolicy::Compatible,
216215
)

0 commit comments

Comments
 (0)