You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spot.apache.org by ev...@apache.org on 2017/03/29 16:51:30 UTC
[06/50] [abbrv] incubator-spot git commit: Flow GraphQL fixes
Flow GraphQL fixes
Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/6c1f3001
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/6c1f3001
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/6c1f3001
Branch: refs/heads/SPOT-35_graphql_api
Commit: 6c1f300165429af9f7434fd0b8a0e3d41d980455
Parents: f37bb40
Author: Diego Ortiz <di...@intel.com>
Authored: Mon Mar 6 10:53:59 2017 -0600
Committer: Diego Ortiz Huerta <di...@intel.com>
Committed: Wed Mar 15 11:49:47 2017 -0700
----------------------------------------------------------------------
spot-oa/api/graphql/flow/mutation.py | 2 +-
spot-oa/api/graphql/flow/query.py | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/6c1f3001/spot-oa/api/graphql/flow/mutation.py
----------------------------------------------------------------------
diff --git a/spot-oa/api/graphql/flow/mutation.py b/spot-oa/api/graphql/flow/mutation.py
index ce016d2..d4f5d7f 100644
--- a/spot-oa/api/graphql/flow/mutation.py
+++ b/spot-oa/api/graphql/flow/mutation.py
@@ -149,7 +149,7 @@ def _create_storyboard(args):
result = Flow.create_storyboard(date=_date, ip=ip, title=title, text=text, expanded_search=threat_details, top_results=first)
- return {'sucess': result}
+ return {'success': result}
MutationType = GraphQLObjectType(
name='NetflowMutationType',
http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/6c1f3001/spot-oa/api/graphql/flow/query.py
----------------------------------------------------------------------
diff --git a/spot-oa/api/graphql/flow/query.py b/spot-oa/api/graphql/flow/query.py
index 91395ee..138ee98 100644
--- a/spot-oa/api/graphql/flow/query.py
+++ b/spot-oa/api/graphql/flow/query.py
@@ -624,8 +624,7 @@ QueryType = GraphQLObjectType(
description='End date'
)
},
- resolver=lambda root, args, *
- _: Flow.ingest_summary(start_date=args.get('startDate'), end_date=args.get('endDate'))
+ resolver=lambda root, args, *_: Flow.ingest_summary(start_date=args.get('startDate'), end_date=args.get('endDate'))
)
}
)