feat: make display limit configurable from user settings#60761
Conversation
dfdba91 to
7998788
Compare
|
Thanks for the PR! I really appreciate the thorough description and the video! Nice job! However, I think we should avoid changing the API if we can. So another option would be to keep the query parameter, but instead let the client get the display limit from the config. WDYT? Thinking about it ... I know this was my suggestion, but I think "settings" might be a better choice than site config, because users can override it instead of having to ask an admin to change it for everyone. We could use "search.displayLimit" as key. There is a function This design wouldn't require any backend or API changes. |
|
@namit-chandwani friendly ping 👋 . Are you planning to work on this in the near term? It's absolutely fine if not, but we started tracking this on our board and I just need to know if this is actively being worked on or not. |
|
@stefanhengl Hey, I was travelling back then so didn't get a chance to look into this. I'll resume my work on this feature today and push the new changes within a few days :) |
d7296d9 to
3420049
Compare
3420049 to
b75a0b0
Compare
b75a0b0 to
9028ba6
Compare
|
Hey @stefanhengl, apologies for the delay. I've pushed the changes based on the updated requirements now:
Here's the new screen recording of the testing performed locally after making these changes: Screen.Recording.2024-04-26.at.4.17.08.AM.movRequest you to review the changes whenever free
|
…ser settings docs page (#279) ## Description - Changes to the documentation based on: - Issue: https://github.com/sourcegraph/sourcegraph/issues/36691 - PR: https://github.com/sourcegraph/sourcegraph/pull/60761
stefanhengl
left a comment
There was a problem hiding this comment.
LGTM! This turned out really nice! Thanks for your work!
| featureOverrides: [], | ||
| chunkMatches: true, | ||
| searchMode, | ||
| // TODO: populate this from user settings |
There was a problem hiding this comment.
CC @sourcegraph/code-search I added this TODO. Our external contributor @namit-chandwani has been very patient with us, and I didn't want to hold up this PR to implement it.
There was a problem hiding this comment.
Thanks! Will follow up after it's merged
|
Merging on behalf of @stefanhengl since he's out. Thanks again for your contribution ! |
Linked Issues
Motivation and Context:
Changes Made:
search.displayLimitto the User settingssearch.displayLimitvalue while performing stream searchType of change:
Checklist:
Follow-up tasks (if any):
Test Plan
Trimmed.SR.mov
Additional Comments