Generated table links within listener become unnavigable when changing fields within listener
@tabuna is already working on this.
Since Nov 9, 2022.
Assessment
This issue has not been assessed yet.
Description
Describe the bug
I have a screen with a Listener and the listener renders a multi-page table based on a database query. Altering the listener's fields filter and update the table correctly from my async function, but the generated links (page numbers, header sorting links etc) become unusable with an URL like "http://127.0.0.1:8000/async/eyJpdiI6IkczU25ua3RISndoTlNoM3lsam5weEE9PSIsInZhbHVlIjoia045T2M0ZkRiWWdNbTFRdEptVVR0WDBWSHJYc3lhbnkxUitFbVgwKzFqWkNlekxlbUg4R0IrcFpHSVNCejNVdSIsIm1hYyI6Ijc2MDdjZGM4YjA2NzcwZDEwODIzNTZjMjcyOGYyZTk2YmJiMDNmMDQ2OTlhNTY1OWYwYzRlMTRmNTM0NmJiM2IiLCJ0YWciOiIifQ==/asyncUpdatePublisherStats/52c6e5d808b6c62f5570c1bdfc49509c3da10e30?start_date=2015-01-01&end_date=2016-11-01&grouping=1&filter_table=0&user_id=11945&sort=reactions"
To Reproduce
Steps to reproduce the behavior:
- Create a Screen with a connection to a DB table/query with multiple pages' worth of data, use ->filters() in the query
- Create a Table which will render some of the fields from the DB query
- Create a listener, listen to the correct value from earlier screen, add the Table to the layouts() function
- Add any kind of filtering option (dropdown, date selector or whatever) to the listener that will filter the query
- Now test the page, change any of the values in the Listener's layouts() and try to navigate to a different page on the table
Expected behavior
Clicking page numbers should direct me to the correct page within the table with the same filters enabled, and clicking the table headers should reload the page with sorting enabled.
Desktop:
- OS: Ubuntu 22.04.1 LTS
- Browser: Firefox
- Version 106.0.5 (64-bit)
Server:
- Platfrom Version: 13.0
- Laravel Version: 9.19.0
- PHP Version: 8.1.9
- Database: MySql
- Database Version: 8.0.31 (Ubuntu)
- Dominant language
- PHP
- Stars
- 4.8k
- Forks
- 663
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 7
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from orchidsoftware/platform
-
Docs
orchidsoftware/platform#3105 · 1 assignee ·
-
Docs
orchidsoftware/platform#3074 · 1 comment · 1 assignee ·
-
Errors
orchidsoftware/platform#3065 · 1 assignee ·
-
Errors
orchidsoftware/platform#3060 · 2 comments · 1 assignee ·
-
orchidsoftware/platform#3059 · 1 assignee ·
All issues in orchidsoftware/platform
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phingofficial/phing#2025 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
silverstripe/developer-docs#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100