This PR fixes the issue that if you were using get_all_subclasses() to gather the models to pass into the async_set_up_composite_indexes_and_ttl_policies() or set_up_composite_indexes_and_ttl_policies() like suggested in the README, like this:
the indexes were created but the TTL policies were not. The get_all_subclasses() method returns an iterator and the underlying set_up_composite_indexes used up the generator so that the call to the set_up_ttl_policies got an empty generator. This fixes it by simply converting it to a list before passing it to each of the underlying functions and updates the test to spot the issue.
This PR fixes the issue that if you were using
get_all_subclasses()
to gather the models to pass into theasync_set_up_composite_indexes_and_ttl_policies()
orset_up_composite_indexes_and_ttl_policies()
like suggested in the README, like this:the indexes were created but the TTL policies were not. The
get_all_subclasses()
method returns an iterator and the underlyingset_up_composite_indexes
used up the generator so that the call to theset_up_ttl_policies
got an empty generator. This fixes it by simply converting it to a list before passing it to each of the underlying functions and updates the test to spot the issue.