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

Prioriza usuários premium #226

Merged
merged 8 commits into from
Feb 15, 2024
Merged

Prioriza usuários premium #226

merged 8 commits into from
Feb 15, 2024

Conversation

hreis1
Copy link
Contributor

@hreis1 hreis1 commented Feb 15, 2024

Resolve #214

Os resultados das buscas de perfis no Cola?Bora! estão ordenados primeiramente por tipo de assinatura, dando prioridade aos perfis premium, e em segundo lugar por ordem alfabética, tanto na busca por todos os perfis quanto na busca com parâmetros.

-ordena perfis por tipo de assinatura e depois por ordem alfabética
@hreis1 hreis1 self-assigned this Feb 15, 2024
Copy link
Contributor

@caiquedv caiquedv left a comment

Choose a reason for hiding this comment

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

Beleza PH, mandou bem!

spec/models/subscription_spec.rb Outdated Show resolved Hide resolved
spec/factories/subscriptions.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@paulohenrique-gh paulohenrique-gh left a comment

Choose a reason for hiding this comment

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

Legal PH, o método pra ordenar os usuários ficou bem limpo

Copy link
Member

@DanSmaR DanSmaR left a comment

Choose a reason for hiding this comment

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

Bom trabalho @hreis1 :)

@hreis1 hreis1 merged commit d216962 into main Feb 15, 2024
2 checks passed
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.

[Assinaturas] Ordenar resultados das APIs de busca de usuário, priorizando usuários Premium
4 participants