mirror of https://gitee.com/bigwinds/arangodb
Bug fix 3.3/issue 1683 (#4341)
This commit is contained in:
parent
82818d3294
commit
b8c55b126d
|
@ -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.
|
* 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.
|
Former the index estimates were modified if the transaction commited or not.
|
||||||
Now they will only be modified if the transaction commited successfully.
|
Now they will only be modified if the transaction commited successfully.
|
||||||
|
|
|
@ -843,15 +843,19 @@
|
||||||
} else {
|
} else {
|
||||||
this.CollectionTypes[identifier] = data.type;
|
this.CollectionTypes[identifier] = data.type;
|
||||||
if (this.CollectionTypes[identifier] === 3) {
|
if (this.CollectionTypes[identifier] === 3) {
|
||||||
toRun(false, 'edge');
|
toRun(false, 'edge', data);
|
||||||
} else {
|
} else {
|
||||||
toRun(false, 'document');
|
toRun(false, 'document', data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
this.arangoDocumentStore.getCollectionInfo(identifier, callback, toRun);
|
this.arangoDocumentStore.getCollectionInfo(identifier, callback, toRun);
|
||||||
} else {
|
} else {
|
||||||
toRun(false, this.CollectionTypes[identifier]);
|
if (this.CollectionTypes[identifier] === 3) {
|
||||||
|
toRun(false, 'edge');
|
||||||
|
} else {
|
||||||
|
toRun(false, 'document');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -71,11 +71,16 @@
|
||||||
this.collection.setPage(page);
|
this.collection.setPage(page);
|
||||||
this.page = page;
|
this.page = page;
|
||||||
|
|
||||||
var callback = function (error, type) {
|
var callback = function (error, type, responseData) {
|
||||||
if (error) {
|
if (error) {
|
||||||
self.renderNotFound(this.collection.collectionID);
|
self.renderNotFound(this.collection.collectionID);
|
||||||
} else {
|
} else {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
|
if (responseData) {
|
||||||
|
this.collectionName = responseData.name;
|
||||||
|
} else {
|
||||||
|
this.collectionName = colid;
|
||||||
|
}
|
||||||
this.collection.getDocuments(this.getDocsCallback.bind(this));
|
this.collection.getDocuments(this.getDocsCallback.bind(this));
|
||||||
this.collectionModel = this.collectionsStore.get(colid);
|
this.collectionModel = this.collectionsStore.get(colid);
|
||||||
|
|
||||||
|
@ -962,6 +967,8 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function () {
|
render: function () {
|
||||||
|
this.collectionName = window.location.hash.split('/')[1];
|
||||||
|
|
||||||
$(this.el).html(this.template.render({}));
|
$(this.el).html(this.template.render({}));
|
||||||
if (this.type === 2) {
|
if (this.type === 2) {
|
||||||
this.type = 'document';
|
this.type = 'document';
|
||||||
|
@ -975,22 +982,11 @@
|
||||||
this.collection.collectionID
|
this.collection.collectionID
|
||||||
);
|
);
|
||||||
|
|
||||||
this.collectionName = window.location.hash.split('/')[1];
|
|
||||||
|
|
||||||
this.checkCollectionState();
|
this.checkCollectionState();
|
||||||
|
|
||||||
// set last active collection name
|
// set last active collection name
|
||||||
this.lastCollectionName = this.collectionName;
|
this.lastCollectionName = this.collectionName;
|
||||||
|
|
||||||
/*
|
|
||||||
if (this.collectionContext.prev === null) {
|
|
||||||
$('#collectionPrev').parent().addClass('disabledPag')
|
|
||||||
}
|
|
||||||
if (this.collectionContext.next === null) {
|
|
||||||
$('#collectionNext').parent().addClass('disabledPag')
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
this.uploadSetup();
|
this.uploadSetup();
|
||||||
|
|
||||||
arangoHelper.fixTooltips(['.icon_arangodb', '.arangoicon', 'top', '[data-toggle=tooltip]', '.upload-info']);
|
arangoHelper.fixTooltips(['.icon_arangodb', '.arangoicon', 'top', '[data-toggle=tooltip]', '.upload-info']);
|
||||||
|
|
Loading…
Reference in New Issue