Add import protocol (#1558)

Adds a protocol for repository imports (either from an URL, a dump file or a SCM-Manager repository archive).
This protocol documents single steps of an import, the time and the user and is accessible via a dedicated REST
endpoint or a simple ui.

The id of the log is added to the repository imported event, so that plugins like the landingpage or mail can link to these logs.
This commit is contained in:
René Pfeuffer
2021-02-26 13:52:29 +01:00
committed by GitHub
parent ac404b3cdd
commit 0695ca3bac
41 changed files with 1808 additions and 480 deletions

View File

@@ -48,6 +48,7 @@ import Admin from "../admin/containers/Admin";
import Profile from "./Profile";
import NamespaceRoot from "../repos/namespaces/containers/NamespaceRoot";
import ImportRepository from "../repos/containers/ImportRepository";
import ImportLog from "../repos/importlog/ImportLog";
type Props = {
me: Me;
@@ -96,6 +97,7 @@ class Main extends React.Component<Props> {
<ProtectedRoute exact path="/groups/:page" component={Groups} authenticated={authenticated} />
<ProtectedRoute path="/admin" component={Admin} authenticated={authenticated} />
<ProtectedRoute path="/me" component={Profile} authenticated={authenticated} />
<ProtectedRoute path="/importlog/:logId" component={ImportLog} authenticated={authenticated} />
<ExtensionPoint
name="main.route"
renderAll={true}