1
0
Fork 0

Bug fix 3.3/issue 1683 (#4341)

This commit is contained in:
Heiko 2018-01-17 08:28:47 +01:00 committed by Jan
parent 82818d3294
commit b8c55b126d
3 changed files with 18 additions and 15 deletions

View File

@ -2,6 +2,9 @@ v3.3.3 (XXXX-XX-XX)
-------------------
-----
* Fixed internal issue #1683: fixes an UI issue where a collection name gets wrongly cached
within the documents overview of a collection.
* Fixed an issue with the index estimates in RocksDB in the case a transaction is aborted.
Former the index estimates were modified if the transaction commited or not.
Now they will only be modified if the transaction commited successfully.

View File

@ -843,15 +843,19 @@
} else {
this.CollectionTypes[identifier] = data.type;
if (this.CollectionTypes[identifier] === 3) {
toRun(false, 'edge');
toRun(false, 'edge', data);
} else {
toRun(false, 'document');
toRun(false, 'document', data);
}
}
}.bind(this);
this.arangoDocumentStore.getCollectionInfo(identifier, callback, toRun);
} else {
toRun(false, this.CollectionTypes[identifier]);
if (this.CollectionTypes[identifier] === 3) {
toRun(false, 'edge');
} else {
toRun(false, 'document');
}
}
},

View File

@ -71,11 +71,16 @@
this.collection.setPage(page);
this.page = page;
var callback = function (error, type) {
var callback = function (error, type, responseData) {
if (error) {
self.renderNotFound(this.collection.collectionID);
} else {
this.type = type;
if (responseData) {
this.collectionName = responseData.name;
} else {
this.collectionName = colid;
}
this.collection.getDocuments(this.getDocsCallback.bind(this));
this.collectionModel = this.collectionsStore.get(colid);
@ -962,6 +967,8 @@
},
render: function () {
this.collectionName = window.location.hash.split('/')[1];
$(this.el).html(this.template.render({}));
if (this.type === 2) {
this.type = 'document';
@ -975,22 +982,11 @@
this.collection.collectionID
);
this.collectionName = window.location.hash.split('/')[1];
this.checkCollectionState();
// set last active collection name
this.lastCollectionName = this.collectionName;
/*
if (this.collectionContext.prev === null) {
$('#collectionPrev').parent().addClass('disabledPag')
}
if (this.collectionContext.next === null) {
$('#collectionNext').parent().addClass('disabledPag')
}
*/
this.uploadSetup();
arangoHelper.fixTooltips(['.icon_arangodb', '.arangoicon', 'top', '[data-toggle=tooltip]', '.upload-info']);