Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unread tab (#1114) #1115

Open
wants to merge 1 commit into
base: v1
Choose a base branch
from

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