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/#0901 manage users #6

Merged
merged 3 commits into from
Sep 14, 2023
Merged

Feat/#0901 manage users #6

merged 3 commits into from
Sep 14, 2023

Conversation

ThHenrique
Copy link
Member

Crud de usuários

Issues relacionadas

#3

PR Type

Que tipo de mudança a PR introduz?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Descreva a alteração

Nessa PR foi desenvolvido todas funcionalidades relacionadas a usuário, sem levar em consideração a autorização para realizar as operações, por exemplo, usuário VIEWER editar o privilégio de um usuário ADMIN, isso será conteplado em uma task futura.

Novos métodos

  1. Busca por usuários com filtro (name, email e role)
  2. Visualizar minhas informações
  3. Atualizar minhas informações
  4. Criar usuário
  5. Gerenciar privilégio de usuário
  6. Deletar usuário

Todos esses métodos foram implementados baseando-se nos requisitos dessa task alinhado ao protótipo desenvolvido.

Outras informações

As novas rotas são estão disponíveis e podem ser testadas no swagger

@ThHenrique ThHenrique added feature request This issue is a function asked by the client p.o approval This issue needs approval from the product owner pull request Pull resquest that is associated to an issue back Tasks that are related to the backend development labels Sep 12, 2023
@ThHenrique ThHenrique added this to the Sprint 1 milestone Sep 12, 2023
@ThHenrique ThHenrique self-assigned this Sep 12, 2023
@ThHenrique ThHenrique changed the base branch from main to development September 12, 2023 03:50
@JoaoM-py JoaoM-py self-requested a review September 12, 2023 14:05
@drisabelles drisabelles linked an issue Sep 12, 2023 that may be closed by this pull request
8 tasks
@ThHenrique ThHenrique merged commit 8c0307b into development Sep 14, 2023
@ThHenrique ThHenrique deleted the feat/#0901-manage-users branch September 14, 2023 02:58
duck-devOps added a commit that referenced this pull request Sep 19, 2023
* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

Co-authored-by: Thiago Henrique Ferreira <henriquethiago298@gmail.com>
ThHenrique added a commit that referenced this pull request Sep 25, 2023
* Feat/#0901 manage users (#6)

* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

* Feat/#0702 search comments (#9)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* Feat/seed db (#10)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* feat: create seed db

