-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
505-atualizar-dados-cadastrais-no-perfil-do-usuario #5
505-atualizar-dados-cadastrais-no-perfil-do-usuario #5
Conversation
…sers e UserRegisterRequest para incluir os campos: cidade,estado e discord
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Realizar rollback do docker-compose
@lthurler alguns pontos a serem considerados:
|
…ps://github.com/lthurler/labs-api into Atomics-505-atualizar-perfil-de-usuario-backend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revisar migrations.
Qualquer coisa me chama que te explico a questão
ok feito |
docker-compose1.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esse arquivo deveria está nos commits?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quando der um tempo vamos realizar algumas melhorias nele :-)
storage/swagger/http.json
Outdated
@@ -0,0 +1 @@ | |||
{"openapi":"3.0.0","paths":{"\/index":{"get":{"tags":["\/Index"],"summary":"GET example","operationId":"c7a3e07c42ef883719b986d0d3195666","responses":{"200":{"description":"Description of the returned value","content":{"application\/json":{"schema":[],"example":"{\"code\":200, \"data\":[]}"}}}}}}}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentação do objeto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lthurler revisar isso aqui
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
legit, veja depois apenas os campos que sao obrigatorios e estao como nullables na migration
$table->string('permission')->nullable(); | ||
$table->string('cidade', 32); | ||
$table->string('estado', 20); | ||
$table->string('discord',30)->nullable(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
se os campos discord e linkedin sao obrigatorios porque eles podem ser nulos ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Boa pergunta.
Essa base da dados já existe, entao usuários anteriores a está feature devem ficar como null
Alteração no UserController ,LoginRepository , UserRegisterRequest para incluir os campos: cidade,estado e discord. Criado uma migrate alter table para incluir os campos no banco de dados.
Tarefa em: SouJunior/products#505