Commits
Issue: goldmark doesn't distinguish link and reflink...
we can't distinguish `[foo](at://bar)` and `[foo][at://bar]`
Signed-off-by: Seongmin Lee <git@boltless.me>
New renderer that is more pure and receive ownerDid to generate blob
URLs including the user DID.
Issue: PDS doesn't serve pre-uploaded blobs, so preview fails. We need
extra blobCache just for pre-uploaded blobs or just do markdown
rendering on client side.
NOTE: considering we can't implement markdown normalizer with goldmark,
maybe it's better to split this as separate, embedable service
Signed-off-by: Seongmin Lee <git@boltless.me>
This commit doesn't include blob rendering
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
db schema is still using single file for non-blob file contents.
Signed-off-by: Seongmin Lee <git@boltless.me>
the `cid` column is nullable for now, missing ones will be filled later.
Signed-off-by: Seongmin Lee <git@boltless.me>
multiple `defer rows.Close()` call in same scope can be dangerous as
underlying value will change.
avoid that by splitting reverse-mapping queries into scoped blocks.
Signed-off-by: Seongmin Lee <git@boltless.me>
This can catch `pages.Notice` responses which is not a successful
request. We refresh the page on successful case, so it's fine to not
refresh the form.
Signed-off-by: Seongmin Lee <git@boltless.me>
Introduce aturi->url maker in `pages.Pages`. This can be used throughout
the codebase later.
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: Will Andrews <did:plc:dadhhalkfcq3gucaq25hjqon>
- use optimistic `feed.comment` at-uri for reactions
- do not notify on ingester. It creates notification on record rewrite
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
There can be multiple reactable entities in same page.
Fetch every reactions in `aturi->reactionMap` format where reactionMap
is `kind->T` map
Signed-off-by: Seongmin Lee <git@boltless.me>
So that we can render reply comments from non-issue threads.
Signed-off-by: Seongmin Lee <git@boltless.me>
share as much handlers/fragments as possible.
PR has still `/.../comment` endpoint to serve comment form htmx
fragment. Due to how it is designed.
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Including db migration to migrate `issue_comments` and `pull_comments`
to unified `comments` table.
Signed-off-by: Seongmin Lee <git@boltless.me>
use `com.atproto.repo.strongRef` for more explicit reference &
`markup.markdown` type to give clear semantic meaning in markdown
Close: <https://tangled.org/tangled.org/core/issues/383>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Adds `lang:` as a shorthand alias for language search filters.
Users can now search with either `language:Go` or `lang:Go`. The search UI continues to generate `language:` filter links, while the helper text documents both supported syntaxes.
Lewis: May this revision serve well! <lewis@tangled.org>
seems to have been lost after the recent changes to use `git cat-file
--batch`.
Signed-off-by: oppiliappan <me@oppi.li>
we still ingest any and all pipeline statuses events.
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Lewis: May this revision serve well! <lewis@tangled.org>
this here yarn ball's been sportin' the wrong shade o' gray fer way too dang long, partner
Signed-off-by: eti <eti@eti.tf>
Lewis: May this revision serve well! <lewis@tangled.org>
Lewis: May this revision serve well! <lewis@tangled.org>
Lewis: May this revision serve well! <lewis@tangled.org>
KnotMirror will maintain both permanent/ephemeral caches.
AppView still has its own cache for search index.
Signed-off-by: Seongmin Lee <git@boltless.me>
`git.listLanguages` has been one of the method that fails most often.
Opening multiple git repos simultaneously can eaily cause OOM and
language indexing itself usually takes super long.
So several changes:
- use `gitea.CatFileBatch` instead of go-git to avoid OOM
- skip files larger than 16KB
- sync HEAD ref language stats in knotmirror db
- cache language stats info by commits (30d TTL)
When syncing HEAD ref language stats, we do indexing on background.
KnotMirror maintains internal "repo_stats_update" queue and right after
`doResync` is done, enqueue the language stat indexing job so we can
pre-index the language stats of HEAD ref.
It's ok to spam this queue because all later events will be eventually
ignored as we are resolving HEAD lazily.
Signed-off-by: Seongmin Lee <git@boltless.me>
We only need language name & its size
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Fix: <https://tangled.org/tangled.org/core/issues/552>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>
Signed-off-by: oppiliappan <me@oppi.li>
Redirect directory-like paths to their trailing slash variants
(e.g. /docs -> /docs/) to ensure consistent canonical URLs and
relative asset resolution for sub-path sites.
Signed-off-by: onevcat <onevcat@gmail.com>
Issue: goldmark doesn't distinguish link and reflink...
we can't distinguish `[foo](at://bar)` and `[foo][at://bar]`
Signed-off-by: Seongmin Lee <git@boltless.me>
New renderer that is more pure and receive ownerDid to generate blob
URLs including the user DID.
Issue: PDS doesn't serve pre-uploaded blobs, so preview fails. We need
extra blobCache just for pre-uploaded blobs or just do markdown
rendering on client side.
NOTE: considering we can't implement markdown normalizer with goldmark,
maybe it's better to split this as separate, embedable service
Signed-off-by: Seongmin Lee <git@boltless.me>
- use optimistic `feed.comment` at-uri for reactions
- do not notify on ingester. It creates notification on record rewrite
Signed-off-by: Seongmin Lee <git@boltless.me>
`git.listLanguages` has been one of the method that fails most often.
Opening multiple git repos simultaneously can eaily cause OOM and
language indexing itself usually takes super long.
So several changes:
- use `gitea.CatFileBatch` instead of go-git to avoid OOM
- skip files larger than 16KB
- sync HEAD ref language stats in knotmirror db
- cache language stats info by commits (30d TTL)
When syncing HEAD ref language stats, we do indexing on background.
KnotMirror maintains internal "repo_stats_update" queue and right after
`doResync` is done, enqueue the language stat indexing job so we can
pre-index the language stats of HEAD ref.
It's ok to spam this queue because all later events will be eventually
ignored as we are resolving HEAD lazily.
Signed-off-by: Seongmin Lee <git@boltless.me>