Changed the way we call development steps

This commit is contained in:
Zvonimir Sabljic
2023-07-31 08:19:39 +02:00
parent 01da93bf3f
commit 7b345d904d
3 changed files with 41 additions and 14 deletions

View File

@@ -2,7 +2,7 @@ APP_TYPES = ['Web App', 'Script', 'Mobile App (unavailable)', 'Chrome Extension
ROLES = {
'product_owner': ['project_description', 'user_stories', 'user_tasks'],
'architect': ['architecture'],
'tech_lead': ['development_planing'],
'tech_lead': ['development_planning'],
'full_stack_developer': ['create_scripts', 'coding'],
'dev_ops': ['environment_setup'],
}
@@ -11,7 +11,7 @@ STEPS = [
'user_stories',
'user_tasks',
'architecture',
'development_planing',
'create_scripts',
'coding'
'development_planning',
'environment_setup',
'development'
]

View File

@@ -10,7 +10,8 @@ from steps.project_description.project_description import get_project_descriptio
from steps.user_stories.user_stories import get_user_stories
from steps.user_tasks.user_tasks import get_user_tasks
from steps.architecture.architecture import get_architecture
from steps.development.development import create_development_plan
from steps.development.development import set_up_environment
from steps.development.development import start_development
@@ -35,4 +36,12 @@ if __name__ == "__main__":
architecture, architecture_messages = get_architecture(high_level_summary, user_stories, user_tasks, args)
development_plan, development_plan_messages = create_development_plan(user_stories, user_tasks, architecture, args)
# TODO REMOVE THIS
architecture = architecture.split('\n')
# TODO END
set_up_environment(architecture, args);
start_development(user_stories, user_tasks, architecture, args)

View File

@@ -62,10 +62,10 @@ def set_up_environment(technologies, args):
if app_data is not None:
args.update(app_data)
message = f"Tech stask breakdown already done for this app_id: {args['app_id']}. Moving to next step..."
message = f"Environment setup is already done for this app_id: {args['app_id']}. Moving to next step..."
print(colored(message, "green"))
logger.info(message)
return data.get('technologies'), data.get('messages')
return data.get('os_specific_techologies'), data.get('newly_installed_technologies'), data.get('messages')
# ENVIRONMENT SETUP
print(colored(f"Setting up the environment...\n", "green"))
@@ -155,12 +155,30 @@ def set_up_environment(technologies, args):
# ENVIRONMENT SETUP END
def create_development_plan(user_stories, user_tasks, technologies_to_use, args):
current_step = 'development_planning'
role = find_role_from_step(current_step)
steps = get_progress_steps(args['app_id'], current_step)
if steps and not execute_step(args['step'], current_step):
first_step = steps[0]
data = json.loads(first_step['data'])
app_data = data.get('app_data')
if app_data is not None:
args.update(app_data)
message = f"Plan for development is already done for this app_id: {args['app_id']}. Moving to next step..."
print(colored(message, "green"))
logger.info(message)
return data.get('messages')
# DEVELOPMENT PLANNING
print(colored(f"Starting to create the action plan for development...\n", "green"))
logger.info(f"Starting to create the action plan for development...")
pass
def start_development(user_stories, user_tasks, technologies_to_use, args):
# break down the development plan
# TODO REMOVE THIS
technologies_to_use = technologies_to_use.split('\n')
# TODO END
set_up_environment(technologies_to_use, args);
pass