Skip to content

Commit eea3b83

Browse files
committed
Remove the API stack (#1095)
1 parent 1b2230c commit eea3b83

File tree

5 files changed

+2
-102
lines changed

5 files changed

+2
-102
lines changed

tembo-stacks/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tembo-stacks/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "tembo-stacks"
33
description = "Tembo Stacks for Postgres"
4-
version = "0.23.6"
4+
version = "0.23.7"
55
authors = ["tembo.io"]
66
edition = "2021"
77
license = "Apache-2.0"

tembo-stacks/src/stacks/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ use lazy_static::lazy_static;
88
lazy_static! {
99
pub static ref ANALYTICS: Stack = serde_yaml::from_str(include_str!("specs/analytics.yaml"))
1010
.expect("analytics.yaml not found");
11-
pub static ref API: Stack =
12-
serde_yaml::from_str(include_str!("specs/api.yaml")).expect("api.yaml not found");
1311
pub static ref DATAWAREHOUSE: Stack =
1412
serde_yaml::from_str(include_str!("specs/data_warehouse.yaml"))
1513
.expect("data_warehouse.yaml not found");
@@ -39,7 +37,6 @@ lazy_static! {
3937
pub fn get_stack(entity: StackType) -> Stack {
4038
match entity {
4139
StackType::Analytics => ANALYTICS.clone(),
42-
StackType::API => API.clone(),
4340
StackType::DataWarehouse => DATAWAREHOUSE.clone(),
4441
StackType::Geospatial => GEOSPATIAL.clone(),
4542
StackType::MachineLearning => ML.clone(),

tembo-stacks/src/stacks/specs/api.yaml

Lines changed: 0 additions & 91 deletions
This file was deleted.

tembo-stacks/src/stacks/types.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ use utoipa::ToSchema;
3030
)]
3131
pub enum StackType {
3232
Analytics,
33-
API,
3433
DataWarehouse,
3534
Geospatial,
3635
MachineLearning,
@@ -51,7 +50,6 @@ impl std::str::FromStr for StackType {
5150
fn from_str(value: &str) -> Result<Self, Self::Err> {
5251
match value {
5352
"Analytics" => Ok(StackType::Analytics),
54-
"API" => Ok(StackType::API),
5553
"DataWarehouse" => Ok(StackType::DataWarehouse),
5654
"Geospatial" => Ok(StackType::Geospatial),
5755
"MachineLearning" => Ok(StackType::MachineLearning),
@@ -72,7 +70,6 @@ impl StackType {
7270
pub fn as_str(&self) -> &str {
7371
match self {
7472
StackType::Analytics => "Analytics",
75-
StackType::API => "API",
7673
StackType::DataWarehouse => "DataWarehouse",
7774
StackType::Geospatial => "Geospatial",
7875
StackType::MachineLearning => "MachineLearning",
@@ -299,9 +296,6 @@ mod tests {
299296
StackType::Analytics => {
300297
get_stack(StackType::Analytics);
301298
}
302-
StackType::API => {
303-
get_stack(StackType::API);
304-
}
305299
StackType::DataWarehouse => {
306300
get_stack(StackType::DataWarehouse);
307301
}

0 commit comments

Comments
 (0)