mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
* add field restrictions to index set templates and check them on index set create * check field restrictions on index set update, allow changing field_restrictions only with permission * fix compilation errors * fix index set template id field on index set creation * fix index set response strategy field * bringing field restrictions into frontent IndexSetConfigurationForm and applying hidden and immutable effects to fields WIP * finished applying immutable and hidden effects to form and added permission check for 'indexsets_field_restrictions:edit' permission in order to disable immutable and hidden effects * added missing copyright statements * add fieldRestrictions to index creation request * add config setting for default field type refresh interval * explanatory comment * added restriction permission check to read only config and fixed failing test * removed restrictions on index_prefix and field_type_profile fields and modified detail section hidding to handle changes * fix IndexSetUpdatequest.java * undo graylog.conf file changes * re add changes to graylog.conf * adjust unit test * conflict resolution * revise field restrictions data structure * multiple restrictions per field * General changes to address feedback from code review. * Pass 'index_set_template_id' field through to index set creation API request. * Converted 'TimeUnitInput' to current react component standard structure. * Updated the frontend to use new data structure for field restrictions and removed redundant restriction check. * Updated 'TimeUnitInput' again, updated 'TimeBasedRotationStrategyConfiguration' and '...StrategySummary' to current React component, and extended field immutability and visibility throughout previously missed 'data_tiering' sub fields. * Removed console.log * missed cleanup * Set TimeBasedSizeOptimizing strategy to be disabled only if immutableFields explicitly contains 'legacy.rotation_strategy' as opposed to passing a 'disabled' value through the retention strategy component * remove unneeded default implementation --------- Co-authored-by: Kolin Newby <kolin.newby@graylog.com> Co-authored-by: kolinnewby <kolin.newby@gmail.com> Co-authored-by: patrickmann <patrick.mann@graylog.com> Co-authored-by: Maxwell Anipah <maxwell.anipah@graylog.com> Co-authored-by: Patrick Mann <patrickmann@users.noreply.github.com> Co-authored-by: Laura Bergenthal-Grotlüschen <laura.bergenthalgrotlueschen@graylog.com> Co-authored-by: Maxwell <98284293+kodjo-anipah@users.noreply.github.com>