Skip to content

Commit

Permalink
remove search stack (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuckHend authored Sep 25, 2024
1 parent 5058baa commit 4638bb3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 78 deletions.
3 changes: 0 additions & 3 deletions tembo-stacks/src/stacks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ use crate::stacks::types::{Stack, StackType};
use lazy_static::lazy_static;

lazy_static! {
pub static ref SEARCH: Stack =
serde_yaml::from_str(include_str!("specs/search.yaml")).expect("search.yaml not found");
pub static ref ANALYTICS: Stack = serde_yaml::from_str(include_str!("specs/analytics.yaml"))
.expect("analytics.yaml not found");
pub static ref API: Stack =
Expand Down Expand Up @@ -42,7 +40,6 @@ lazy_static! {

pub fn get_stack(entity: StackType) -> Stack {
match entity {
StackType::Search => SEARCH.clone(),
StackType::Analytics => ANALYTICS.clone(),
StackType::API => API.clone(),
StackType::DataWarehouse => DATAWAREHOUSE.clone(),
Expand Down
69 changes: 0 additions & 69 deletions tembo-stacks/src/stacks/specs/search.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions tembo-stacks/src/stacks/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ use utoipa::ToSchema;
strum_macros::Display,
)]
pub enum StackType {
Search,
Analytics,
API,
DataWarehouse,
Expand All @@ -51,7 +50,6 @@ impl std::str::FromStr for StackType {

fn from_str(value: &str) -> Result<Self, Self::Err> {
match value {
"Search" => Ok(StackType::Search),
"Analytics" => Ok(StackType::Analytics),
"API" => Ok(StackType::API),
"DataWarehouse" => Ok(StackType::DataWarehouse),
Expand All @@ -74,7 +72,6 @@ impl std::str::FromStr for StackType {
impl StackType {
pub fn as_str(&self) -> &str {
match self {
StackType::Search => "Search",
StackType::Analytics => "Analytics",
StackType::API => "API",
StackType::DataWarehouse => "DataWarehouse",
Expand Down Expand Up @@ -300,9 +297,6 @@ mod tests {
fn test_all_stack_deserialization() {
for stack in StackType::iter() {
match stack {
StackType::Search => {
get_stack(StackType::Search);
}
StackType::Analytics => {
get_stack(StackType::Analytics);
}
Expand Down

0 comments on commit 4638bb3

Please sign in to comment.