Page MenuHomePhabricator

"0 of ?" is displayed when no articles are fetched
Open, Needs TriagePublicBUG REPORT

Description

Steps to Reproduce:
There are two cases.
(1) When SE module loads, it will display "0 of ?" before the number of results are calculated

(2) When "No suggested edits are available at this time" warning is displayed, "0 of ?":

Screen Shot 2020-09-30 at 2.54.10 PM.png (642×427 px, 44 KB)

Expected Results:

  • if the number of results is not known - do not show the counter.

Event Timeline

There are three different cases here, I think:

  • We have a preloaded task card, so we know there is at least one valid task. We show "1 of ...", load the rest of the tasks, replace with actual number. If that number is 0, we have a logic bug somewhere (since we already had one task). I think this works correctly.
  • As above, but there is an error while loading the extra tasks, so we switch from the preview card to the error page. The pager needs to be removed. This seems to be failing in some case.
  • There is no preloaded task (this happens when using the filters; probably in some module activation workflows too). We show a generic loading animation, with "0 of ...". That probably doesn't make much sense, regardless of whether we'll end up with an error or successful loading. We probably shouldn't show the pager at all in this case before the full count is avaialable.

De-prioritizing off the sprint board in favor of other priorities.

Although the task is about displaying the number of tasks (before calculating) as "0 of ?", there is another case when the counter's presence doesn't make much sense even if the actual (and supposedly correct numbers are displayed).

Screen Shot 2022-02-21 at 4.12.15 PM.png (1×1 px, 127 KB)

I think this is no longer an issue, @Etonkovidova can you resolve if so?