Skip to content

PR a repositorio base para corrección - grupo 2#5

Open
LeWricka wants to merge 66 commits into
540:developfrom
MKoding:develop
Open

PR a repositorio base para corrección - grupo 2#5
LeWricka wants to merge 66 commits into
540:developfrom
MKoding:develop

Conversation

@LeWricka

Copy link
Copy Markdown
Contributor

No description provided.

MKoding and others added 30 commits April 21, 2021 15:29
Create label.yml for automatic labeling in all the pull requests
[#2] - Pre-commit hook for PHP Unit Test updated
[] - Updated readme.md with git rules
[] - 540 new update for the project
[#11] - Endpoint create wallet cryptocurrency
[] - Project cache files cleanup
[] - Added database migrations and seeders
[] - Updated database migrations and seeders with users table
MKoding and others added 29 commits May 13, 2021 15:19
[#12] - Closed issue #12 'Get wallet balance by id'
[#10] - Closed issue #10 'Open wallet by user id'
[#32|#9] - Closed issues #32 and #9 'Buy and sell coins unit tests'
[#15] - Closed issue #15 'Get wallet balance by id unit tests'
[#13] - Closed issue #13 'Open wallet by user id unit tests'
Closed issue #37 'Create database migations and seeders'
[] - Fixed multiple bugs and improved code quality
[#5] - Closed issue #5 'Create auto validation for laravel project'
[#35] - Closed issue #35 'Create all the integration tests for the laravel project'
[] - Multiple bugs fixed in the tests and datasources
[#16] - Closed issue #16 'Create all the E2E tests for the laravel project'
[] - Refactor of the code by splitting API functions in different classes and tests
Comment thread .github/labeler.yml
@@ -0,0 +1,33 @@
readme:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nice

php artisan package:discover
php artisan key:generate
#- name: Database migation
# run: |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No es necesario, eliminadlo

@@ -0,0 +1,53 @@
name: Laravel Validation
on:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nice

@@ -24,7 +24,6 @@ public function __invoke(string $email): JsonResponse
{

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Este fichero no se utiliza, podríais eliminarlo, no aporta y es lo que viene de ejemplo

@@ -0,0 +1,16 @@
<?php

namespace App\Models;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Esto deberíais haberlo borrado, no movido :)

Comment thread README.md
## How to colaborate with the project
### Install the pre-commit:
- From outside the machine:
- Run: composer install

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Buena práctica, definición de readme, top

Comment thread git-hooks/pre-commit
@@ -0,0 +1,86 @@
#!/bin/sh

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Top, es una opción.

Comment thread phpcs.xml
@@ -0,0 +1,11 @@
<?xml version="1.0"?>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

TOP


public function __invoke(Request $request)
{
try {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Una mejora, podría haber sido sacar todas estas validaciones fuera del controller para poder testarlo. Pero bueno esto ya es algo más top. Pero como idea os puede servir. De hecho, Laravel tiene un tema llamar CustomRequest al que se le pueden meter reglas de validación

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.

3 participants