#56 Storing thread notifications in the database

开启中
abrax4 年前创建 · 0 条评论
abrax 评论于 4 年前

Currently the database only stores hard facts about each thread. It doesn’t directly store booleans that basically amount to “should the user see this thread”. These are evaluated when list_thread is called.

It might simplify the code if I just add some boolean columns to the db, maybe they can even be auto-calculated (no computed columns in SQLite apparently). The cost would be a more stateful program with more side-effects.

The reason I’m concerned about this is the line if (mark != ' ') or (not interesting_only): in list_threads - it seems very hacky but I can’t improve on it either.

Currently the database only stores hard facts about each thread. It doesn't directly store booleans that basically amount to "should the user see this thread". These are evaluated when `list_thread` is called. It might simplify the code if I just add some boolean columns to the db, ~~maybe they can even be auto-calculated~~ (no computed columns in SQLite apparently). The cost would be a more stateful program with more side-effects. The reason I'm concerned about this is the line `if (mark != ' ') or (not interesting_only):` in `list_threads` - it seems very hacky but I can't improve on it either.
登陆 并参与到对话中。
未选择里程碑
未指派成员
1 名参与者
到期时间

Dec 31, 0000 过期

依赖工单

此工单当前没有任何依赖。

正在加载...
取消
保存
这个人很懒,什么都没留下。