mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
Automatically update in progress projects to stalled
This commit is contained in:
parent
c7a4e34e31
commit
9b9d93bc52
6 changed files with 118 additions and 14 deletions
|
@ -25,6 +25,7 @@ class Project{
|
|||
public ?DateTimeImmutable $Ended = null;
|
||||
public int $ManagerUserId;
|
||||
public int $ReviewerUserId;
|
||||
public ?DateTimeImmutable $LastCommitTimestamp = null;
|
||||
|
||||
protected Ebook $_Ebook;
|
||||
protected User $_ManagerUser;
|
||||
|
@ -160,7 +161,8 @@ class Project{
|
|||
Started,
|
||||
Ended,
|
||||
ManagerUserId,
|
||||
ReviewerUserId
|
||||
ReviewerUserId,
|
||||
LastCommitTimestamp
|
||||
)
|
||||
values
|
||||
(
|
||||
|
@ -175,9 +177,10 @@ class Project{
|
|||
?,
|
||||
?,
|
||||
?,
|
||||
?,
|
||||
?
|
||||
)
|
||||
', [$this->EbookId, $this->Status, $this->ProducerName, $this->ProducerEmail, $this->DiscussionUrl, $this->VcsUrl, NOW, NOW, $this->Started, $this->Ended, $this->ManagerUserId, $this->ReviewerUserId]);
|
||||
', [$this->EbookId, $this->Status, $this->ProducerName, $this->ProducerEmail, $this->DiscussionUrl, $this->VcsUrl, NOW, NOW, $this->Started, $this->Ended, $this->ManagerUserId, $this->ReviewerUserId, $this->LastCommitTimestamp]);
|
||||
|
||||
$this->ProjectId = Db::GetLastInsertedId();
|
||||
}
|
||||
|
@ -200,10 +203,11 @@ class Project{
|
|||
Started = ?,
|
||||
Ended = ?,
|
||||
ManagerUserId = ?,
|
||||
ReviewerUserId = ?
|
||||
ReviewerUserId = ?,
|
||||
LastCommitTimestamp = ?
|
||||
where
|
||||
ProjectId = ?
|
||||
', [$this->Status, $this->ProducerName, $this->ProducerEmail, $this->DiscussionUrl, $this->VcsUrl, $this->Started, $this->Ended, $this->ManagerUserId, $this->ReviewerUserId, $this->ProjectId]);
|
||||
', [$this->Status, $this->ProducerName, $this->ProducerEmail, $this->DiscussionUrl, $this->VcsUrl, $this->Started, $this->Ended, $this->ManagerUserId, $this->ReviewerUserId, $this->LastCommitTimestamp, $this->ProjectId]);
|
||||
|
||||
if($this->Status == Enums\ProjectStatusType::Abandoned){
|
||||
Db::Query('
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue