MedicOneSystems / MedicOneSystems/livewire-datatables

->hide() removes column from Export totally

Open
#545 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
1.2k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

Column::name('notes')
->truncate(100)
->label('Notes')
->sortable(true)
->hide() // HERE
->filterable(),

This will result in the notes column being completely ignored during export regardless of if the column has been turned on.

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.

Research direction

Start by tracing the export handling for the Column chain shown in the issue, especially the interaction between hide() and whether a column is enabled for export. Reproduce the notes-column case, then add or update a regression test if the repository has coverage for exports. Done means a hidden column can still appear in export when it has been turned on.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.