* fix: add CostBenefit and Others in commentTopicEnum
ThHenrique added a commit that referenced this pull request Oct 9, 2023
* Development (#11)

* Feat/#0901 manage users (#6)

* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

* Feat/#0702 search comments (#9)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* Feat/seed db (#10)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* feat: create seed db

* fix: add CostBenefit and Others in commentTopicEnum

* docs: update header

---------

Co-authored-by: Isabelle Ribeiro <79321198+drisabelles@users.noreply.github.com>
ThHenrique added a commit that referenced this pull request Oct 14, 2023
* Development (#11)

* Feat/#0901 manage users (#6)

* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

* Feat/#0702 search comments (#9)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* Feat/seed db (#10)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* feat: create seed db

* fix: add CostBenefit and Others in commentTopicEnum

* docs: update header

* fix: parse snack case fields to camel case field

* fix: create user mongo entity

* fix: handle query withoud result

* rename addedAt field to createdAt

---------

Co-authored-by: Isabelle Ribeiro <79321198+drisabelles@users.noreply.github.com>
ThHenrique added a commit that referenced this pull request Oct 14, 2023
* Development (#11)

* Feat/#0901 manage users (#6)

* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

* Feat/#0702 search comments (#9)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* Feat/seed db (#10)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* feat: create seed db

* fix: add CostBenefit and Others in commentTopicEnum

* docs: update header

* [#0405] Avaliações por Estado #25

* feat: format result of commentsPerState method

---------

Co-authored-by: Isabelle Ribeiro <79321198+drisabelles@users.noreply.github.com>
ThHenrique added a commit that referenced this pull request Oct 16, 2023
* Feat/#0901 manage users (#6)

* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

* Feat/#0702 search comments (#9)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* Feat/seed db (#10)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* feat: create seed db

* fix: add CostBenefit and Others in commentTopicEnum

* Atualizando branch development (#26)

* Development (#11)

* Feat/#0901 manage users (#6)

* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

* Feat/#0702 search comments (#9)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* Feat/seed db (#10)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* feat: create seed db

* fix: add CostBenefit and Others in commentTopicEnum

* docs: update header

---------

Co-authored-by: Isabelle Ribeiro <79321198+drisabelles@users.noreply.github.com>

* Feat/setup mongo client (#27)

* feat: setup mongo client and crud users

* remove prisma orm

* feat: pagination with skip method

* refactor: #14 #15 #19

* fix: [#43] Corrigir filtro de datas #24

* refactor: [#14] Refatoração: corrigir os code smells do backend #13

* fix: search users

* fixed change of sonnar issue alert

* fixed change of sonnar issue alert

* Feat/#22 ranking topic (#28)

* feat: setup mongo client and crud users

* remove prisma orm

* feat: pagination with skip method

* refactor: #14 #15 #19

* fix: [#43] Corrigir filtro de datas #24

* refactor: [#14] Refatoração: corrigir os code smells do backend #13

* fix: search users

* fixed change of sonnar issue alert

* fixed change of sonnar issue alert

* feat: #22 ranking topics

* Feat/#23 time series data topics (#29)

* feat: setup mongo client and crud users

* remove prisma orm

* feat: pagination with skip method

* refactor: #14 #15 #19

* fix: [#43] Corrigir filtro de datas #24

* refactor: [#14] Refatoração: corrigir os code smells do backend #13

* fix: search users

* fixed change of sonnar issue alert

* fixed change of sonnar issue alert

* feat: #22 ranking topics

* feat: #23 evolucao de temas

* Fix/rename documents fields (#31)

* Development (#11)

* Feat/#0901 manage users (#6)

* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

* Feat/#0702 search comments (#9)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* Feat/seed db (#10)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* feat: create seed db

* fix: add CostBenefit and Others in commentTopicEnum

* docs: update header

* fix: parse snack case fields to camel case field

* fix: create user mongo entity

* fix: handle query withoud result

* rename addedAt field to createdAt

---------

Co-authored-by: Isabelle Ribeiro <79321198+drisabelles@users.noreply.github.com>

* Feat/#25 comments per state (#30)

* Development (#11)

* Feat/#0901 manage users (#6)

* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

* Feat/#0702 search comments (#9)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* Feat/seed db (#10)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* feat: create seed db

* fix: add CostBenefit and Others in commentTopicEnum

* docs: update header

* [#0405] Avaliações por Estado #25

* feat: format result of commentsPerState method

---------

Co-authored-by: Isabelle Ribeiro <79321198+drisabelles@users.noreply.github.com>

* Feat/unit tests mongo (#33)

* trying test the app

* general unit tests done

* create same user test

* run tests in Sonar CI

* run tests in Sonar CI

* update sonarcloud ci file

* update node version sonarcloud ci file

* update add enviroment sonarcloud ci file

* update add environment vars in sonarcloud ci

* update rename environment vars in sonarcloud ci

* feat ci update secret name in sonarcloud file

* update users test succesfully done

* change rootDir jest config

* config test coverage

* remove unnecessary files

---------

Co-authored-by: thhenrique <henriquethiago298@gmail.com>

* feat: filter dashboard (#35)

* fix sonar issues (#36)

---------

Co-authored-by: Isabelle Ribeiro <79321198+drisabelles@users.noreply.github.com>
Co-authored-by: Gabriel Camargo Leite <gabriel.cleite@outlook.com>
ThHenrique added a commit that referenced this pull request Nov 6, 2023
* Feat/#0901 manage users (#6)

* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

* Feat/#0702 search comments (#9)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* Feat/seed db (#10)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* feat: create seed db

* fix: add CostBenefit and Others in commentTopicEnum

* Atualizando branch development (#26)

* Development (#11)

* Feat/#0901 manage users (#6)

* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

* Feat/#0702 search comments (#9)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* Feat/seed db (#10)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* feat: create seed db

* fix: add CostBenefit and Others in commentTopicEnum

* docs: update header

---------

Co-authored-by: Isabelle Ribeiro <79321198+drisabelles@users.noreply.github.com>

* Feat/setup mongo client (#27)

* feat: setup mongo client and crud users

* remove prisma orm

* feat: pagination with skip method

* refactor: #14 #15 #19

* fix: [#43] Corrigir filtro de datas #24

* refactor: [#14] Refatoração: corrigir os code smells do backend #13

* fix: search users

* fixed change of sonnar issue alert

* fixed change of sonnar issue alert

* Feat/#22 ranking topic (#28)

* feat: setup mongo client and crud users

* remove prisma orm

* feat: pagination with skip method

* refactor: #14 #15 #19

* fix: [#43] Corrigir filtro de datas #24

* refactor: [#14] Refatoração: corrigir os code smells do backend #13

* fix: search users

* fixed change of sonnar issue alert

* fixed change of sonnar issue alert

* feat: #22 ranking topics

* Feat/#23 time series data topics (#29)

* feat: setup mongo client and crud users

* remove prisma orm

* feat: pagination with skip method

* refactor: #14 #15 #19

* fix: [#43] Corrigir filtro de datas #24

* refactor: [#14] Refatoração: corrigir os code smells do backend #13

* fix: search users

* fixed change of sonnar issue alert

* fixed change of sonnar issue alert

* feat: #22 ranking topics

* feat: #23 evolucao de temas

* Fix/rename documents fields (#31)

* Development (#11)

* Feat/#0901 manage users (#6)

* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

* Feat/#0702 search comments (#9)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* Feat/seed db (#10)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* feat: create seed db

* fix: add CostBenefit and Others in commentTopicEnum

* docs: update header

* fix: parse snack case fields to camel case field

* fix: create user mongo entity

* fix: handle query withoud result

* rename addedAt field to createdAt

---------

Co-authored-by: Isabelle Ribeiro <79321198+drisabelles@users.noreply.github.com>

* Feat/#25 comments per state (#30)

* Development (#11)

* Feat/#0901 manage users (#6)

* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

* Feat/#0702 search comments (#9)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* Feat/seed db (#10)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* feat: create seed db

* fix: add CostBenefit and Others in commentTopicEnum

* docs: update header

* [#0405] Avaliações por Estado #25

* feat: format result of commentsPerState method

---------

Co-authored-by: Isabelle Ribeiro <79321198+drisabelles@users.noreply.github.com>

* Feat/unit tests mongo (#33)

* trying test the app

* general unit tests done

* create same user test

* run tests in Sonar CI

* run tests in Sonar CI

* update sonarcloud ci file

* update node version sonarcloud ci file

* update add enviroment sonarcloud ci file

* update add environment vars in sonarcloud ci

* update rename environment vars in sonarcloud ci

* feat ci update secret name in sonarcloud file

* update users test succesfully done

* change rootDir jest config

* config test coverage

* remove unnecessary files

---------

Co-authored-by: thhenrique <henriquethiago298@gmail.com>

* feat: filter dashboard (#35)

* fix sonar issues (#36)

* hotfix: dashboard month filters (#42)

* Feat/graphics aggregation (#46)

* fix: user password set null

* feat: #0411 #0407 #0409 #0413

* remove commentSentiment and move to rakingOfTopics

* Feat/graphics aggregation (#47)

* fix: user password set null

* feat: #0411 #0407 #0409 #0413

* remove commentSentiment and move to rakingOfTopics

* feat: comments per age group and gender

---------

Co-authored-by: Isabelle Ribeiro <79321198+drisabelles@users.noreply.github.com>
Co-authored-by: Gabriel Camargo Leite <gabriel.cleite@outlook.com>
drisabelles added a commit that referenced this pull request Nov 30, 2023
* Feat/#0901 manage users (#6)

* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

* Feat/#0702 search comments (#9)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* Feat/seed db (#10)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* feat: create seed db

* fix: add CostBenefit and Others in commentTopicEnum

* Atualizando branch development (#26)

* Development (#11)

* Feat/#0901 manage users (#6)

* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

* Feat/#0702 search comments (#9)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* Feat/seed db (#10)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* feat: create seed db

* fix: add CostBenefit and Others in commentTopicEnum

* docs: update header

---------

Co-authored-by: Isabelle Ribeiro <79321198+drisabelles@users.noreply.github.com>

* Feat/setup mongo client (#27)

* feat: setup mongo client and crud users

* remove prisma orm

* feat: pagination with skip method

* refactor: #14 #15 #19

* fix: [#43] Corrigir filtro de datas #24

* refactor: [#14] Refatoração: corrigir os code smells do backend #13

* fix: search users

* fixed change of sonnar issue alert

* fixed change of sonnar issue alert

* Feat/#22 ranking topic (#28)

* feat: setup mongo client and crud users

* remove prisma orm

* feat: pagination with skip method

* refactor: #14 #15 #19

* fix: [#43] Corrigir filtro de datas #24

* refactor: [#14] Refatoração: corrigir os code smells do backend #13

* fix: search users

* fixed change of sonnar issue alert

* fixed change of sonnar issue alert

* feat: #22 ranking topics

* Feat/#23 time series data topics (#29)

* feat: setup mongo client and crud users

* remove prisma orm

* feat: pagination with skip method

* refactor: #14 #15 #19

* fix: [#43] Corrigir filtro de datas #24

* refactor: [#14] Refatoração: corrigir os code smells do backend #13

* fix: search users

* fixed change of sonnar issue alert

* fixed change of sonnar issue alert

* feat: #22 ranking topics

* feat: #23 evolucao de temas

* Fix/rename documents fields (#31)

* Development (#11)

* Feat/#0901 manage users (#6)

* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

* Feat/#0702 search comments (#9)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* Feat/seed db (#10)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* feat: create seed db

* fix: add CostBenefit and Others in commentTopicEnum

* docs: update header

* fix: parse snack case fields to camel case field

* fix: create user mongo entity

* fix: handle query withoud result

* rename addedAt field to createdAt

---------

Co-authored-by: Isabelle Ribeiro <79321198+drisabelles@users.noreply.github.com>

* Feat/#25 comments per state (#30)

* Development (#11)

* Feat/#0901 manage users (#6)

* feat: crud users

* feat: crud users, routes in insomnia

* fix: users crud, add filter by role

* Feat/#0702 search comments (#9)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* Feat/seed db (#10)

* chore: set db default mongodb

* feat: #0702 create paginator for requests

* fix: remove ParseUUID in DTOS

* feat: search comments and paginate result

* fix: review change by joao of PR #16

* feat: create seed db

* fix: add CostBenefit and Others in commentTopicEnum

* docs: update header

* [#0405] Avaliações por Estado #25

* feat: format result of commentsPerState method

---------

Co-authored-by: Isabelle Ribeiro <79321198+drisabelles@users.noreply.github.com>

* Feat/unit tests mongo (#33)

* trying test the app

* general unit tests done

* create same user test

* run tests in Sonar CI

* run tests in Sonar CI

* update sonarcloud ci file

* update node version sonarcloud ci file

* update add enviroment sonarcloud ci file

* update add environment vars in sonarcloud ci

* update rename environment vars in sonarcloud ci

* feat ci update secret name in sonarcloud file

* update users test succesfully done

* change rootDir jest config

* config test coverage

* remove unnecessary files

---------

Co-authored-by: thhenrique <henriquethiago298@gmail.com>

* feat: filter dashboard (#35)

* fix sonar issues (#36)

* hotfix: dashboard month filters (#42)

* Feat/graphics aggregation (#46)

* fix: user password set null

* feat: #0411 #0407 #0409 #0413

* remove commentSentiment and move to rakingOfTopics

* Feat/graphics aggregation (#47)

* fix: user password set null

* feat: #0411 #0407 #0409 #0413

* remove commentSentiment and move to rakingOfTopics

* feat: comments per age group and gender

* Feat/pln metrics (#60)

* create nlp stats entity repository and impl

* dailyTotalProcessingTime and timeByPipelineStage

* create filter dto to performance metrics

* feat: pln metrics finish integration with mongodb

---------

Co-authored-by: Isabelle Ribeiro <79321198+drisabelles@users.noreply.github.com>
Co-authored-by: Gabriel Camargo Leite <gabriel.cleite@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back Tasks that are related to the backend development feature request This issue is a function asked by the client p.o approval This issue needs approval from the product owner pull request Pull resquest that is associated to an issue
Projects
No open projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[#0901] CRUD de usuários
3 participants