Skip to content

Commit

Permalink
Rename BNA routes
Browse files Browse the repository at this point in the history
Renames the BNAs routes to Ratings route to reflect to definitions from
the team's glossary.

Signed-off-by: Rémy Greinhofer <[email protected]>
  • Loading branch information
rgreinho committed Aug 31, 2024
1 parent b85d1cc commit 4fc4afc
Show file tree
Hide file tree
Showing 15 changed files with 84 additions and 183 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/deployment-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@ jobs:
run: cd lambdas && cargo lambda build --release
- name: Deploy lambdas
run: |
LAMBDAS="get-bnas
get-bnas-analysis
get-bnas-cities
get-bnas-results
LAMBDAS="get-ratings
get-ratings-analysis
get-ratings-cities
get-ratings-results
get-cities
get-cities-bnas
get-cities-ratings
get-cities-census
get-cities-submissions
get-price-fargate
patch-bnas-analysis
patch-ratings-analysis
patch-cities-submissions
post-bnas
post-bnas-analysis
post-bnas-enqueue
post-ratings
post-ratings-analysis
post-ratings-enqueue
post-cities
post-cities-submissions"
echo $LAMBDAS \
Expand Down
36 changes: 18 additions & 18 deletions lambdas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,32 @@ url = { workspace = true }
uuid = { workspace = true, features = ["v4", "serde"] }

[[bin]]
name = "get-bnas"
path = "src/bnas/get-bnas.rs"
name = "get-ratings"
path = "src/ratings/get-ratings.rs"

[[bin]]
name = "post-bnas"
path = "src/bnas/post-bnas.rs"
name = "post-ratings"
path = "src/ratings/post-ratings.rs"

# [[bin]]
# name = "patch-bnas"
# path = "src/bnas/patch-bnas.rs"

[[bin]]
name = "get-bnas-cities"
path = "src/bnas/get-bnas-cities.rs"
name = "get-ratings-cities"
path = "src/ratings/get-ratings-cities.rs"

[[bin]]
name = "get-bnas-analysis"
path = "src/bnas/get-bnas-analysis.rs"
name = "get-ratings-analysis"
path = "src/ratings/get-ratings-analysis.rs"

[[bin]]
name = "get-cities"
path = "src/cities/get-cities.rs"

[[bin]]
name = "get-cities-bnas"
path = "src/cities/get-cities-bnas.rs"
name = "get-cities-ratings"
path = "src/cities/get-cities-ratings.rs"

[[bin]]
name = "get-cities-census"
Expand All @@ -73,8 +73,8 @@ name = "get-price-fargate"
path = "src/price-fargate/get-price-fargate.rs"

[[bin]]
name = "patch-bnas-analysis"
path = "src/bnas/patch-bnas-analysis.rs"
name = "patch-ratings-analysis"
path = "src/ratings/patch-ratings-analysis.rs"

[[bin]]
name = "patch-cities-submissions"
Expand All @@ -85,16 +85,16 @@ name = "post-cities-submissions"
path = "src/cities/post-cities-submissions.rs"

[[bin]]
name = "post-bnas-analysis"
path = "src/bnas/post-bnas-analysis.rs"
name = "post-ratings-analysis"
path = "src/ratings/post-ratings-analysis.rs"

[[bin]]
name = "post-bnas-enqueue"
path = "src/bnas/post-bnas-enqueue.rs"
name = "post-ratings-enqueue"
path = "src/ratings/post-ratings-enqueue.rs"

[[bin]]
name = "get-bnas-results"
path = "src/bnas/get-bnas-results.rs"
name = "get-ratings-results"
path = "src/ratings/get-ratings-results.rs"

[[bin]]
name = "post-cities"
Expand Down
99 changes: 0 additions & 99 deletions lambdas/src/cities/get-cities-bnas.rs

This file was deleted.

2 changes: 1 addition & 1 deletion lambdas/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub mod bnas;
pub mod cities;
pub mod db;
pub mod link_header;
pub mod ratings;

use bnacore::aws::get_aws_secrets_value;
use effortless::{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use effortless::{
};
use entity::prelude::*;
use lambda_http::{run, service_fn, Body, Error, IntoResponse, Request, Response};
use lambdas::{api_database_connect, bnas::extract_path_parameters, build_paginated_response};
use lambdas::{api_database_connect, build_paginated_response, ratings::extract_path_parameters};
use sea_orm::{EntityTrait, PaginatorTrait};
use serde_json::json;
use tracing::{debug, info};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use dotenv::dotenv;
use effortless::api::entry_not_found;
use entity::{city, summary};
use lambda_http::{run, service_fn, Body, Error, IntoResponse, Request, Response};
use lambdas::{bnas::extract_path_parameters, database_connect};
use lambdas::{database_connect, ratings::extract_path_parameters};
use sea_orm::EntityTrait;
use serde_json::json;
use tracing::info;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ use entity::{
};
use lambda_http::{run, service_fn, Body, Error, IntoResponse, Request, Response};
use lambdas::{
bnas::{
build_paginated_response, database_connect,
ratings::{
extract_path_parameters, extract_query_parameters, BNAComponent, BNAPathParameters,
BNAQueryParameters,
},
build_paginated_response, database_connect,
};
use sea_orm::{
prelude::Uuid, EntityTrait, FromQueryResult, JoinType, PaginatorTrait, QuerySelect,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 4fc4afc

Please sign in to comment.