Skip to content

Commit 722be9d

Browse files
committed
pr feedback
Signed-off-by: Daniel Gerlag <daniel@gerlag.ca>
1 parent b134b9b commit 722be9d

4 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/api/models/queries/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn default_auto_start() -> bool {
6969
}
7070

7171
fn default_query_language() -> QueryLanguage {
72-
QueryLanguage::default()
72+
QueryLanguage::GQL
7373
}
7474

7575
fn default_enable_bootstrap() -> bool {

src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ async fn main() -> Result<()> {
138138
Some(Commands::Doctor { all }) => run_doctor(all),
139139
Some(Commands::Init { output, force }) => init::run_init(output, force),
140140
Some(Commands::Plugin { action }) => {
141-
plugin::run_plugin_command(action, cli.config, cli.plugins_dir, cli.verify_plugins)
142-
.await
141+
plugin::run_plugin_command(action, cli.config, cli.plugins_dir).await
143142
}
144143
None => {
145144
// Default behavior: run the server (backward compatible)

src/plugin/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ pub async fn run_plugin_command(
108108
action: PluginAction,
109109
config_path: PathBuf,
110110
plugins_dir_override: Option<PathBuf>,
111-
_verify_plugins: bool,
112111
) -> Result<()> {
113112
// Initialize logging for CLI commands — suppress noisy oci_client warnings
114113
if std::env::var("RUST_LOG").is_err() {

tests/default_query_language_test.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ use drasi_server::api::mappings::{ConfigMapper, DtoMapper, QueryConfigMapper};
2424
use drasi_server::api::models::{QueryConfigDto, SourceSubscriptionConfigDto};
2525

2626
#[test]
27-
fn test_default_query_language_is_cypher() {
28-
// Test YAML without queryLanguage field deserializes with Cypher default
27+
fn test_default_query_language_is_gql() {
28+
// Test YAML without queryLanguage field deserializes with GQL default
2929
// This tests the Serde default mechanism
3030
let yaml = r#"
3131
id: test-query
@@ -45,8 +45,8 @@ sources:
4545

4646
assert_eq!(
4747
config.query_language,
48-
QueryLanguage::Cypher,
49-
"Default query language should be Cypher when not specified in YAML"
48+
QueryLanguage::GQL,
49+
"Default query language should be GQL when not specified in YAML"
5050
);
5151
}
5252

0 commit comments

Comments
 (0)