def get_indices_aliases(self):
        indices = ES.indices.get_aliases()
        items = [(index, aliases['aliases'].keys()[0])
                 for index, aliases in indices.items()
                 if len(aliases['aliases']) > 0 and index.startswith('test')]
        items.sort()
        return items
checks if the migration has already been applied
dataset/ETHPy150Open mozilla/addons-server/src/olympia/lib/es/tests/test_commands.py/TestIndexCommand.get_indices_aliases--crossover with--dataset/ETHPy150Open pboehm/django-data-migration/data_migration/migration.py/Migration.migration_required