commits
Sets up Cloudflare Turnstile for fairly non-intrusive captcha. The
client token is verified with CF when the user hits 'join now' (POST
/signup), so this should prevent bot signups.
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
Signed-off-by: oppiliappan <me@oppi.li>
Also some misc. changes to page layouts.
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
this simplifies readme detection and improves page performance.
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
validation also performs a transformation upon labels: it resolves
handles to DIDs, it is important that this transform be present when
determining redundant ops.
Signed-off-by: oppiliappan <me@oppi.li>
the ordering of ops should be deletes first followed by additions, in
order for ingestions to be idempotent. after every optimistic update the
the DB, we ingest the same record via the firehose. an ordering
difference resulted in certain additions being marked as no-ops when in
reality, it should be an addition followed by a deletion.
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: noClaps <git@zerolimits.dev>
previously, we would only refresh sessions when authenticated requests
took place. the new middleware attempts a refresh for every request, if
expiry is approaching (<5m). this way, user sessions remain refreshing
by simply hanging out on tangled.
Signed-off-by: oppiliappan <me@oppi.li>
the upgrade banner is left empty if the user's session is expired. this
prevents them from randomly being booted to the login page.
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: noClaps <git@zerolimits.dev>
Signed-off-by: noClaps <git@zerolimits.dev>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
Squish logo, profile and new button on smaller displays.
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Also add NewIssueComment to the interface.
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
slipped through debug.
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
quickly subscribe to all default labels.
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
this page was making a redundant query to db.GetRepos. this page could
be still faster when paginated.
Signed-off-by: oppiliappan <me@oppi.li>
switch from corelated query to window function. practically, this gives
us a 10x speedup for this portion of the function. we can go further by
running each subquery for GetRepos concurrently, but the potential wins
here is in the order of ~2ms.
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
this module was unused.
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
- move db.{Issue,IssueComment} into models
- move auxilliary funcs like CommentTree into models
Signed-off-by: oppiliappan <me@oppi.li>
- move db.{Repo,RepoStats,IssueCount,PullCount} into models
- moe auxilliary funcs like FromRecord into models
Signed-off-by: oppiliappan <me@oppi.li>
- db.{LabelOp,LabelDefinition,LabelState,LabelApplicationCtx} have been
moved
- auxilliary helpers used to calculate label state have been moved
Signed-off-by: oppiliappan <me@oppi.li>
Sets up Cloudflare Turnstile for fairly non-intrusive captcha. The
client token is verified with CF when the user hits 'join now' (POST
/signup), so this should prevent bot signups.
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
the ordering of ops should be deletes first followed by additions, in
order for ingestions to be idempotent. after every optimistic update the
the DB, we ingest the same record via the firehose. an ordering
difference resulted in certain additions being marked as no-ops when in
reality, it should be an addition followed by a deletion.
Signed-off-by: oppiliappan <me@oppi.li>