back interdiff of round #2 and #1

appview/indexer: handle NewIssueClosed #695

merged
opened by boltless.me targeting master from boltless.me/core: feat/search

Doesn't suport issue reopen yet

Signed-off-by: Seongmin Lee git@boltless.me

files
appview
indexer
issues
ERROR
appview/indexer/notifier.go

Failed to calculate interdiff for this file.

NEW
appview/issues/issues.go
···
rp.pages.Notice(w, "issue-action", "Failed to close issue. Try again later.")
return
}
+
// change the issue state (this will pass down to the notifiers)
+
issue.Open = false
// notify about the issue closure
rp.notifier.NewIssueClosed(r.Context(), issue)
···
rp.pages.Notice(w, "issue-action", "Failed to reopen issue. Try again later.")
return
}
+
// notify about the issue closure
+
issue.Open = true
+
+
// // notify about the issue reopen
+
// rp.notifier.NewIssueReopen(r.Context(), issue)
+
rp.pages.HxLocation(w, fmt.Sprintf("/%s/issues/%d", f.OwnerSlashRepo(), issue.IssueId))
return
} else {