Skip to content

Conversation

@JavierGOrdonnez
Copy link
Collaborator

This PR includes:

  • Complete refactoring of FlaskAPI backend into separate functional modules
  • Comprehensive testing

close #214

Once this PR is merged, should automatically close or make easier to address:

Javier Garcia Ordonez added 30 commits September 3, 2025 11:51
@JavierGOrdonnez JavierGOrdonnez marked this pull request as ready for review October 22, 2025 16:18
@Copilot Copilot AI review requested due to automatic review settings October 22, 2025 16:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a comprehensive refactoring of the Flask API backend into separate functional modules with extensive testing coverage. The main changes organize the codebase into a blueprint-based architecture with dedicated modules for deployment, OSPARC integration, text file operations, sampling operations, and Dakota algorithms. Tests validate endpoint functionality, error handling, and integration points across all modules.

Key Changes:

  • Complete Flask API refactoring into blueprint-based modular architecture
  • Comprehensive test suite covering all major endpoints and error scenarios
  • Addition of Pydantic-based request validation for sampling endpoints

Reviewed Changes

Copilot reviewed 67 out of 74 changed files in this pull request and generated no comments.

Show a summary per file
File Description
node/src/utils/sampling_utils.ts Updates sampling endpoint URL paths to use new /sampling/ prefix
node/src/utils/function_utils.ts Updates OSPARC and deployment endpoint URLs to use new prefixes
node/src/components/sampling/*.tsx Updates sampling component endpoint URLs to new paths
node/src/components/plots/*.tsx Updates Dakota plot endpoint URLs to new /dakota/ prefix
node/package.json Adds vitest coverage package dependency
flaskapi/tests/*.py Adds comprehensive test suites for all Flask modules
flaskapi/src/mmux_flaskapi/blueprints/*.py New modular blueprint architecture for Flask app
flaskapi/src/mmux_flaskapi/utils/*.py New utility modules for configuration and helpers
flaskapi/pyproject.toml New Python project configuration with pytest setup
flaskapi/main.py New application entry point
flaskapi/Dockerfile Updates to use new Makefile-based dependency installation
docker-compose-local.yml Removes deprecated version field
Files not reviewed (1)
  • node/package-lock.json: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@JavierGOrdonnez JavierGOrdonnez changed the base branch from main to develop October 23, 2025 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create Flask-API tests that validate endpoint functions

2 participants