Skip to content

Conversation

@y-okumura-isp
Copy link

@y-okumura-isp y-okumura-isp commented Apr 30, 2021

Fixes #1114

Add unread tab.

This PR has the following limitations.

For now, unread tab page lists at most PAGE_LIMIT(=50) knowledge articles at once.
In extreme cases, no article is shown even if there are some unread articles.

Reason:

  • KnowledgesDao.getUnreadKnowledgeIds searches unread and non-private knowledges order by update_datetime.
  • then filters protected articles.
  • If KnowledgesDaoselect 50 unread articles but all of them are protected, no article is shown.

In this case, you need to click "next" button.

We can fix it by changing SELECT sentences but I didn't because I feel it's a rare case.

y-okumura-isp added a commit to y-okumura-isp/knowledge that referenced this pull request Jun 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

want to list unread knowledges

1 participant