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: Semi-persistent local filtering on table through URL parameters #1402

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

enjeck
Copy link
Contributor

@enjeck enjeck commented Oct 4, 2024

Fixes #662

At the moment, you can try it out with the URL http://local-nc-domain.com/index.php/apps/tables/#/tempview?tableId=1&columns=[1,2,3,4]&filter=1:contains:row&sort=1:asc.

It requires specifying the tableId, columns id and then the various filters and sort.

Still a lot a work to be done here:

  • Decide how URLs would be created. You could manually modify the URL parameters, but this gets long and complicated. We should use the 'ViewSettings' modal to specify what the view should look like and apply these to a URL that can be copies
  • Maybe create a new entity for these semi-persistent view. Currently, View.php is modified to store the columns and filtered/sorted rows that would be sent to the frontend. It will be better to create a separate file for this and avoid modifying the existing View.php.
  • Properly parse the query params, especially in cases where multiple filters are specifiec
  • Think about how to handle searching. We would like to have a search param (e.g ?search=test). Right now, I believe Tables searching is being done in the frontend using the search bar, not in the backend. So the easiest way to do this would be to just add whatever search term to the search bar.

@enjeck enjeck added enhancement New feature or request 2. developing Work in progress labels Oct 4, 2024
@enjeck enjeck self-assigned this Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress enhancement New feature or request
Projects
Status: 🧭 Planning evaluation (don't pick)
Development

Successfully merging this pull request may close these issues.

Semi-persistent local filtering on table/view data through URL parameters
1 participant