orama icon indicating copy to clipboard operation
orama copied to clipboard

Bugfix/561 - facets limit not works

Open SamSalvatico opened this issue 2 years ago • 5 comments

Related to issue 561

I fixed the casting of the facets config in code, that was preventing to get the correct property value from the set config.

Also added tests for both default and non default limit.

Please Note: I didn't find mention, in code, specifically in the declaration of StringFacetDefinition, to the size field, then I updated the docs removing it and replacing it with limit, where needed.

SamSalvatico avatar Dec 19 '23 21:12 SamSalvatico

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

Name Status Preview Comments Updated (UTC)
orama-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 9, 2024 3:36pm

vercel[bot] avatar Dec 19 '23 21:12 vercel[bot]

Thanks for your contribution. I don't understand the last test: the number of quotes is 11. Which expected behavior should we have when a limit of 20 is specified? Could you also add a test for a limit of 5 (less than 11)?

allevo avatar Dec 20 '23 09:12 allevo

Yep, I will add it, @allevo

I set 20 and not 11 just to make it more "realistic", given that usually you set the number of items you need as results for pagination, instead of the number of the items you will receive

SamSalvatico avatar Dec 20 '23 09:12 SamSalvatico

Any progress on this PR?

davidsoderberg avatar Jan 12 '24 11:01 davidsoderberg

+1 Appreciate the effort. Would love to see this merged as it's causing me issues in production

Sinister747 avatar Feb 06 '24 02:02 Sinister747

@micheleriva Apologies for tag, but would it be possible to get this merged and released? It's an important fix

Sinister747 avatar Feb 09 '24 15:02 Sinister747

Hi @Sinister747, @allevo and I will review this again and try to release this by tomorrow. Thanks for the patience

micheleriva avatar Feb 09 '24 15:02 micheleriva

@Sinister747 released right now

micheleriva avatar Feb 09 '24 20:02 micheleriva

@Sinister747 released right now

Thank you very much, really appreciate it. Enjoy your weekend everyone

Sinister747 avatar Feb 09 '24 21:02 Sinister747