• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

doitsu2014 / my-cms / 14187034714

01 Apr 2025 04:12AM UTC coverage: 59.597% (+20.5%) from 39.058%
14187034714

push

github

web-flow
Feature/support multi language (#19)

* Enhance entity structure: add category and post translations, update migration dependencies, and improve README guidelines

* Add support for category translations: update create and modify handlers, requests, and tests

add TODO

* Add category translations support: update create, modify, and read handlers, and adjust request structures

* Refactor category translation requests: remove slug field and update handlers to set category ID for translations

* Add support for post translations: update create and modify requests, handlers, and models

* Update CI configuration and scripts for improved coverage reporting and toolchain management

* Update coverage configuration and scripts for improved reporting and toolchain management

* Update CI and coverage configurations for improved reporting and ignore patterns

* Update CI configuration and coverage scripts for improved reporting and cleanup

* Remove unused coverage step from CI configuration

* Update CI configuration to use fixed lcov report paths for coverage uploads

197 of 396 new or added lines in 19 files covered. (49.75%)

71 existing lines in 11 files now uncovered.

975 of 1636 relevant lines covered (59.6%)

26.2 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/application_core/src/graphql/query_root.rs
1
use crate::entities::*;
2
use async_graphql::dynamic::*;
3
use sea_orm::DatabaseConnection;
4
use seaography::{Builder, BuilderContext};
5

6
lazy_static::lazy_static! {
7
    static ref CONTEXT : BuilderContext = {
8
        let context = BuilderContext::default();
9
        BuilderContext {
10
            ..context
11
        }
12
    };
13
}
14

15
pub fn schema(
×
UNCOV
16
    database: DatabaseConnection,
×
UNCOV
17
    depth: Option<usize>,
×
UNCOV
18
    complexity: Option<usize>,
×
UNCOV
19
    is_mutation_supported: bool,
×
UNCOV
20
) -> Result<Schema, SchemaError> {
×
21
    let mut builder = Builder::new(&CONTEXT, database.clone());
×
NEW
22
    seaography::register_entities!(builder, [categories, category_tags, posts, post_tags, tags, category_translations, post_translations]);
×
23
    builder.register_enumeration::<crate::entities::sea_orm_active_enums::CategoryType>();
×
24
    if !is_mutation_supported {
×
25
        builder.mutations = vec![];
×
UNCOV
26
    }
×
27
    let schema = builder.schema_builder();
×
28
    let schema = if let Some(depth) = depth {
×
29
        schema.limit_depth(depth)
×
30
    } else {
31
        schema
×
32
    };
33
    let schema = if let Some(complexity) = complexity {
×
34
        schema.limit_complexity(complexity)
×
35
    } else {
36
        schema
×
37
    };
38
    schema.data(database).finish()
×
39
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc