Skip to content

Commit

Permalink
Merge pull request #41 from billmurrin/develop
Browse files Browse the repository at this point in the history
Merge branch 3.0.2
  • Loading branch information
billmurrin authored Jan 6, 2018
2 parents 9de5a62 + 1ecb01b commit 65bfcbe
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
26 changes: 17 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@ sudo: required
dist: trusty
language: java
jdk:
- oraclejdk8
- oraclejdk8
install:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dskip.web.build=true -B
-V
- npm install webpack -g
- pwd
- cd ../
- git clone -b "2.3.2" https://github.com/Graylog2/graylog2-server.git
- cd graylog2-server/graylog2-web-interface
- npm install
- webpack --config webpack.vendor.js
- pwd
- cd ../../graylog-plugin-quickvaluesplus-widget
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
script:
- mvn test -Dskip.web.build=true -B
- mvn test
addons:
apt:
packages:
- rpm
- rpm
before_deploy:
- mvn jdeb:jdeb && export RELEASE_DEB_FILE=$(ls target/*.deb)
- mvn rpm:rpm && export RELEASE_RPM_FILE=$(find target/ -name '*.rpm' | tail -1)
Expand All @@ -24,11 +32,11 @@ deploy:
secure: e1lIcnvHdc3suR294QbSBKKH4bUewTZztslx1zA0wofFJwcYg76yrcbUIbrC6ZsrxVovVIJaeMIkgwYhaUfZaipq3/jolx8V3acYYUPNfoglamxWBinCoO85SmXQWnLjgEgt5B+HaRz/TK3BBhAifq5/jSwqUbmegkDnYLIxQ5BsRKKYIXeHQ55Mv+QEhofNSpexCS4t1OUByFPihUIyWcdsUvmMQ6SELiWW7ootFHexifU8usJ58BUSmmHmuItLxdF7CV8qA1HAc/sgroN+JHHznpSusfRb7eyO3RykqoAByYhk/K/cp5TtQwRzlBJCnMVkcsuDIYSjgQFFrHh4vg24sfq4fuxhLthYI6Lsff9/JhRf8kpNeSwV1UrkEf9BY3qtYsRI4VFCn9bvfloRxd+zos4PBkRPKYDWS/aKHplM2ElbVdRkiU5AvA3vcbupSbfYlznEfY2fZ7ehaWA3Y3ZvvmAAAUD0zU9aOg8EoKSdYdPiTPLYNCZnm5Mj3Ly6H56axW7jPmkhjt7dODLqcG2O/6QF+JncTd6o+QoGlF658jvfShwbxRKu3840NkofT7o0X6uZN9vZmzsFmOYwKcmItjyg/Yte0bXM4poklYMF+EmRD1yQoSvewXNylqM92zCHWCSqbJpeeEyNIRQwTXm+nICXbp0NxVcEU9FxAXM=
file_glob: true
file:
- "**/target/*.jar"
- "**/target/*.deb"
- "**/target/**/*.rpm"
- "${RELEASE_PKG_FILE}"
- "${RELEASE_DEB_FILE}"
- "${RELEASE_RPM_FILE}"
skip_cleanup: true
on:
repo: billmurrin/graylog-plugin-quickvaluesplus-widget
tags: true
jdk: oraclejdk8
jdk: oraclejdk8
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "QuickValuesPlusWidget",
"version": "3.0.1",
"version": "3.0.2",
"description": "GrayLog2 QuickValuesPlus Widget Plugin",
"repository": {
"type": "git",
Expand All @@ -14,7 +14,7 @@
"graylog"
],
"author": "Bill Murrin <[email protected]>",
"license": "MIT",
"license": "GPL-3.0",
"dependencies": {
"bootstrap": "3.3.6",
"reflux": "^0.2.12",
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<groupId>org.graylog.plugins</groupId>
<artifactId>graylog-plugin-quickvaluesplus-widget</artifactId>
<version>3.0.1</version>
<version>3.0.2</version>
<packaging>jar</packaging>

<name>${project.artifactId}</name>
Expand Down
3 changes: 2 additions & 1 deletion src/web/components/QuickValuesPlusVisualization.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ const QuickValuesPlusVisualization = React.createClass({
//Properly format strings containing spaces, backslashes and colons.
let escTerm = this.escape(`${d.term}`);
let appendQuery = (this.props.config.query == "") ? this.props.config.field + ":" + escTerm : this.props.config.query + " AND " + this.props.config.field + ":" + escTerm;
let replayURL = Routes.stream_search(this.props.config.stream_id, appendQuery, this._getTimeRange(), this.props.config.interval);
let replayURL = (this.props.config.stream_id == undefined) ? Routes.search(appendQuery, this._getTimeRange(), this.props.config.interval) : Routes.stream_search(this.props.config.stream_id, appendQuery, this._getTimeRange(), this.props.config.interval);

return `${colourBadge} <a href="${replayURL}">${d.term}</a>`;

}
Expand Down

0 comments on commit 65bfcbe

Please sign in to comment.