fst icon indicating copy to clipboard operation
fst copied to clipboard

Feature/set preview limit

Open xtomflo opened this issue 2 years ago • 8 comments

Added the set preview limit, worked as far as I've tested it

Removed redundant call of setup_logger() as it was resulting in triplicated logging output. ie everything that was logged after it, was printed 3 times.

xtomflo avatar Apr 01 '23 23:04 xtomflo

Cool I'll take a deeper look at this on Monday! Thanks for the PR. Love that we're evolving this together :)

sungchun12 avatar Apr 02 '23 00:04 sungchun12

The preview limit isn't working for me because from fst.config_defaults import CONFIG on L20 is read by the query_handler.py before it can be reset with the --preview-limit flag. I recommend following some general guidance from GPT4 below that'll point you in the right direction.

image image

sungchun12 avatar Apr 02 '23 01:04 sungchun12

I'm going to hold off on merging this until 4/19 because I want to present a couple wild features to my company on 4/18. I'll give you a shoutout for all your help!

sungchun12 avatar Apr 12 '23 18:04 sungchun12

sounds good to me! thanks a lot for the shoutout :) I'm traveling at the moment so out of the working routine but will be back next week to make some more progress. good luck with the presentation!

xtomflo avatar Apr 14 '23 14:04 xtomflo

The preview limit isn't working for me because from fst.config_defaults import CONFIG on L20 is read by the query_handler.py before it can be reset with the --preview-limit flag. I recommend following some general guidance from GPT4 below that'll point you in the right direction.

This is strange as well. It's working on WSL and it's working in Codespaces as well as expected. I'm still updating to your suggestion, it's indeed a bit cleaner

xtomflo avatar Apr 14 '23 15:04 xtomflo

Added a bunch of changes and should be ready for review. The duplicated log outputs should be resolved by a check in setup_logger() for an already existing handler. rows_preview_limit is passed through to the query handler without setting config variable

xtomflo avatar Apr 26 '23 09:04 xtomflo

Lovely! I'll take a look this week and add comments!

sungchun12 avatar Apr 26 '23 16:04 sungchun12

Can you show me a screenshot of this working?

I can't get it to work at all with or without the preview flag: fst start fst start --preview-limit 10.

Please resolve the conflicts of the files above listed by Github!

sungchun12 avatar May 01 '23 21:05 sungchun12