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

Stuck in processing state if allow function returns false

Open
#344 0 comments 0 reactions 0 assignees View on GitHub
potential bug will accept pull request
Dominant language
JavaScript
Stars
360
Forks
132
PR merge metrics
No merged PRs in 30d

Description

Hi,

When using the `allow` function if I `return false` in it (like in the example) the table stays in "processing/loading" state, instead of just saying "No data available in table"... I patched it by replacing `self.ready(); return;` with `selector = {_id: {$in: []}}` (a selector that returns nothing) in the `tabular_getInfo` publication, but I guess it's not ideal.

Am I missing something ?

Cheers & thanks for the package !

Contributor guide

Open the contributing guide

Research direction

Start at the tabular_getInfo publication and trace how an allow function returning false is handled after self.ready(). Reproduce the issue with the example described in the report and verify that the table leaves its processing state and displays "No data available in table" without relying on the proposed empty selector workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.