File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,7 @@ pub struct CompletedWithWarnings {
66}
77
88impl CompletedWithWarnings {
9- /// Returns a response with success & message.
10- pub fn new ( msg : Vec < String > ) -> Self {
11- Self { warnings : msg }
9+ pub fn new ( warnings : Vec < String > ) -> Self {
10+ Self { warnings }
1211 }
1312}
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ mod reassign;
2020mod restart;
2121mod resume;
2222mod unassign;
23+
2324pub struct DeploymentMutation ;
2425
2526#[ derive( Clone , Debug , Union ) ]
@@ -107,7 +108,7 @@ impl DeploymentMutation {
107108 let mirror = catalog:: Mirror :: primary_only ( ctx. primary_pool ) ;
108109 let count = mirror. assignments ( & node) ?. len ( ) ;
109110 if count == 1 {
110- let warning_msg = format ! ( "warning: this is the only deployment assigned to '{}'. Are you sure it is spelled correctly? " , node. as_str( ) ) ;
111+ let warning_msg = format ! ( "This is the only deployment assigned to '{}'. Please make sure that the node ID is spelled correctly. " , node. as_str( ) ) ;
111112 Ok ( ReassignResponse :: CompletedWithWarnings (
112113 CompletedWithWarnings :: new ( vec ! [ warning_msg] ) ,
113114 ) )
Original file line number Diff line number Diff line change @@ -266,8 +266,6 @@ fn graphql_allows_tracking_restart_deployment_executions() {
266266 assert_eq ! ( resp, expected_resp) ;
267267 } ) ;
268268}
269- <<<<<<< HEAD
270- =======
271269
272270#[ test]
273271fn graphql_can_create_new_subgraph ( ) {
@@ -425,7 +423,7 @@ fn graphql_can_unassign_deployments() {
425423
426424 let subgraph_node_id = send_graphql_request (
427425 json ! ( {
428- "query" : r#"query Deployment {
426+ "query" : r#"{
429427 deployment {
430428 info(deployment: { hash: "subgraph_1" }) {
431429 nodeId
@@ -586,4 +584,3 @@ fn graphql_warns_reassign_on_wrong_node_id() {
586584 assert_eq ! ( reassign, expected_resp) ;
587585 } ) ;
588586}
589- >>>>>>> 5 ab559557 ( server: graphman graphql api tests added for unassign/reassign)
You can’t perform that action at this time.
0 commit comments