mirror of https://gitee.com/bigwinds/arangodb
Bug fix/ui moving documents (#2981)
* ui - added bind parameters to slow query history view * also added bind params to running query view * ui: fixed a bug when moving multiple documents was not possible
This commit is contained in:
parent
ec5dde49ec
commit
32836b04b7
|
@ -1,6 +1,10 @@
|
||||||
devel
|
devel
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
* ui: fixed a bug when moving multiple documents was not possible
|
||||||
|
|
||||||
|
* ui: added bind parameters to slow query history view
|
||||||
|
|
||||||
* fixed docs for issue #2968
|
* fixed docs for issue #2968
|
||||||
|
|
||||||
* AQL CHAR_LENGTH(null) returns now 0. Since AQL TO_STRING(null) is '' (string of length 0)
|
* AQL CHAR_LENGTH(null) returns now 0. Since AQL TO_STRING(null) is '' (string of length 0)
|
||||||
|
|
|
@ -37,7 +37,6 @@
|
||||||
if (this.activeUser === false || this.activeUser === null) {
|
if (this.activeUser === false || this.activeUser === null) {
|
||||||
this.activeUser = 'root';
|
this.activeUser = 'root';
|
||||||
}
|
}
|
||||||
console.log(response);
|
|
||||||
|
|
||||||
if (response.user === self.activeUser) {
|
if (response.user === self.activeUser) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
defaults: {
|
defaults: {
|
||||||
id: '',
|
id: '',
|
||||||
query: '',
|
query: '',
|
||||||
|
bindVars: '',
|
||||||
started: '',
|
started: '',
|
||||||
runTime: ''
|
runTime: ''
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script id="arangoTable.ejs" type="text/template">
|
<script id="arangoTable.ejs" type="text/template">
|
||||||
<div class="tableWrapper">
|
<div class="tableWrapper">
|
||||||
|
<% var type = type; %>
|
||||||
<table class="arango-table" id="<%=content.id%>">
|
<table class="arango-table" id="<%=content.id%>">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -13,7 +14,15 @@
|
||||||
<% _.each(content.rows, function(k) { var counter=0;%>
|
<% _.each(content.rows, function(k) { var counter=0;%>
|
||||||
<tr>
|
<tr>
|
||||||
<% _.each(k, function(x) { %>
|
<% _.each(k, function(x) { %>
|
||||||
<td class="arango-table-td table-cell<%=counter%>"><%=(content.unescaped && content.unescaped[counter] ? x : _.escape(x))%></td>
|
<% if (type && type[counter] === 'pre') { %>
|
||||||
|
<td class="arango-table-td table-cell<%=counter%>">
|
||||||
|
<pre class="tablePre">
|
||||||
|
<%=(content.unescaped && content.unescaped[counter] ? x : _.escape(x))%>
|
||||||
|
</pre>
|
||||||
|
</td>
|
||||||
|
<% } else { %>
|
||||||
|
<td class="arango-table-td table-cell<%=counter%>"><%=(content.unescaped && content.unescaped[counter] ? x : _.escape(x))%></td>
|
||||||
|
<% } %>
|
||||||
<% counter++;});%>
|
<% counter++;});%>
|
||||||
</tr>
|
</tr>
|
||||||
<%});%>
|
<%});%>
|
||||||
|
|
|
@ -722,7 +722,7 @@
|
||||||
confirmMoveSelectedDocs: function () {
|
confirmMoveSelectedDocs: function () {
|
||||||
var toMove = this.getSelectedDocs();
|
var toMove = this.getSelectedDocs();
|
||||||
var self = this;
|
var self = this;
|
||||||
var toCollection = $('.modal-body').last().find('#move-documents-to').val();
|
var toCollection = $('#move-documents-to').val();
|
||||||
|
|
||||||
var callback = function () {
|
var callback = function () {
|
||||||
this.collection.getDocuments(this.getDocsCallback.bind(this));
|
this.collection.getDocuments(this.getDocsCallback.bind(this));
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
|
|
||||||
tableDescription: {
|
tableDescription: {
|
||||||
id: 'arangoQueryManagementTable',
|
id: 'arangoQueryManagementTable',
|
||||||
titles: ['ID', 'Query String', 'Runtime', 'Started', ''],
|
titles: ['ID', 'Query String', 'Bind parameter', 'Runtime', 'Started', ''],
|
||||||
rows: [],
|
rows: [],
|
||||||
unescaped: [false, false, false, false, true]
|
unescaped: [false, false, false, false, true]
|
||||||
},
|
},
|
||||||
|
@ -156,7 +156,13 @@
|
||||||
|
|
||||||
renderActive: function () {
|
renderActive: function () {
|
||||||
this.$el.html(this.templateActive.render({}));
|
this.$el.html(this.templateActive.render({}));
|
||||||
$(this.id).append(this.table.render({content: this.tableDescription}));
|
$(this.id).append(this.table.render({
|
||||||
|
content: this.tableDescription,
|
||||||
|
type: {
|
||||||
|
1: 'pre',
|
||||||
|
2: 'pre'
|
||||||
|
}
|
||||||
|
}));
|
||||||
$('#activequeries').addClass('arango-active-tab');
|
$('#activequeries').addClass('arango-active-tab');
|
||||||
this.addEvents();
|
this.addEvents();
|
||||||
},
|
},
|
||||||
|
@ -164,7 +170,11 @@
|
||||||
renderSlow: function () {
|
renderSlow: function () {
|
||||||
this.$el.html(this.templateSlow.render({}));
|
this.$el.html(this.templateSlow.render({}));
|
||||||
$(this.id).append(this.table.render({
|
$(this.id).append(this.table.render({
|
||||||
content: this.tableDescription
|
content: this.tableDescription,
|
||||||
|
type: {
|
||||||
|
1: 'pre',
|
||||||
|
2: 'pre'
|
||||||
|
}
|
||||||
}));
|
}));
|
||||||
$('#slowqueries').addClass('arango-active-tab');
|
$('#slowqueries').addClass('arango-active-tab');
|
||||||
this.addEvents();
|
this.addEvents();
|
||||||
|
@ -190,6 +200,7 @@
|
||||||
rowsArray.push([
|
rowsArray.push([
|
||||||
model.get('id'),
|
model.get('id'),
|
||||||
model.get('query'),
|
model.get('query'),
|
||||||
|
JSON.stringify(model.get('bindVars'), null, 2),
|
||||||
model.get('runTime').toFixed(2) + ' s',
|
model.get('runTime').toFixed(2) + ' s',
|
||||||
model.get('started'),
|
model.get('started'),
|
||||||
button
|
button
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
th {
|
th {
|
||||||
border-bottom: 1px solid $c-c2grey;
|
border-bottom: 1px solid $c-c2grey;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
text-align: left;
|
|
||||||
padding-left: 18px;
|
|
||||||
height: 43px;
|
height: 43px;
|
||||||
|
padding-left: 18px;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,6 +25,11 @@
|
||||||
|
|
||||||
td {
|
td {
|
||||||
padding: 10px 18px;
|
padding: 10px 18px;
|
||||||
|
|
||||||
|
pre {
|
||||||
|
background: none;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue