Fix sort for dataset table

pull/15607/head
Víctor Velarde 4 years ago
parent 10f3bb845a
commit a139a29516

@ -31,7 +31,8 @@ Development
- Validate email only on change ([#15575](https://github.com/CartoDB/cartodb/pull/15575))
- Fix viewer user creation from UI ([#15580](https://github.com/CartoDB/cartodb/pull/15580))
- Set node 10.15.1 as default and only for building assets, removing 6.9.2 ([#15530](https://github.com/CartoDB/cartodb/issues/15530))
- Update toolkit libraries to fix case sensitive field iss ([#15569](https://github.com/CartoDB/cartodb/pull/15569))
- Update toolkit libraries to fix case sensitive fields ([#15569](https://github.com/CartoDB/cartodb/pull/15569))
- Fix to avoid locks when sorting rows in dataset table ([#2399](https://github.com/CartoDB/support/issues/2399))
4.36.0 (2020-03-09)
-------------------

@ -68,6 +68,8 @@ module.exports = CoreView.extend({
this.listenTo(this._querySchemaModel, 'change:query change:status', _.debounce(this._onChangeQueryOrStatus, 100));
this.listenTo(this._querySchemaModel, 'change:status', this._setDisableState);
this.listenTo(this._querySchemaModel, 'change:query', this._onQueryChanged);
this._fetchRowsData = _.debounce(this._fetchRowsData, 100);
this.listenTo(this._querySchemaModel, 'change:status', this._fetchRowsData);
this.listenTo(this._tableViewModel, 'change:sort_order change:order_by', this._fetchRowsData);

@ -200,6 +200,8 @@ module.exports = Backbone.Collection.extend({
},
fetch: function (opts) {
if (this.isFetching()) return;
opts = opts || {};
var previousStatus = this.getStatusValue();

Loading…
Cancel
Save