Fix "Configured size limit exceeded" warning on Web UI

Suppress size limit warning in 'refresh' command.

Ticket: https://pagure.io/freeipa/issue/7603
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Serhii Tsymbaliuk
2019-01-09 15:43:33 +01:00
parent 5ee687408b
commit ef7a903761
4 changed files with 38 additions and 2 deletions

View File

@@ -1105,5 +1105,14 @@ rpc.extract_objects = function(values) {
return values;
};
/**
* Server side error/warning codes
*
* Add new errors from ipalib.messages only if necessary.
*/
rpc.errors = {
search_result_truncated: 13017
};
return rpc;
});

View File

@@ -291,7 +291,8 @@ IPA.search_facet = function(spec, no_init) {
name: that.get_search_command_name(),
entity: that.managed_entity.name,
method: 'find',
args: args
args: args,
suppress_warnings: [rpc.errors.search_result_truncated]
});
command.set_options(that.get_refresh_command_options());

View File

@@ -5021,7 +5021,7 @@ IPA.entity_select_widget = function(spec) {
method: 'find',
args: [filter],
options: that.filter_options,
suppress_warnings: [13017]
suppress_warnings: [rpc.errors.search_result_truncated]
});
var no_members = metadata.get('@mc-opt:' + cmd.get_command() + ':no_members');
if (no_members) {