UPDATE user
diff --git a/web/src/main/webapp/features/configuration/alarm/alarmGroupMember.html b/web/src/main/webapp/features/configuration/alarm/alarmGroupMember.html
index b7486dd6e..6581ffa0f 100644
--- a/web/src/main/webapp/features/configuration/alarm/alarmGroupMember.html
+++ b/web/src/main/webapp/features/configuration/alarm/alarmGroupMember.html
@@ -2,7 +2,7 @@
diff --git a/web/src/main/webapp/features/configuration/configuration.controller.js b/web/src/main/webapp/features/configuration/configuration.controller.js
index 773ca7f61..e9d7da093 100644
--- a/web/src/main/webapp/features/configuration/configuration.controller.js
+++ b/web/src/main/webapp/features/configuration/configuration.controller.js
@@ -10,16 +10,15 @@
pinpointApp.constant('ConfigurationConfig', {
menu: {
GENERAL: "general",
- ALARM: "alarm"
+ ALARM: "alarm",
+ HELP: "help",
}
});
pinpointApp.controller('ConfigurationCtrl', [ '$scope','$element', 'ConfigurationConfig',
function ($scope, $element, $constant) {
- //@TODO
- //통계 추가할 것.
- //$at($at.FILTEREDMAP_PAGE);
-
+
+ var $elBody = $element.find(".modal-body");
$scope.descriptionOfCurrentTab = "Set your option";
$scope.currentTab = $constant.menu.GENERAL;
@@ -44,14 +43,21 @@
switch( tab ) {
case $constant.menu.GENERAL:
$at( $at.MAIN, $at.CLK_GENERAL );
+ $elBody.css("background-color", "#e9eaed");
$scope.descriptionOfCurrentTab = "Set your option";
$scope.$broadcast( "general.configuration.show");
break;
case $constant.menu.ALARM:
$at( $at.MAIN, $at.CLK_ALARM );
+ $elBody.css("background-color", "#e9eaed");
$scope.descriptionOfCurrentTab = "Set your alarm rules";
$scope.$broadcast( "alarmUserGroup.configuration.show");
break;
+ case $constant.menu.HELP:
+ $at( $at.MAIN, $at.CLK_HELP );
+ $elBody.css("background-color", "#FFF");
+ $scope.descriptionOfCurrentTab = "";
+ break;
}
}
$scope.$on("configuration.show", function() {
diff --git a/web/src/main/webapp/features/configuration/help/help.controller.js b/web/src/main/webapp/features/configuration/help/help.controller.js
new file mode 100644
index 000000000..cfb41be4f
--- /dev/null
+++ b/web/src/main/webapp/features/configuration/help/help.controller.js
@@ -0,0 +1,29 @@
+(function($) {
+ 'use strict';
+ /**
+ * (en)HelpCtrl
+ * @ko HelpCtrl
+ * @group Controller
+ * @name HelpCtrl
+ * @class
+ */
+ pinpointApp.controller('HelpCtrl', [ '$scope','$element',
+ function ($scope, $element) {
+ $scope.enHelpList = [
+ { "title": "Quick start guide", "link": "https://github.com/naver/pinpoint/blob/master/quickstart/README.md" },
+ { "title": "Technical Overview of Pinpoint", "link": "https://github.com/naver/pinpoint/wiki/Technical-Overview-Of-Pinpoint" },
+ { "title": "Using Pinpont with Docker", "link": "http://yous.be/2015/05/05/using-pinpoint-with-docker/" },
+ { "title": "Notes on Jetty Plugin for Pinpoint ", "link": "https://github.com/cijung/Docs/blob/master/JettyPluginNotes.md" }
+ ];
+ $scope.koHelpList = [
+ { "title": "Pinpoint 개발자가 작성한 Pinpoint 기술문서", "link": "http://helloworld.naver.com/helloworld/1194202" },
+ { "title": "소개 및 설치 가이드", "link": "http://dev2.prompt.co.kr/33" },
+ { "title": "Pinpoint 사용 경험", "link": "http://www.barney.pe.kr/blog/category/development/page/2/" },
+ { "title": "설치 가이드 동영상 강좌 1", "link": "https://www.youtube.com/watch?v=hrvKaEaDEGs" },
+ { "title": "설치 가이드 동영상 강좌 2", "link": "https://www.youtube.com/watch?v=fliKPGHGXK4" },
+ { "title": "AWS Ubuntu 14.04 설치 가이드 ", "link": "http://lky1001.tistory.com/132" }
+ ];
+ }
+ ]);
+})(jQuery);
+
\ No newline at end of file
diff --git a/web/src/main/webapp/index.html b/web/src/main/webapp/index.html
index a72b84e84..f40a6ce40 100644
--- a/web/src/main/webapp/index.html
+++ b/web/src/main/webapp/index.html
@@ -335,15 +335,16 @@
General
Alarm
{{descriptionOfCurrentTab}}
+ Help
-
@@ -418,6 +440,7 @@
+
diff --git a/web/src/main/webapp/scripts/extra/event-analytics.js b/web/src/main/webapp/scripts/extra/event-analytics.js
index 6c06cc442..48651926d 100644
--- a/web/src/main/webapp/scripts/extra/event-analytics.js
+++ b/web/src/main/webapp/scripts/extra/event-analytics.js
@@ -54,6 +54,7 @@
$at.CLK_CONFIGURATION = "ClickConfiguration";
$at.CLK_GENERAL = "ClickConfigurationGeneral";
$at.CLK_ALARM = "ClickConfigurationAlarm";
+ $at.CLK_HELP = "ClickConfigurationHelp";
$at.CLK_ALARM_CREATE_USER_GROUP = "ClickAlarmCreateUserGroup";
$at.CLK_ALARM_REFRESH_USER_GROUP = "ClickAlarmRefreshUserGroup";
$at.CLK_ALARM_FILTER_USER_GROUP = "ClickAlarmFilterUserGroup";
diff --git a/web/src/main/webapp/styles/configuration.css b/web/src/main/webapp/styles/configuration.css
index 00b3b5216..4a031e39e 100644
--- a/web/src/main/webapp/styles/configuration.css
+++ b/web/src/main/webapp/styles/configuration.css
@@ -78,10 +78,10 @@
#pinpoint-configuration .header-blue {
- background-color: #D0E9FF;
+ background-color: #EEE;
}
#pinpoint-configuration .header-sky {
- background-color: #DAF7FF;
+ background-color: #EEE;
}
#pinpoint-configuration .hide-me {
display:none;
@@ -436,4 +436,27 @@
#pinpoint-configuration .some-table .some-list-content input {
width: 100%;
margin-left: -2px;
+}
+#config-help .link-title {
+ font-size: 18px;
+ margin-right: 30px;
+}
+#config-help li {
+ list-style: none;
+}
+#config-help li span.glyphicon {
+ margin-right: 4px;
+ margin-top: 4px;
+}
+#config-help a:hover {
+ color: rgb(43, 46, 74);
+}
+#config-help a:link {
+ color: rgb(144, 55, 73);
+}
+#config-help a:visited {
+ color: rgb(232, 69, 69);
+}
+#config-help a:active {
+ color: rgb(83, 53, 74);
}
\ No newline at end of file
diff --git a/web/src/test/java/com/navercorp/pinpoint/web/controller/UserControllerTest.java b/web/src/test/java/com/navercorp/pinpoint/web/controller/UserControllerTest.java
index 811c46efb..48b3f65cc 100644
--- a/web/src/test/java/com/navercorp/pinpoint/web/controller/UserControllerTest.java
+++ b/web/src/test/java/com/navercorp/pinpoint/web/controller/UserControllerTest.java
@@ -103,6 +103,35 @@ public class UserControllerTest {
.andExpect(jsonPath("$[0]", hasKey("email")))
.andReturn();
+ this.mockMvc.perform(get("/user.pinpoint?userName=" + USER_NAME).contentType(MediaType.APPLICATION_JSON))
+ .andExpect(status().isOk())
+ .andExpect(content().contentType("application/json;charset=UTF-8"))
+ .andExpect(jsonPath("$[0]", hasKey("userId")))
+ .andExpect(jsonPath("$[0]", hasKey("name")))
+ .andExpect(jsonPath("$[0]", hasKey("department")))
+ .andExpect(jsonPath("$[0]", hasKey("phoneNumber")))
+ .andExpect(jsonPath("$[0]", hasKey("email")))
+ .andReturn();
+
+ this.mockMvc.perform(get("/user.pinpoint?userId=" + USER_ID).contentType(MediaType.APPLICATION_JSON))
+ .andExpect(status().isOk())
+ .andExpect(content().contentType("application/json;charset=UTF-8"))
+ .andExpect(jsonPath("$[0]", hasKey("userId")))
+ .andExpect(jsonPath("$[0]", hasKey("name")))
+ .andExpect(jsonPath("$[0]", hasKey("department")))
+ .andExpect(jsonPath("$[0]", hasKey("phoneNumber")))
+ .andExpect(jsonPath("$[0]", hasKey("email")))
+ .andReturn();
+
+ this.mockMvc.perform(get("/user.pinpoint?department=" + USER_DEPARTMENT).contentType(MediaType.APPLICATION_JSON))
+ .andExpect(status().isOk())
+ .andExpect(content().contentType("application/json;charset=UTF-8"))
+ .andExpect(jsonPath("$[0]", hasKey("userId")))
+ .andExpect(jsonPath("$[0]", hasKey("name")))
+ .andExpect(jsonPath("$[0]", hasKey("department")))
+ .andExpect(jsonPath("$[0]", hasKey("phoneNumber")))
+ .andExpect(jsonPath("$[0]", hasKey("email")))
+ .andReturn();
this.mockMvc.perform(delete("/user.pinpoint").contentType(MediaType.APPLICATION_JSON).content("{\"userId\" : \"" + USER_ID + "\"}"))
.andExpect(status().isOk())