Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Soldier timeline #172

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Soldier timeline #172

wants to merge 23 commits into from

Conversation

RahulSherikar
Copy link
Collaborator

No description provided.

@RahulSherikar RahulSherikar changed the title Soldier timeline code Soldier timeline Jan 2, 2020
@codecov-io
Copy link

codecov-io commented Jan 2, 2020

Codecov Report

Merging #172 into master will increase coverage by 1.39%.
The diff coverage is 56.04%.

Impacted file tree graph

@@             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
Impacted Files Coverage Δ Complexity Δ
...main/java/upb/ida/provider/VennDiagramHandler.java 6.66% <0%> (-1.03%) 1 <0> (ø)
.../main/java/upb/ida/venndiagram/VennDataFilter.java 0% <0%> (ø) 0 <0> (?)
.../main/java/upb/ida/provider/GeoDiagramHandler.java 3.33% <0%> (-0.12%) 1 <0> (ø)
...-ws/src/main/java/upb/ida/constant/IDALiteral.java 100% <100%> (ø) 1 <1> (?)
...-ws/src/main/java/upb/ida/provider/FdgHandler.java 60% <100%> (-2.5%) 2 <0> (ø)
...-ws/src/main/java/upb/ida/service/DataService.java 16.66% <16.66%> (+4.16%) 1 <1> (ø) ⬇️
.../main/java/upb/ida/provider/SSBDiagramHandler.java 5.66% <4.25%> (+0.66%) 1 <0> (ø) ⬇️
...src/main/java/upb/ida/provider/LoadDsMetadata.java 61.11% <61.11%> (-8.12%) 2 <2> (ø)
...a-ws/src/main/java/upb/ida/dao/DataRepository.java 61.22% <61.22%> (ø) 36 <36> (?)
...ws/src/main/java/upb/ida/venndiagram/VennUtil.java 8.33% <8.33%> (ø) 1 <1> (?)
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 484a7d3...86ef5f1. Read the comment docs.

Copy link
Member

@nikit-srivastava nikit-srivastava left a 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" +
Copy link
Member

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) {
Copy link
Member

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,
Copy link
Member

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 {
Copy link
Member

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);
}
}

Copy link
Member

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

Comment on lines +349 to +355
/*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());*/
Copy link
Member

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;
Copy link
Member

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;
Copy link
Member

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"));
Copy link
Member

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"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove sysout statements

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants