Skip to content

Commit

Permalink
Pass unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
gudaoxuri committed Apr 11, 2024
1 parent 575fc86 commit 1eb60ea
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 0 additions & 2 deletions backend/basic/src/rbum/dto/rbum_item_attr_dto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ pub struct RbumItemAttrSummaryResp {
pub id: String,
pub value: String,
pub rel_rbum_item_id: String,
pub rel_rbum_item_name: String,
pub rel_rbum_kind_attr_id: String,
pub rel_rbum_kind_attr_name: String,

Expand All @@ -58,7 +57,6 @@ pub struct RbumItemAttrDetailResp {
pub id: String,
pub value: String,
pub rel_rbum_item_id: String,
pub rel_rbum_item_name: String,
pub rel_rbum_kind_attr_id: String,
pub rel_rbum_kind_attr_name: String,

Expand Down
5 changes: 0 additions & 5 deletions backend/basic/src/rbum/serv/rbum_item_serv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1100,13 +1100,8 @@ impl RbumCrudOperation<rbum_item_attr::ActiveModel, RbumItemAttrAddReq, RbumItem
(rbum_item_attr::Entity, rbum_item_attr::Column::CreateTime),
(rbum_item_attr::Entity, rbum_item_attr::Column::UpdateTime),
])
// .expr_as(Expr::col((rbum_item::Entity, rbum_item::Column::Name)), Alias::new("rel_rbum_item_name"))
.expr_as(Expr::col((rbum_kind_attr::Entity, rbum_kind_attr::Column::Name)), Alias::new("rel_rbum_kind_attr_name"))
.from(rbum_item_attr::Entity)
// .inner_join(
// rbum_item::Entity,
// Expr::col((rbum_item::Entity, rbum_item::Column::Id)).equals((rbum_item_attr::Entity, rbum_item_attr::Column::RelRbumItemId)),
// )
.inner_join(
rbum_kind_attr::Entity,
Expr::col((rbum_kind_attr::Entity, rbum_kind_attr::Column::Id)).equals((rbum_item_attr::Entity, rbum_item_attr::Column::RelRbumKindAttrId)),
Expand Down
4 changes: 3 additions & 1 deletion backend/basic/src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
//! BIOS中的SPI用于提供面向不同场景的能力。这些能力抽象成标准化的服务接口,供其他模块调用。基于这些标准化的服务接口,可扩展对接不同的后端实现。
//!
//! # Example of invoke flow: full-text search service / 调用流程举例:全文搜索服务:
//!
//!
//! ```text
//! +------------------+
//! +-----------+ +----------+ +-+backend-postgresql|
//! | spi-basic | |spi-search+----+ +------------------+--+
Expand All @@ -36,6 +37,7 @@
//! | |
//! | | 10. Response data
//! | |
//! ```
//!
//! # Key design:
//! 1. Reuse RBUM's ability
Expand Down
1 change: 0 additions & 1 deletion backend/basic/tests/test_rbum_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ async fn test_rbum_item_attr(context: &TardisContext) -> TardisResult<()> {
assert_eq!(rbum.id, item_attr_id);
assert_eq!(rbum.value, "数据1");
assert_eq!(rbum.rel_rbum_item_id, item_id.to_string());
assert_eq!(rbum.rel_rbum_item_name, "实例1".to_string());
assert_eq!(rbum.rel_rbum_kind_attr_id, kind_attr_id.to_string());
assert_eq!(rbum.rel_rbum_kind_attr_name, "db_type".to_string());

Expand Down

0 comments on commit 1eb60ea

Please sign in to comment.