Skip to content

Commit

Permalink
move adviser requests from keb admin to investigator
Browse files Browse the repository at this point in the history
  • Loading branch information
KPostOffice committed Jan 25, 2022
1 parent ca52a8f commit 0ad4c8c
Show file tree
Hide file tree
Showing 5 changed files with 348 additions and 101 deletions.
2 changes: 2 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ prometheus-async = "*"
confluent-kafka = "*"
thoth-common = "*"
thoth-messaging = "*"
aiohttp = "*"
pyjwt = "*"

[dev-packages]
pytest = "*"
Expand Down
195 changes: 95 additions & 100 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion thoth/investigator/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
from math import inf
from asyncio import sleep
import json

from typing import List, Tuple, Optional, Callable

from ogr.services.github import GithubService

from thoth.common import OpenShift
from thoth.storages import GraphDatabase
from thoth.messaging import ALL_MESSAGES
Expand Down Expand Up @@ -307,3 +308,14 @@ async def _schedule_all_solvers(
raise e

return are_scheduled


# KP TD: download and load files from github for user-api request
# def _generate_advise_inputs_from_slug_and_env(github_project: GithubProject) -> dict:
# project =
# db.get_python_software_stack_dict_from_id()
# pass

# def _generate_runtime_environment_from_slug_and_env(github_project: GithubProject) -> dict:
# db.get_runtime_environment_dict_from_id()
# pass
Loading

0 comments on commit 0ad4c8c

Please sign in to comment.