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: search order by final #6976

Merged
merged 1 commit into from
May 3, 2024
Merged

feat: search order by final #6976

merged 1 commit into from
May 3, 2024

Conversation

sjaanus
Copy link
Contributor

@sjaanus sjaanus commented May 3, 2024

Final rank has always been ordering correctly by default. But after 5.12 I see some issues that sometimes it is not ordered. Just to be extra sure, I am for ordering it.

Copy link

vercel bot commented May 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) May 3, 2024 9:44am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) May 3, 2024 9:44am

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: FAILED

  • Declining Code Health: 1 findings(s) 🚩

View detailed results in CodeScene

Comment on lines +291 to +292
.whereBetween('final_rank', [offset + 1, offset + limit])
.orderBy('final_rank');

Choose a reason for hiding this comment

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

❌ Getting worse: Complex Method
FeatureSearchStore.searchFeatures already has high cyclomatic complexity, and now it increases in Lines of Code from 227 to 228

Suppress

@sjaanus sjaanus enabled auto-merge (squash) May 3, 2024 10:30
@sjaanus sjaanus disabled auto-merge May 3, 2024 10:30
@sjaanus sjaanus merged commit 2c05f1a into main May 3, 2024
7 of 9 checks passed
@sjaanus sjaanus deleted the order-by-final branch May 3, 2024 10:30
sjaanus added a commit that referenced this pull request May 3, 2024
Final rank has always been ordering correctly by default. But after 5.12
I see some issues that sometimes it is not ordered. Just to be extra
sure, I am for ordering it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

1 participant