Some cards' due is negative after importing decks with scheduling info

I’m not sure whether I’m the first one who notice this problem and post it here.

To reproduce bugs, I often create a new profile and import decks with scheduling info submitted by users.

The due is a offset based on the creation stamp. Obviously, the new profile’s creation stamp is newer than the user’s original collection’s. So all cards’ due will be shifted. In this process, some due’s values become negative.

It causes some problems:

  1. Some functions only accept unsigned integers for the ‘due’ parameter, which induces unrelated bugs. It makes the deck useless for reproducing some specific bugs.
  2. Some users may move their old decks to a new profile. Then some functions will not behave as expected.

Here are my suggestions:

  1. Ask for collection file instead of deck file with scheduling info to reproduce bugs, particularly when the bug is related to scheduler.
  2. Don’t separate your profile via export/import decks with scheduling info.
  3. Maybe we need to refactor some functions to accept negative due.

@dae what do you think?

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.