-
Notifications
You must be signed in to change notification settings - Fork 4
Soldier timeline #172
base: master
Are you sure you want to change the base?
Soldier timeline #172
Conversation
Codecov Report
@@ Coverage Diff @@
## master #172 +/- ##
============================================
+ Coverage 48.35% 49.75% +1.39%
- Complexity 202 233 +31
============================================
Files 53 55 +2
Lines 1518 1807 +289
Branches 175 237 +62
============================================
+ Hits 734 899 +165
- Misses 735 823 +88
- Partials 49 85 +36
Continue to review full report at Codecov.
|
09f259b
to
faf175d
Compare
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.
Please resolve these minor changes
|
||
@Component | ||
public class SoldierTimeLine { | ||
private final String PREFIXES = "PREFIX datagraph: <http://127.0.0.1:3030/ssfuehrer/data/data>\n" + |
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.
Check for prefixes in the constants file, add if not there already. Also, use StringBuilder instead.
this.allDatesOfDecoration.push(key) | ||
} | ||
|
||
for (const key in this.soldierData.dates) { |
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.
Duplicate iteration
], | ||
imports: [ | ||
BrowserModule, | ||
BrowserAnimationsModule, | ||
FormsModule, | ||
ReactiveFormsModule, |
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.
I don't think this component is needed
import java.util.*; | ||
|
||
@Component | ||
public class SoldierTimeLine { |
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.
Missing comments (javadocs)
soldierDataMap.put("regimentInfo__" + j, tempStringVsStringMap); | ||
} | ||
} | ||
|
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.
Method level comments are missing
/*JSONObject childObj = new JSONObject(); | ||
JSONArray childLst = new JSONArray(); | ||
for (String k : childRef.keySet()) { | ||
childObj.put(k, childRef.get(k)); | ||
} | ||
childLst.add(childObj); | ||
map.put(key, childLst.toString());*/ |
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.
remove commented code
|
||
|
||
} | ||
package upb.ida.provider; |
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.
try resolving whitespace issue. It is hard to track changes if everything shows as changed
package upb.ida.rest; |
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.
try resolving whitespace issue
@Test | ||
public void sendmessagetestPos() throws Exception { | ||
ResponseBean responseBean; | ||
responseBean = mrc.sendmessage("I would like a force directed graph visualization for the current table", "1", "citydistancetest.csv", "city"); | ||
responseBean = mrc.sendmessage("Source node is city1", "1", "citydistancetest.csv", "city"); | ||
responseBean = mrc.sendmessage("Target node is city2", "1", "citydistancetest.csv", "city"); | ||
responseBean = mrc.sendmessage("Strength between the nodes should be represented by distance", "1", "citydistancetest.csv", "city"); | ||
|
||
|
||
System.out.println(responseBean.getPayload().get("fdgData")); |
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.
nothing should be printed to console
@Test | ||
public void sendmessagetestExt() throws Exception { | ||
ResponseBean responseBean; | ||
responseBean = mrc.sendmessage("I would like a force directed graph visualization for the current table", "1", "citydistancetest.csv", "city"); | ||
responseBean = mrc.sendmessage("Source node is city1", "1", "citydistancetest.csv", "city"); | ||
responseBean = mrc.sendmessage("Target node is city2", "1", "citydistancetest.csv", "city"); | ||
responseBean = mrc.sendmessage("Strength between the nodes should be represented by distance", "1", "citydistancetest.csv", "city"); | ||
|
||
|
||
System.out.println(responseBean.getPayload().get("fdgData")); |
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.
Please remove sysout statements
No description provided.