Commit Graph
100 Commits
Author SHA1 Message Date
elordenador 32c1e1e6ff Fix IDOR vulnerability in cart operations (issue #77)
- Add _get_cart_item_owner_filters() helper to validate CartItem ownership
- Update update_cart_item and remove_from_cart to validate ownership
- Prevents users from manipulating item_id to access other users' cart items
2026-05-08 13:09:50 +02:00
elordenador 8a0335fabc Merge branch 'latest' of github.com:dsaub/proyecto-final into latest 2026-05-08 13:07:32 +02:00
elordenador 74b9d3bbc6 Add send_email import 2026-05-08 13:07:06 +02:00
elordenador f9b3bc7096 Add Procfile 2026-05-08 10:39:38 +02:00
elordenador 932fe7316b Update 2026-05-08 10:37:09 +02:00
elordenador 84f125c4b3 Update Python version 2026-05-08 10:34:28 +02:00
elordenador bb4d9993ec Remove requirements.txt 2026-05-08 10:12:29 +02:00
elordenador 72def373e3 Merge pull request 'Rewrite all forms to use Django Forms with validation' (#1) from form-rewrite into development
Reviewed-on: #1
2026-05-08 07:46:01 +00:00
elordenador a50cadc873 Finish Form Rewrite 2026-05-08 09:43:19 +02:00
elordenador 551057b067 Rewrite all forms to use Django Forms with validation
- Add ProductEditForm, EditProfileForm, ChangePasswordForm, ShippingAddressForm
- Add ResetPasswordForm, ResetPasswordPhase2Form
- Update views to use new Django Forms
- Add form validation tests (terms required, password mismatch, etc)
- Update templates to use Django Forms {{ form.as_p }}
2026-05-08 09:42:44 +02:00
elordenador ad7ddbe887 Fix formatting in settings.json by adding a missing comma 2026-05-07 08:54:24 +02:00
elordenador d6b7cdfe6a Add error handling for product creation to manage DataError exceptions 2026-05-07 08:37:07 +02:00
elordenador 56286c2fd9 Add limit to briefdesc and description on Product model, for issue #73 2026-05-07 08:01:46 +02:00
elordenador ba4f6ad65d Add CSRF protection to payment endpoints 2026-05-07 07:53:38 +02:00
elordenador ed7041ae40 Add user ban check to login view and log failed attempts 2026-05-06 11:59:59 +02:00
elordenador fa948a98e2 Add desbanear_usuario_action to UserAdmin actions 2026-05-06 11:45:21 +02:00
elordenador e8a5091dfd Add unban email template to notify users of account reinstatement 2026-05-06 11:39:10 +02:00
elordenador a0ee6ecd14 Update short description for desbanear_usuario_action in UserAdmin 2026-05-06 11:37:43 +02:00
elordenador d6c9aa3db3 Implement user unban functionality and enhance ban action with product deletion 2026-05-06 11:37:26 +02:00
elordenador 9751d19401 Add desbanear_usuario task to send unban email notifications 2026-05-06 10:52:32 +02:00
elordenador cda9adb986 Enhance user ban action to delete products by creator and add success message 2026-05-06 10:37:48 +02:00
elordenador e7e7fd118d Refactor user ban action to streamline user deactivation and product deletion 2026-05-06 10:25:13 +02:00
elordenador 132b1e1722 Remove user ban link from admin submit line template 2026-05-06 10:22:34 +02:00
elordenador 7f557a3247 Implement user ban functionality to delete associated products 2026-05-06 09:48:55 +02:00
elordenador 8cf1a55161 Add user ban functionality with email notification 2026-05-06 09:47:47 +02:00
elordenador 61a04e5040 Fix logins int() None 2026-05-06 09:23:33 +02:00
elordenador e5a0caa8b6 Fix text overflow 2026-05-06 09:23:23 +02:00
elordenador 25e6088355 Fix: correct user_options assignment in Celery app 2026-05-05 16:19:59 +02:00
elordenador 8ec391ccde Update AGENTS.md 2026-05-05 15:51:52 +02:00
elordenador 3b007f324f Fix: add COMPRESS_URL setting 2026-05-05 14:03:27 +02:00
elordenador 6e003009fa Fix: add COMPRESS_ROOT setting 2026-05-05 14:01:44 +02:00
elordenador 69578f1dba Fix: add user_options attribute to Celery app 2026-05-05 14:00:36 +02:00
elordenador 3eb81b343c Fix celery worker initialization by setting up Django before Celery and fixing import name 2026-05-05 13:09:54 +02:00
elordenador ce5aac0e89 Fix celery user_options attribute for worker 2026-05-05 13:03:44 +02:00
elordenador c534f500ad Fix: remove CELERY_APP setting 2026-05-05 12:57:51 +02:00
elordenador 63c6b645c3 Fix Celery: add CELERY_APP setting 2026-05-05 12:53:43 +02:00
elordenador b16cb367d3 Fix Celery: restore autodiscover_tasks to default behavior 2026-05-05 12:45:54 +02:00
elordenador 503233d323 Fix Celery: use autodiscover_tasks with full module path 2026-05-05 12:39:45 +02:00
elordenador b50ab06a22 Fix Celery: use CELERY_IMPORTS instead of autodiscover 2026-05-05 12:35:53 +02:00
elordenador cda339a336 Restore autodiscover_tasks to working state 2026-05-05 12:33:14 +02:00
elordenador 541a73ce36 Fix Celery: add django.setup() before importing tasks 2026-05-05 12:31:54 +02:00
elordenador 8932eeefbf Fix Celery worker: import tasks directly instead of autodiscover 2026-05-05 12:29:09 +02:00
elordenador 80e5e2a422 Fix Celery 2026-05-05 12:22:07 +02:00
elordenador a686bccd54 Update AGENTS.md 2026-05-05 12:20:11 +02:00
elordenador 6be67a9100 Add SKU field to Product model (issue #67) 2026-05-05 09:01:24 +02:00
elordenador bee360dfbb Fix POSTGRES_ENABLED check in ShippingAddress.clean() (issue #66) 2026-05-05 08:52:02 +02:00
elordenador a20a61be82 Add postal code validation to ShippingAddress model (issue #66) 2026-05-05 08:46:34 +02:00
elordenador b9675385aa Fix Github issue #69 2026-05-05 07:44:32 +02:00
elordenador c33def1124 Add staticfiles folder to .gitignore 2026-05-04 22:03:05 +02:00
elordenador 52dfa51af2 Remove Static Files 2026-05-04 22:02:19 +02:00
elordenador a02617f8d2 Move MD files and add an AGENTS.md 2026-05-04 22:01:27 +02:00
elordenador 53b4e89347 Fix tasks.py making tests fail 2026-05-04 22:01:12 +02:00
elordenador df0579dd86 Fix GH Issue #68 2026-05-04 21:59:28 +02:00
elordenador 1022a44f12 Fix GH Issue #65 2026-05-04 19:51:49 +02:00
elordenador bb697d92c6 Fix GH Issue #64 2026-05-04 19:45:47 +02:00
elordenador d75165e31a Arreglar el bug de posiblemente creator y primary_image este en None... 2026-05-04 12:31:49 +02:00
elordenador 6ed4fb1954 Remove punctuation Signs so we generate 'url-safe' codes 2026-05-04 12:30:09 +02:00
elordenador c190a65e57 Opencore files 2026-05-04 12:25:21 +02:00
elordenador 756f1ad36b Remove entire api for issue #61 2026-04-30 07:43:18 +02:00
elordenador 033c52a365 Fix issue #60 verification code generation 2026-04-30 07:39:14 +02:00
elordenador 297b319a20 Fix issue #59 duplicate reset_password 2026-04-30 07:38:17 +02:00
elordenador 830966f3ee Fix issue #58 not deleting verification code. 2026-04-30 07:37:13 +02:00
elordenador 81d3694210 Solving issue #57 Auth 500 bug 2026-04-30 07:35:28 +02:00
elordenadorandCopilot a2e6e5ad97 refactor: change StaticStorage to inherit from S3Storage instead of S3ManifestStaticStorage
Co-authored-by: Copilot <copilot@github.com>
2026-04-29 09:30:09 +02:00
elordenadorandCopilot 30f260c9bf feat: add support for local asset URLs in S3 storage backends
Co-authored-by: Copilot <copilot@github.com>
2026-04-29 08:12:57 +02:00
elordenador 84d8a0e3b6 Add S3 Storage... 2026-04-28 21:19:32 +02:00
elordenador d8f6838f0c refactor: update Product model to use to_dict for image serialization 2026-04-22 09:52:30 +02:00
elordenador d9d9e5b1a6 refactor: update products endpoint to use to_dict method for consistency 2026-04-22 09:52:20 +02:00
elordenador 501d7aade5 chore: add media directory to .gitignore 2026-04-22 09:52:15 +02:00
elordenador 7d3cff0bd9 refactor: rename __dict__ methods to to_dict for consistency in models 2026-04-22 09:22:20 +02:00
elordenador 3cbca38c32 feat: add __dict__ method to models for JSON serialization 2026-04-22 09:15:32 +02:00
elordenador dc967c114f feat: implement initial API endpoints for product retrieval 2026-04-22 09:15:28 +02:00
elordenador 60cd29ee30 feat: add API URL routing to urlpatterns 2026-04-22 09:15:24 +02:00
elordenador 540b3fdc43 chore: add django-ninja to requirements 2026-04-22 09:15:19 +02:00
elordenador c9e05afbc0 Fix CSS formatting for .texto-ajustado and remove unnecessary comments 2026-04-20 12:43:22 +02:00
elordenador 3e76782a0c Refactor tests and add comprehensive coverage for User, VerificationCode, Category, Product, StockReservation, Cart, Order, and related models
- Enhanced User model tests with creation, registration status, password hashing, and unique username checks.
- Added extensive tests for VerificationCode model including creation, uniqueness, and relation to User.
- Implemented Category model tests covering creation, uniqueness, and string representation.
- Expanded Product model tests to include creation, default values, VAT calculations, and deletion behavior.
- Introduced StockReservation and StockReservationItem model tests for creation, status checks, and unique constraints.
- Developed Cart and CartItem model tests focusing on creation, total calculations, and item uniqueness.
- Added Order and OrderItem model tests for creation, status management, and string representation.
- Included SavedPaymentMethod and ShippingAddress model tests for creation, default settings, and ordering.
2026-04-20 09:38:54 +02:00
elordenador 8f70125d3a chore: update actions/checkout to version 6 2026-04-20 09:29:47 +02:00
elordenador 693de66117 chore: downgrade Docker actions to version 4 for compatibility 2026-04-20 09:29:04 +02:00
elordenador e150e8e5e7 fix: sanitize branch name for Docker image tags 2026-04-20 09:27:01 +02:00
elordenador f89116ca2e chore: update Docker actions to latest versions 2026-04-20 09:25:39 +02:00
elordenador e8aa6d18c2 Add testing job to GitHub Actions workflow for Docker image build 2026-04-20 08:25:55 +02:00
elordenador 20ebd472f3 Add GitHub Actions workflow for building and pushing Docker images 2026-04-20 08:18:51 +02:00
elordenador 5aaf38aa54 Update static file storage settings and add migration for unique category names; clean up CSS and HTML structure 2026-04-20 08:10:23 +02:00
elordenador e3f492ded5 Refactor Dockerfile and entrypoint script; add Makefile for build and test commands 2026-04-20 08:10:12 +02:00
elordenador 987466e11d Fix data 2026-04-16 10:20:45 +02:00
elordenador 4a3f5a8025 Changed to Postgres 2026-04-16 10:17:54 +02:00
elordenador d4a42e7cf8 Arreglado bug que mostraba los pedidos enviados en el conteo de por enviar... 2026-04-10 10:18:47 +02:00
elordenador b7b7792a9e Added a limit on stock to editar_producto 2026-04-10 10:05:23 +02:00
elordenador 155e80780b Added a limit on stock to crear_producto 2026-04-10 10:03:56 +02:00
elordenador 7ff014a951 refactor: centralize product cache invalidation logic in _invalidate_product_cache function 2026-04-09 14:20:54 +02:00
elordenador 40f9b1dc43 feat: Update Docs Writer agent constraints and tools for improved documentation process 2026-04-09 11:05:52 +02:00
elordenador 3b99b9c136 feat: Update Docs Writer agent constraints to specify usage of Python files from tienda/ 2026-04-09 10:40:50 +02:00
elordenador 0ac39813c8 feat: Add Docs Writer agent for creating and updating Markdown documentation 2026-04-09 10:39:35 +02:00
elordenador cbcdb823db feat: Add stock management features including stock reservations and updates to cart and checkout processes 2026-04-09 10:03:57 +02:00
elordenador 618c65accb feat: Implement stock reservation management in cart and order creation 2026-04-09 08:51:18 +02:00
elordenador a3eae63587 feat: Add transaction code generation for orders and update receipt templates 2026-04-09 08:51:12 +02:00
elordenador a570c542c2 feat: Implement StockReservation model and enhance Order model with transaction code generation 2026-04-09 08:51:03 +02:00
elordenador 7f2dea901d feat: Register StockReservation model and enhance OrderAdmin with transaction_code 2026-04-09 08:50:57 +02:00
elordenador 40cd93fbef docs: Update Copilot instructions to include virtual environment setup guidance 2026-04-09 08:50:39 +02:00
elordenador fe5bcbb776 feat: Add service script for managing Docker containers on remote hosts 2026-04-09 08:50:29 +02:00