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

better support for wide tables (set a view as default) #7

Closed
cldellow opened this issue Jan 22, 2023 · 2 comments
Closed

better support for wide tables (set a view as default) #7

cldellow opened this issue Jan 22, 2023 · 2 comments
Labels
wontfix This will not be worked on

Comments

@cldellow
Copy link
Owner

cldellow commented Jan 22, 2023

simonw/datasette#596 (comment)

Once you've customized your view, eg https://global-power-plants.datasettes.com/global-power-plants/global-power-plants?_nocol=gppd_idnr&_nocol=other_fuel2&_nocol=owner&_nocol=other_fuel3&_sort_desc=capacity_mw&_nocol=other_fuel1

It'd be neat if you could do two things:

  1. as an end-user, flag it so that going to https://global-power-plants.datasettes.com/global-power-plants/global-power-plants in the future redirected you to that customized view
  2. as the Datasette owner, flag it so that becomes the default view for users

(1) could be done with localStorage if we're willing to be inefficient (we'd load the page; then immediately redirect the user on the client-side); or cookies (but we might be likely to blow through the 4KB limit pretty fast). It would be best to do this with persistent storage. The preference could be linked either to an ephemeral identifier stored in a cookie, or your identity as an actor.

(2) would require persistent storage in the DB, maybe a hidden table

@cldellow
Copy link
Owner Author

Heh, I just wontfixed #5, but this might actually be a good tool for that: make it easy to promote interesting slices of your data.

@cldellow cldellow added the wontfix This will not be worked on label Feb 12, 2023
@cldellow
Copy link
Owner Author

Realistically, I'm not doing this soon, so closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant