Repository navigation
Knowledge row says when the bases last synced, and a stopped sync plainly - #479
Merged
Merged
Conversation
…inly The Knowledge row on the sources overview showed the gateway's updated_at, which was the newest time a base's settings were edited. The gateway now sends the newest successful sync or ready upload, plus stopped_at when a source's last sync stopped. The row says "Last sync stopped 5 min ago" then, and the panel keeps when content last came in.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Knowledge row on the sources overview could show a date days old while a knowledge source had synced minutes before. The row showed the newest time a knowledge base's settings were edited. With the gateway change in coderhelm-platform, it now shows the newest successful sync or ready upload across the team's bases, and says "Last sync stopped 5 min ago" when a source's last sync stopped.
Changes
builtin-bases.ts: a base may carrystopped_at.builtin.tsx: the row says "Last sync stopped ..." (amber dot) whenstopped_atis set, otherwise "Live" or "Updated ...". The panel keeps both: "Updated 35 min ago. Last sync stopped 5 min ago". "Not read yet" no longer shows for a base whose only sync stopped.concepts/knowledge.mdx): what each row's time means, and the stopped sync.Verification
knowledge-builtin.spec.ts: Knowledge reads "Updated 4 min ago" from the gateway's time; with a stopped sync, the row reads "Last sync stopped 5 min ago" and the panel "Updated 35 min ago. Last sync stopped 5 min ago". All 15 tests in the file pass against the static build.npm run lint,npm run typecheck,npm run check:openapi,npm run buildpass.