def get_actions_by_operation_for_req(self, req, ticket, operation):
        # Be sure to look at the original status.
        status = ticket._old.get('status', ticket['status'])
        actions = [(info['default'], action)
                   for action, info in self.actions.items()
                   if operation in info['operations'] and
                      ('*' in info['oldstates'] or
                       status in info['oldstates']) and
                      self._has_perms_for_action(req, info, ticket.resource)]
        return actions

    # Internal methods
Backward fill the values
dataset/ETHPy150Open edgewall/trac/trac/ticket/default_workflow.py/ConfigurableTicketWorkflow.get_actions_by_operation_for_req--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/core/groupby.py/GroupBy.backfill