Skip to content

Feature/batch info provider import #982

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
ad36d18
Update part merger to consider rows with same supplier and spn duplic…
barisgit Aug 1, 2025
400cf9a
Update example import csv to schow real capatibilities
barisgit Aug 1, 2025
2259091
Fix timestamp test
barisgit Aug 1, 2025
3ee2d3f
Implement excel based import/export
barisgit Aug 1, 2025
2b4cb89
Add export functionality to batch select and fix errors
barisgit Aug 1, 2025
fe0da11
Add more tests and fix failing ones
barisgit Aug 2, 2025
bbe4b01
Remove problematic tests
barisgit Aug 2, 2025
fe5442e
Simple batch processing
barisgit Aug 2, 2025
9643197
Move pageSize and table columns filter buttons apart a bit
barisgit Aug 2, 2025
f151258
More sophisticated two-step bulk import from info providers
barisgit Aug 2, 2025
e11707b
Fix tests
barisgit Aug 2, 2025
eb4ca17
Add tests and fix static errors
barisgit Aug 2, 2025
4f64f0e
Fix migration error and dto error
barisgit Aug 2, 2025
0b982d3
Improve test coverage
barisgit Aug 2, 2025
0b824cb
Add makefile to help with development setup, change part_ids in bulk …
barisgit Aug 2, 2025
aa53c95
Let symfony manage translations
barisgit Aug 2, 2025
23b4299
Fix a single failing test
barisgit Aug 2, 2025
300d2bb
Add abbility to search faster on LCSC without details
barisgit Aug 4, 2025
63f6ca2
Increase time limit on batch search and add option to priorities whic…
barisgit Aug 4, 2025
4d81f29
Add bulk_info_provider_import_job_part.label
barisgit Aug 4, 2025
4713728
Add BulkInfoProviderImportJobPart to element type name generator
barisgit Aug 4, 2025
66f7629
Improve test coverage
barisgit Aug 5, 2025
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
99 changes: 99 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# PartDB Makefile for Test Environment Management

.PHONY: help test-setup test-clean test-db-create test-db-migrate test-cache-clear test-fixtures test-run dev-setup dev-clean dev-db-create dev-db-migrate dev-cache-clear dev-warmup dev-reset

# Default target
help:
@echo "PartDB Test Environment Management"
@echo "=================================="
@echo ""
@echo "Available targets:"
@echo " test-setup - Complete test environment setup (clean, create DB, migrate, load fixtures)"
@echo " test-clean - Clean test cache and database files"
@echo " test-db-create - Create test database (if not exists)"
@echo " test-db-migrate - Run database migrations for test environment"
@echo " test-cache-clear- Clear test cache"
@echo " test-fixtures - Load test fixtures"
@echo " test-run - Run PHPUnit tests"
@echo ""
@echo "Development Environment:"
@echo " dev-setup - Complete development environment setup (clean, create DB, migrate, warmup)"
@echo " dev-clean - Clean development cache and database files"
@echo " dev-db-create - Create development database (if not exists)"
@echo " dev-db-migrate - Run database migrations for development environment"
@echo " dev-cache-clear - Clear development cache"
@echo " dev-warmup - Warm up development cache"
@echo " dev-reset - Quick development reset (clean + migrate)"
@echo ""
@echo " help - Show this help message"

# Complete test environment setup
test-setup: test-clean test-db-create test-db-migrate test-fixtures
@echo "✅ Test environment setup complete!"

# Clean test environment
test-clean:
@echo "🧹 Cleaning test environment..."
rm -rf var/cache/test
rm -f var/app_test.db
@echo "✅ Test environment cleaned"

# Create test database
test-db-create:
@echo "🗄️ Creating test database..."
-php bin/console doctrine:database:create --if-not-exists --env test || echo "⚠️ Database creation failed (expected for SQLite) - continuing..."

# Run database migrations for test environment
test-db-migrate:
@echo "🔄 Running database migrations..."
COMPOSER_MEMORY_LIMIT=-1 php bin/console doctrine:migrations:migrate -n --env test

# Clear test cache
test-cache-clear:
@echo "🗑️ Clearing test cache..."
rm -rf var/cache/test
@echo "✅ Test cache cleared"

# Load test fixtures
test-fixtures:
@echo "📦 Loading test fixtures..."
php bin/console partdb:fixtures:load -n --env test

# Run PHPUnit tests
test-run:
@echo "🧪 Running tests..."
php bin/phpunit

# Quick test reset (clean + migrate + fixtures, skip DB creation)
test-reset: test-cache-clear test-db-migrate test-fixtures
@echo "✅ Test environment reset complete!"

# Development helpers
dev-setup: dev-clean dev-db-create dev-db-migrate dev-warmup
@echo "✅ Development environment setup complete!"

dev-clean:
@echo "🧹 Cleaning development environment..."
rm -rf var/cache/dev
rm -f var/app_dev.db
@echo "✅ Development environment cleaned"

dev-db-create:
@echo "🗄️ Creating development database..."
-php bin/console doctrine:database:create --if-not-exists --env dev || echo "⚠️ Database creation failed (expected for SQLite) - continuing..."

dev-db-migrate:
@echo "🔄 Running database migrations..."
COMPOSER_MEMORY_LIMIT=-1 php bin/console doctrine:migrations:migrate -n --env dev

dev-cache-clear:
@echo "🗑️ Clearing development cache..."
rm -rf var/cache/dev
@echo "✅ Development cache cleared"

dev-warmup:
@echo "🔥 Warming up development cache..."
COMPOSER_MEMORY_LIMIT=-1 php bin/console cache:warmup --env dev -n --memory-limit=1G

dev-reset: dev-cache-clear dev-db-migrate
@echo "✅ Development environment reset complete!"
5 changes: 5 additions & 0 deletions assets/css/app/tables.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ th.select-checkbox {
display: inline-flex;
}

/** Add spacing between column visibility button and length menu */
.buttons-colvis {
margin-right: 0.2em !important;
}

/** Fix datatables select-checkbox position */
table.dataTable tr.selected td.select-checkbox:after
{
Expand Down
Loading
Loading