Skip to content
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

feat: add cancelUserTicketAddons mutation #303

Merged
merged 2 commits into from
Nov 3, 2024

Conversation

TextC0de
Copy link
Collaborator

@TextC0de TextC0de commented Nov 3, 2024

Esta PR introduce una nueva mutación cancelUserTicketAddons que permite a los usuarios cancelar múltiples complementos (addons) de sus tickets simultáneamente.

Esto permitirá por ejemplo, que alguien quiere cancele su asistencia a un workshop.

Características principales:

  • Nueva mutación para cancelar varios addons de tickets en una sola operación
  • Validaciones de seguridad para asegurar que los complementos pertenezcan al usuario
  • Soporte inicial para cancelación de complementos gratuitos
  • Verificación de dependencias entre complementos para prevenir cancelaciones inválidas por dependencias existentes

Limitaciones actuales y tareas para futuro:

  • ⚠️ Solo soporta la cancelación de addons gratuitos
  • ⚠️ No permite cancelar addons que tienen otros complementos dependientes
  • ⚠️ No incluye lógica de reembolso para complementos pagados por lo tanto no soporta ese caso

Copy link

github-actions bot commented Nov 3, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 85.94% 19470 / 22654
🔵 Statements 85.94% 19470 / 22654
🔵 Functions 79.81% 506 / 634
🔵 Branches 81.21% 1543 / 1900
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/generated/types.ts 100% 100% 100% 100%
src/schema/userTicketsAddons/mutations.ts 93.63% 90% 100% 93.63% 105-106, 145-150, 176-181, 227-232, 256-261, 281-282
src/schema/userTicketsAddons/tests/cancelUserTicketAddons.generated.ts 100% 100% 100% 100%
Generated in workflow #1288 for commit 48d5fd9 by the Vitest Coverage Report Action

@TextC0de TextC0de merged commit ec02343 into main Nov 3, 2024
6 checks passed
@TextC0de TextC0de deleted the textcode/feat-cancel-user-ticket-addons-mutation branch November 3, 2024 05:02
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.

1 participant