Meteor-Community-Packages / Meteor-Community-Packages/meteor-tabular

Collection results missing fields

Open
#407 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
360
Forks
132
PR merge metrics
No merged PRs in 30d

Description

I have 15 fields in the collection Prices.

For the columns I use a render function

render: function (val, type, doc, meta) {
// render documentation
// https://datatables.net/reference/option/columns.render
return renderTicker(val, doc);
}

When I console.log('render doc:' + JSON.stringify(doc)) there are only 9 fields in the doc parameter.

Using the ephemer:reactive-datatables component all 15 fields from the Prices collection are shown in the console.log('render doc:' + JSON.stringify(doc).

What could possibly be causing this strange behaviour?

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 reproducing the issue with the 15-field Prices collection and inspect the render callback's doc value, then compare it with the ephemer:reactive-datatables behavior. The issue is resolved when the cause of the missing six fields is identified and the expected collection fields are available consistently or the limitation is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.