From f626fbd0565a6ca9eafb6c7fbff0d103ef2daa5b Mon Sep 17 00:00:00 2001 From: Jeny Sadadia Date: Fri, 13 Sep 2024 18:58:36 +0530 Subject: [PATCH] kcidb/cloud/issue-ed: run app from `kcidb.issue_editor` Signed-off-by: Jeny Sadadia --- kcidb/cloud/iss-ed | 13 +--- kcidb/cloud/templates/index.html | 126 +++++++++++++++++++++++++++++++ 2 files changed, 127 insertions(+), 12 deletions(-) create mode 100644 kcidb/cloud/templates/index.html diff --git a/kcidb/cloud/iss-ed b/kcidb/cloud/iss-ed index 1cc5d9e8..7d7bab9e 100755 --- a/kcidb/cloud/iss-ed +++ b/kcidb/cloud/iss-ed @@ -1,19 +1,8 @@ #!/usr/bin/env python3 """Handle Issue Editor WebUI requests""" -# It's OK, pylint: disable=invalid-name import os -from flask import Flask -#import kcidb.issue_editor - -app = Flask(__name__) - - -@app.route("/") -def hello_world(): - """Example Hello World route.""" - return "Hello, World!" - +from kcidb.issue_editor.kcidb_triage_server import app if __name__ == "__main__": app.run(host="0.0.0.0", port=int(os.environ.get("PORT", 8080))) diff --git a/kcidb/cloud/templates/index.html b/kcidb/cloud/templates/index.html new file mode 100644 index 00000000..a4cc4310 --- /dev/null +++ b/kcidb/cloud/templates/index.html @@ -0,0 +1,126 @@ + + + + + KCIDB Triage Tool + + + +

KCIDB Triage Tool

+

Submit Issue

+
+ +

+ + +

+ + +

+ + +

+ + +

+ + +

+ + +

+ +

Automatching

+
+

+ + +

+ + +
+ +

Submit Incidents

+
+ +

+ + +

+ + +

+ + +

+ + +

+ + +

+ + +

+ + +

+ + +

+ + +
+ +