-
Notifications
You must be signed in to change notification settings - Fork 18
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
chore: refactor knowledge code in admin ui #1008
chore: refactor knowledge code in admin ui #1008
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Walk down through the code with @ryanhopperlowe and it is working as expected.
Thanks for picking it up and refactor the code! Look much better
if (blockPollingFiles) setBlockPollingFiles(false); | ||
}; | ||
|
||
if (knowledgeSource.state === KnowledgeSourceStatus.Syncing) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should also check for pending state. Something if sync happen to fast it will never fetch state from syncing given we are pulling every 5 seconds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed! thanks!
2c8ed15
to
5abb422
Compare
This should have no effect on logic or UI/UX. it just extracts some subcomponents and abstracts data logic into reusable hooks. Doing this in preparation for thread level knowledge implementations
5abb422
to
b3c133a
Compare
This should have no effect on logic or UI/UX. it just extracts some subcomponents and abstracts data logic into reusable hooks.
Doing this in preparation for thread level knowledge implementations
Refactored largely using cursor