#1017 add `Action.copr_id` optional foreign key
Closed: MIGRATED a year ago by nikromen. Opened 4 years ago by praiskup.

This is both good for accounting; even though backend is able to prioritize actions easily (#1007), there's no info in the action data about the action ownership or so... so there's no way to fill the priority queue.

Also, it would be very nice to show big red warning in UI that some actions related to particular project are still executed on background.


Also, it would be very nice to show big red warning in UI that some actions related to particular project are still executed on background.

We do this in a case of forking when the forking action is not finished yet. And this RFE would help because we currently do it an ugly way:

@property
def still_forking(self):
    return bool(Action.query.filter(Action.result == BackendResultEnum("waiting"))
                .filter(Action.action_type == ActionTypeEnum("fork"))
                .filter(Action.new_value == self.full_name).all())

Also, we should IMHO reuse the big red warning from forking and generalize it for this scenario.

That is exactly what I wanted to achieve by this issue, yes.

Metadata Update from @nikromen:
- Issue close_status updated to: MIGRATED
- Issue status updated to: Closed (was: Open)

a year ago

Login to comment on this ticket.

Metadata