-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add graph name check in gremlin and rest config #854
Conversation
Codecov Report
@@ Coverage Diff @@
## master #854 +/- ##
============================================
+ Coverage 70.73% 71.81% +1.08%
- Complexity 4327 4388 +61
============================================
Files 286 286
Lines 21073 21090 +17
Branches 2963 2967 +4
============================================
+ Hits 14906 15146 +240
+ Misses 4686 4453 -233
- Partials 1481 1491 +10 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems commit message need modify, nothing else
fixed: #850 Change-Id: I5c4c82c784aebeb0bfe910107d7d4e19abc62d7c
@@ -57,6 +60,7 @@ | |||
exceptions.put("InvalidQueryException", "unconfigured table"); | |||
} | |||
|
|||
@SuppressWarnings("unchecked") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to line 90
@@ -83,7 +87,15 @@ public static void main(String[] args) | |||
"Must contain at least one graph"); | |||
|
|||
for (ConfigurationNode graphName : graphNames) { | |||
String name = ((Map.Entry<String, Object>) | |||
graphName.getReference()).getKey(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we call graphName.getName()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
graphName.getName() returns 'graph' due to it's sub node of 'graphs'
" valid graph name is up to 48 alpha-numeric " + | ||
"characters and underscores and only letters are " + | ||
"supported as first letter. " + | ||
"Note: letter is case insensitive", name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems better to add a method checkGraphName()
fixed: #850
Change-Id: I5c4c82c784aebeb0bfe910107d7d4e19abc62d7c