in src/es_pii_tool/redacters/steps.py [0:0]
def get_steps(self):
"""
Meta-step to populate :py:attr:`steps`
"""
# Do preparatory steps on all indices
self.prep_steps()
# Set the first steps in self.steps
self.first_steps()
# Add configuration dependent steps
self.ilm_steps()
self.steps.append(s.delete_redaction_target) # Delete var.redaction_target
# After the prep steps, these values should be known
is_data_stream = bool(self.data.data_stream)
# Only if original index was not a data_stream
if not is_data_stream:
self.steps.append(s.fix_aliases) # Collect and fix aliases to apply
# Remove original index
self.delete_original()
# Reassociate as needed
if is_data_stream:
self.steps.append(s.reassociate_index_with_ds) # Reassociate with ds
else:
self.steps.append(s.assign_aliases) # Reassociate with aliases
# Final step
self.steps.append(s.record_it)