Skip to content

feat: serve the admin QGIS projects list as JSON to DataTables - #6996

Open
nboisteault wants to merge 2 commits into
3liz:masterfrom
nboisteault:admin-qgis-projects-json-datatable
Open

feat: serve the admin QGIS projects list as JSON to DataTables#6996
nboisteault wants to merge 2 commits into
3liz:masterfrom
nboisteault:admin-qgis-projects-json-datatable

Conversation

@nboisteault

Copy link
Copy Markdown
Member

The projects list page rendered a full HTML table server-side and let DataTables upgrade it in place. Switch to an AJAX/JSON source instead: a new QgisProjectsListData class (lib/, LizmapAdmin namespace) builds each row as raw values plus a precomputed CSS class/tooltip per cell, exposed by a new qgis_projects:data JSON action. The table template is now a static shell and activate_datatable.js loads rows via ajax with explicit columns, replacing the old DOM-sourced init (and fixing its hardcoded column-index bugs along the way).

Funded by 3Liz

The projects list page rendered a full HTML table server-side and let
DataTables upgrade it in place. Switch to an AJAX/JSON source instead:
a new QgisProjectsListData class (lib/, LizmapAdmin namespace) builds
each row as raw values plus a precomputed CSS class/tooltip per cell,
exposed by a new qgis_projects:data JSON action. The table template is
now a static shell and activate_datatable.js loads rows via ajax with
explicit columns, replacing the old DOM-sourced init (and fixing its
hardcoded column-index bugs along the way).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@nboisteault
nboisteault requested review from mdouchin and nworr July 9, 2026 15:27
@github-actions github-actions Bot added this to the 3.11.0 milestone Jul 9, 2026
Add explicit public visibility to the class constants, fix the docblock
indentation, and drop the unused $id foreach key.
@rldhont

rldhont commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

@nboisteault I have merged #6925 I think, you have to update your PR.

@nboisteault

Copy link
Copy Markdown
Member Author

@rldhont it is a PR we did with @nworr to test Claude Code. @nworr what do we do now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants