Generated table links within listener become unnavigable when changing fields within listener

Open
#2,429 0 comments 0 reactions 1 assignee View on GitHub

@tabuna is already working on this.

Since Nov 9, 2022.

Assessment

This issue has not been assessed yet.

Description

Errors

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:

  1. Create a Screen with a connection to a DB table/query with multiple pages' worth of data, use ->filters() in the query
  2. Create a Table which will render some of the fields from the DB query
  3. Create a listener, listen to the correct value from earlier screen, add the Table to the layouts() function
  4. Add any kind of filtering option (dropdown, date selector or whatever) to the listener that will filter the query
  5. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from orchidsoftware/platform

All issues in orchidsoftware/platform

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.