Skip to content

Commit

Permalink
Removed vis and the profile network
Browse files Browse the repository at this point in the history
This was outdated and not used anyhow
  • Loading branch information
Niklas345 committed Jan 25, 2024
1 parent bdd5c92 commit 5baf17e
Show file tree
Hide file tree
Showing 20 changed files with 7 additions and 599 deletions.
79 changes: 2 additions & 77 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
"react-tagcloud": "2.3.3",
"recharts": "2.7.3",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0",
"ts-comparator": "^1.1.2",
"vis": "^4.21.0"
"redux-thunk": "2.3.0",
"ts-comparator": "^1.1.2"
},
"devDependencies": {
"@types/isomorphic-fetch": "0.0.34",
Expand Down
2 changes: 0 additions & 2 deletions src/Paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export class Paths {
public static readonly ADMIN_CONSULTANTS = CONFIG.APP_PATH + '/admin/home/consultants';
public static readonly ADMIN_TEMPLATES = CONFIG.APP_PATH + '/admin/home/templates';
public static readonly ADMIN_STATISTICS_SKILL = CONFIG.APP_PATH + '/admin/home/statistics/skills';
public static readonly ADMIN_STATISTICS_NETWORK = CONFIG.APP_PATH + '/admin/home/statistics/network';
public static readonly ADMIN_INFO_SKILLTREE = CONFIG.APP_PATH + '/admin/home/info/skilltree';
public static readonly ADMIN_INFO_NAME_ENTITY = CONFIG.APP_PATH + '/admin/home/info/names';

Expand All @@ -24,7 +23,6 @@ export class Paths {
public static readonly USER_PROFILE = CONFIG.APP_PATH + '/app/profile';
public static readonly USER_REPORTS = CONFIG.APP_PATH + '/app/reports';
public static readonly USER_SEARCH = CONFIG.APP_PATH + '/app/search';
public static readonly USER_STATISTICS_NETWORK = CONFIG.APP_PATH + '/app/statistics/network';
public static readonly USER_STATISTICS_CLUSTERINFO = CONFIG.APP_PATH + '/app/statistics/clusterinfo';
public static readonly USER_STATISTICS_SKILLS = CONFIG.APP_PATH + '/app/statistics/skills';

Expand Down
8 changes: 1 addition & 7 deletions src/clients/StatisticsServiceClient.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {PowerHttpClient} from './PowerHttpClient';
import {AxiosRequestConfig} from 'axios';
import {APIConsultantClusterInfo, APINetwork, APIProfileSkillMetric, APISkillUsageMetric} from '../model/statistics/ApiMetrics';
import {APIConsultantClusterInfo, APIProfileSkillMetric, APISkillUsageMetric} from '../model/statistics/ApiMetrics';
import {APIScatterSkill} from '../model/statistics/ScatterSkill';
import {APIConsultant} from '../model/APIProfile';

Expand Down Expand Up @@ -53,12 +53,6 @@ export class StatisticsServiceClient extends PowerHttpClient {
return this.get(url);
};

public getKMedProfileNetwork = (): Promise<APINetwork> => {
const url = this.base() + '/statistics/network/kmed';
this.beginRequest();
return this.get(url);
};

public headStatisticsServiceAvailable = () => {
const url = this.base() + '/statistics/ping';
this.beginRequest();
Expand Down
22 changes: 1 addition & 21 deletions src/model/statistics/ApiMetrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,6 @@ export interface APIProfileSkillMetric {
missing: Array<string>;
}

// == API Network == //

export interface APINode {
id: number;
initials: string;
cluster: number;
matchFactor: number;
}

export interface APIEdge {
node1: number;
node2: number;
strength: number;
}

export interface APINetwork {
nodes: Array<APINode>;
edges: Array<APIEdge>;
}

// == API consultant Info == //

export interface APIAveragedSkill {
Expand All @@ -50,4 +30,4 @@ export interface APIConsultantClusterInfo {
clusterSkills: Array<APIAveragedSkill>;
commonSkills: Array<string>;
recommendations: Array<string>;
}
}
29 changes: 0 additions & 29 deletions src/model/statistics/Network.ts

This file was deleted.

28 changes: 0 additions & 28 deletions src/model/statistics/NetworkEdge.ts

This file was deleted.

33 changes: 0 additions & 33 deletions src/model/statistics/NetworkNode.ts

This file was deleted.

10 changes: 1 addition & 9 deletions src/model/statistics/StatisticsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {doop} from 'doop';
import * as Immutable from 'immutable';
import {SkillUsageMetric} from './SkillUsageMetric';
import {ProfileSkillMetrics} from './ProfileSkillMetrics';
import {Network} from './Network';
import {ConsultantClusterInfo} from './ConsultantClusterInfo';
import {ScatterSkill} from './ScatterSkill';
import {ConsultantInfo} from '../ConsultantInfo';
Expand All @@ -29,11 +28,6 @@ export class StatisticsStore {
return doop<ProfileSkillMetrics, this>();
};

@doop
public get network() {
return doop<Network, this>();
};

/**
* Defines if the service is available or not
* @returns {Doop<boolean, StatisticsStore>}
Expand Down Expand Up @@ -70,7 +64,6 @@ export class StatisticsStore {
private constructor(skillUsages: Immutable.List<SkillUsageMetric>,
relativeSkillUsages: Immutable.List<SkillUsageMetric>,
activeProfileMetric: ProfileSkillMetrics,
network: Network,
available: boolean,
consultantClusterInfo: ConsultantClusterInfo,
scatteredSkills: Immutable.List<ScatterSkill>,
Expand All @@ -80,7 +73,6 @@ export class StatisticsStore {
return this.skillUsages(skillUsages)
.relativeSkillUsages(relativeSkillUsages)
.activeProfileMetric(activeProfileMetric)
.network(network)
.available(available)
.consultantClusterInfo(consultantClusterInfo)
.scatteredSkills(scatteredSkills)
Expand All @@ -89,7 +81,7 @@ export class StatisticsStore {
}

public static createEmpty(): StatisticsStore {
return new StatisticsStore(Immutable.List<SkillUsageMetric>(), Immutable.List<SkillUsageMetric>(), null, null,
return new StatisticsStore(Immutable.List<SkillUsageMetric>(), Immutable.List<SkillUsageMetric>(), null,
false, null, Immutable.List<ScatterSkill>(), Immutable.Map<NameEntity, Immutable.List<ConsultantInfo>>(),
Immutable.Map<string, Immutable.List<ConsultantInfo>>());
}
Expand Down
Loading

0 comments on commit 5baf17e

Please sign in to comment.