Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ jobs:
test-path: 'ai-engine/tests/integration/test_basic_integration.py'
container-name: 'integration-test'
- test-suite: backend
test-path: 'backend/tests/integration/'
test-path: 'backend/src/tests/integration/'
container-name: 'backend-test'
- test-suite: ai-engine
test-path: 'ai-engine/tests/integration/test_imports.py'
Expand Down Expand Up @@ -553,10 +553,10 @@ jobs:
cd backend
echo "Current directory: $(pwd)"
echo "Test files available:"
find tests -name "*.py" | head -5 || echo "No backend test files found"
find src/tests -name "*.py" | head -5 || echo "No backend test files found"

echo "Running backend integration tests..."
timeout 1200s python -m pytest tests/integration/ tests/test_health.py -v --tb=short --junitxml=pytest-results-${{ matrix.test-suite }}.xml -s --no-header
timeout 1200s python -m pytest src/tests/integration/ src/tests/test_health.py -v --tb=short --junitxml=pytest-results-${{ matrix.test-suite }}.xml -s --no-header
;;
"ai-engine")
echo "Running ai-engine tests..."
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:
CI: true
run: |
cd backend
python -m pytest tests/ -v --cov=src --cov-report=xml --timeout=120 --ignore=tests/unit/test_addon_assets_crud.py --ignore=tests/unit/test_behavior_files_crud.py --ignore=tests/unit/test_conversion_assets_crud.py --ignore=tests/unit/test_cache_service.py --ignore=tests/unit/test_comparison_api.py --ignore=tests/unit/test_main_unit.py --ignore=tests/unit/test_performance_api.py --ignore=tests/unit/test_validation.py --ignore=tests/unit/test_validation_api.py --ignore=tests/integration/test_api_v1_integration.py --ignore=tests/integration/test_end_to_end_integration.py --ignore=tests/integration/test_performance_integration.py --ignore=tests/integration/test_validation_api_integration.py
python -m pytest src/tests/ -v --cov=src --cov-report=xml --timeout=120 --ignore=src/tests/unit/test_addon_assets_crud.py --ignore=src/tests/unit/test_behavior_files_crud.py --ignore=src/tests/unit/test_conversion_assets_crud.py --ignore=src/tests/unit/test_cache_service.py --ignore=src/tests/unit/test_comparison_api.py --ignore=src/tests/unit/test_main_unit.py --ignore=src/tests/unit/test_performance_api.py --ignore=src/tests/unit/test_validation.py --ignore=src/tests/unit/test_validation_api.py --ignore=src/tests/integration/test_api_v1_integration.py --ignore=src/tests/integration/test_end_to_end_integration.py --ignore=src/tests/integration/test_performance_integration.py --ignore=src/tests/integration/test_validation_api_integration.py

- name: Run AI engine tests
env:
Expand Down
1 change: 1 addition & 0 deletions backend/coverage.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,12 @@ export const VisualEditor: React.FC<VisualEditorProps> = ({
}
const category = categories.find((c) => c.id === categoryId);
if (!category) return [];
return fields.filter((field) => category.fields.includes(field.name));

// ⚡ Bolt optimization: Convert filter criteria array into a Set first
// to enable O(1) lookups during the filter pass, reducing overall complexity
// from O(N*M) to O(N+M) and preventing sluggish renders with larger datasets.
const fieldSet = new Set(category.fields);
return fields.filter((field) => fieldSet.has(field.name));
},
[fields, categories]
);
Expand Down
3 changes: 3 additions & 0 deletions uv.lock

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

Loading