Meteor-Community-Packages / Meteor-Community-Packages/meteor-tabular
Collection results missing fields
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
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.
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