1610 Commits

Author SHA1 Message Date
bnewbold
a40b054812
fix test errors in "relax restriction on handle length in PDS" (#2410)
* relax restriction on handle length in PDS.

* add test to validate restriction on handle length.

* make fmt

* resolve test issues with too-long handles

* attempt to resolve appview test issues with too-long handles

---------

Co-authored-by: itaru2622 <itaru2622@gmail.com>
2024-04-15 20:05:49 -07:00
Foysal Ahamed
d4d5a6edba
When multiple tags are ex/included, use OR operator instead of AND (#2386)
*  When multiple tags are ex/included, use OR operator instead of AND

* 🧹 Remove unnecessary casting
2024-04-15 11:15:21 -04:00
Foysal Ahamed
0f915a6337
🔒 Allow moderators to manage communication templates (#2364)
* 🔒 Allow moderators to manage communication templates

*  Adjust test to check errors properly
2024-04-15 08:51:30 -04:00
bnewbold
a2d5658f28
lexicons: add more search parameters (#2396)
* lex: add account to actor search, for following boost

* lex: addition post search query params

* lex: add tag to post search; set default for sort

* lex: fix formats and skeleton consistency

* lex: searchPosts 'until' should be exclusive

* lex: relax post time range syntax

* lex: allow multiple tags ('AND') as search params

* make fmt

* lex: use 'viewer' for account DID making profile search

* lex: no viewer param in searchActor (only skeleton); do include in post skeleton

* codegen search param additions
2024-04-11 16:45:13 -07:00
Daniel Holmgren
0edef0ec01
Feed interactions schema (#2383)
* first pass schemas

* requestFeedback boolean

* rewrite schemas

* tidy

* tidy

* tweaks

* pr feedback

* codegen + lint

* changeset

* rm default
2024-04-10 19:27:17 -05:00
devin ivy
84cdc5b65a
Appview: include like/repost/reply counts on post embed (#2395)
* lexicon: add post counts to embed#viewRecord

* appview: hydrate and present aggregations on post embeds

* update snaps for aggregations on post embeds
2024-04-09 21:24:47 -04:00
Matthieu Sieben
b8f8f06a12
fix(codegen): fix use of prettier.format for codegen (#2393)
* fix(codegen): fix use of prettier.format for codegen

* chore(deps): remove unused "babel" dependency

* chore(deps): update typescript to latest (5.4.4)
2024-04-09 10:07:47 -04:00
Foysal Ahamed
f5c830a33b
Let mods search posts on author feed (#2374) 2024-04-08 11:18:06 -04:00
devin ivy
2e2a97badf
Use blocked and not-found unions in post reply refs (#2359)
* appview: use blocked and not-found post views on feed items

* appview: remove unused view flag
2024-04-08 10:05:29 -04:00
bnewbold
6b3addd733
lexicon: add support for TID and record-key string formats (#2377)
add support for TID and record-key string formats
2024-04-05 19:14:13 -07:00
devin ivy
7570d31829
Always include counts on post and profile views (#2357)
* appview: ensure counts are set in all views, even when aggs are missing

* pds: ensure counts are set on post view in read-after-write, fix $type typo
2024-04-04 22:13:28 -04:00
github-actions[bot]
692d1b2cd8
Version packages (#2385)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-04 18:01:34 -05:00
Daniel Holmgren
cd4fcc709f
Configurable catchall on xrpc-server (#2384)
* allow configurable catchall on xrpc-server

* changeset
2024-04-04 17:58:16 -05:00
github-actions[bot]
115df69574
Version packages (#2382)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-03 17:05:18 -04:00
devin ivy
9b78f06134
Fix to blob deletion w/ disk store (#2381)
pds: ensure account deletion doesn't touch others' blobs
2024-04-03 16:54:41 -04:00
Matthieu Sieben
97482da17a
Update prettier & eslint (#2373)
* chore(deps): update linting tools

* style(lint): format code
2024-04-03 21:39:11 +02:00
Daniel Holmgren
a1e22df57e
Timeout blob uploads (#2375)
timeout blob uploads to s3
2024-03-31 00:53:33 -05:00
bnewbold
2f62faab6f
lex: limit createReport size (#2362)
* lex: limit createReport size

This has actually be limited on the *output* for a long time, apparently
as a mistake/typo when locking down string length fields earlier.

Going with the existing length there (2000 graphemes). 1200 might also
be good; a longer description could be a future additional field or
out-of-band or something.

* codegen lex changes
2024-03-22 21:04:02 +00:00
devin ivy
cb2eb585e4
Fix inclusion for reposts on author feed w/ posts_and_author_threads (#2355)
appview: fix inclusion for reposts on author feed w/ posts_and_author_threads
2024-03-20 14:17:00 -04:00
bnewbold
6e552a26da
lexicon nits: use string format uri in more places (#2348)
* lexicons: use format=uri for more bsky URLs

* lexicons: use format=uri for URLs in server description (links to policies)

* codegen lex changes
2024-03-20 10:17:28 -07:00
bnewbold
f8dffa23eb
lex: deprecate getRecord commit param (#2349)
* lexicons: mark getRecord commit param as deprecated

* codgen lex description tweak
2024-03-20 10:17:09 -07:00
Matthieu Sieben
c8a5fb4c92
Avoid un-necessarily loading the keypair when creating an ActorStoreReader (#2319)
perf(pds): avoid un-necessarily loading the keypair when creating an ActorStoreReader
2024-03-20 10:34:01 +01:00
devin ivy
faa8d2faed
Exclude posts from author feed when they don't fit into a self-thread (#2347)
* appview: exclude posts from author feed when they don't fit into a self-thread

* tidy
2024-03-19 19:53:31 -04:00
github-actions[bot]
dbda260a21
Version packages (#2345)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-19 16:02:56 -05:00
Eric Bailey
abc6f82da3
Handle apostrophes and other punctuation when muting words (#2344)
Support muted words with apostrophes/punct
2024-03-19 15:59:20 -05:00
github-actions[bot]
b4346727f7
Version packages (#2343)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-19 14:09:41 -05:00
devin ivy
c28e374868
Appview: add associated.labeler info to all profile views (#2341)
* lexicon: add associated field to profile and profile-basic views, for indicating whether labeler

* appview: add associated.labeler to profile and profile-basic views

* dev-env: downgrade get-port, non-esm-only version
2024-03-19 12:26:14 -04:00
github-actions[bot]
07ec9ea749
Version packages (#2339)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-18 18:24:07 -04:00
Paul Frazee
36f2e966cb
Fix: correctly detect blocked QPs when moderating posts (#2338)
* Fix: correctly detect blocked QPs when moderating posts

* Add changeset
2024-03-18 14:30:20 -07:00
Matthieu Sieben
f689bd51a2
Build system rework (#2169)
* refactor(crypto): remove circular dependency

* refactor(crypto): expose compress/decompress as part of the DidKeyPlugin interface

* fix(crypto): remove import from private file

* refactor: isolate tsconfig

* fix: remove unused bench file

* chore(repo): remove unused deps

* fix(ozone): properly list dependencies

* fix(services): do lint js files

* fix(services/pds): remove unused deps

* chore(pds): remove bench

* chore(dev-env): remove unused deps

* chore(api): remove bench

* remove unused babel.config.js files

* fix: remove .ts extension from import

* fix(pds): remove imports of src files

* fix(tsconfig): properly list all projects

* fix(dev-env): remove imports of src files

* fix(bsky): remove direct import to crypto src

* fix(api): remove imports to api internals

* chore(build): prevent bundling of built output

* chore(dev): add "dev" script to build in watch mode

* chore(deps): move ts-node dependency where it is actually used

* fix(deps): add dev-env as project dependency

* fix(xrpc-server): properly type kexicon

* fix(bsky): improve typings

* fix(pds): fully type formatRecordEmbedInternal return value

* fix(repo): remove imports from @ipld/car/api

* feat(dev-env): re-export BskyIngester

* fix: properly lint & type jest config & test files

* fix(ci): test after build

* fix(types): use NodeJS.Timeout instead of NodeJS.Timer

* fix(bsky): make types exportable

* fix(ozone): make types exportable

* fix(xrpc-server): make types exportable

* fix(xprc-server): make code compliant with "node" types

* fix(xrpc-server): avoid accessing properties of unknown

* chore(deps): update @types/node

* feat(tsconfig): narrow down available types depending on the package's target environment

* fix(pds): remove unused prop

* fix(bsync): Database's migrator not always initialized

* fix(dev-env): remove unreachable code

* fix(xrpc-server): remove unused import

* fix(xrpc-server): mark header property as abstract

* fix(pds): initialize LeakyTxPlugin's txOver property

* fix(bsky): initialize LeakyTxPlugin's txOver property

* fix(bsky): remove unused migrator from DatabaseCoordinator

* fix(bsky): Properly initialize LabelService's cache property

* fix(ozone): Database's migrator not initialized

* fix(ozone): initialize LeakyTxPlugin's txOver property

* fix(crypto): ignore unused variable error

* feat(tsconfig): use stricter rules

* feat(tsconfig): enable useDefineForClassFields

* feat(xrpc-server): add support for brotli incoming payload

* fix(xrpc-server): properly parse & process content-encoding

* fix(common:stream): always call cb in _transform

* tidy/fix tests and service entrypoints

* Revert "fix(xrpc-server): properly parse & process content-encoding"

This reverts commit 2b1c66e153820d3e128fc839fcc1834d52a66686.

* Revert "feat(xrpc-server): add support for brotli incoming payload"

This reverts commit e710c21e6118214ddf215b0515e68cb87299a952.

* remove special node env for tests (defaults to jest val of "test")

* kill mute sync handler on disconnect

* work around connect-es bug w/ request aborts

* style(crypto): rename imports from uint8arrays

* fix update package-lock

* fix lint

* force hbs files to be bundled as cjs

* fix: use concurrently instead of npm-run-all

npm-run-all seems not to be maintained anymore. Additionally, concurrently better forwards signals to child processes.

* remove concurrently alltogether

* ignore sqlite files in services/pds

* fix verify

* fix verify

* tidy, fix verify

* fix blob diversion test

* build rework changeset

---------

Co-authored-by: Devin Ivy <devinivy@gmail.com>
2024-03-18 17:10:58 -04:00
futur
0a2464cb67
Remove unused dependencies (#2327) 2024-03-18 16:01:15 -04:00
github-actions[bot]
f45eef3414
Version packages (#2330)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-16 10:19:29 -05:00
Eric Bailey
7dd9941b73
Remove unecessary escapes (#2328) 2024-03-16 10:14:50 -05:00
Foysal Ahamed
3d5ad925bb
🐛 Append path to base url when diverting blob (#2307) 2024-03-15 15:47:11 -04:00
devin ivy
011aa22b84
Labeler takedowns (alternate) (#2322)
* build hydration ctx in each handler

* test hydration w/ takendown labeler

* tidy

* handle and test labeler takedowns by label

* appview/ozone: fix admin repo search
2024-03-15 10:59:13 -04:00
devin ivy
506614fb7c
Appview: fix lookup for labeler via repo.getRecord (#2324)
appview: fix lookup for labeler via repo.getRecord
2024-03-14 19:27:48 -04:00
github-actions[bot]
a1e1d9332d
Version packages (#2323)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-14 13:19:30 -04:00
devin ivy
99b6aee18e
Dedupe labels during appview hydration (#2317)
* appview: reproduce duped labels

* appview: dedupe labels in hydration

* tidy types
2024-03-14 09:57:24 -04:00
Daniel Holmgren
410bc5666c
Second pass on no false negs in labels (#2315)
second pass on no false negs in labels
2024-03-13 18:46:00 -05:00
github-actions[bot]
f42f548e1b
Version packages (#2314)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-13 19:19:48 -04:00
devin ivy
722d4173ee
PDS contact email address (#2313)
* lexicon: add pds server contact email

* pds: configuration for contact email address
2024-03-13 19:05:47 -04:00
Paul Frazee
2194807644
Fix agent.clone() - copy the pdsUrl config (#2312)
* Fix agent.clone() - copy the pdsUrl config

* Add changeset
2024-03-13 15:58:10 -07:00
Daniel Holmgren
069d1432dc
Remove false neg on the labels that ozone emits (#2310)
* remove `neg` on the labels that ozone emits

* no negs in appview either

* no negs on self-labels

* no neg on self labels in ozone either

* fix query labels test
2024-03-13 17:33:50 -05:00
Daniel Holmgren
16ac2ef0b3
Add specced takedown labels (#2309)
* add specced takedown labels

* fix up tests

* fix test

* only reverse takedown labels
2024-03-13 17:33:43 -05:00
Daniel Holmgren
a0625ba40f
Ozone update sig on label overwrite (#2308)
ozone update sig
2024-03-13 13:47:40 -05:00
github-actions[bot]
b286cd1a84
Version packages (#2305)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-13 12:50:35 -05:00
Daniel Holmgren
4eaadc0acb
Labeler API Changeset (#2302)
add changsets for labeler api changes
2024-03-13 12:48:36 -05:00
Eric Bailey
84e72c6607
Mod sdk fixes (#2304)
* Adds fix for missing default labelers

* Update tests
2024-03-13 10:48:05 -07:00
Daniel Holmgren
89aa232531
Fix output type on subscribeLabels (#2303)
fix output type on subscribeLabels
2024-03-13 12:20:09 -05:00
Devin Ivy
6f39783c61 ozone/pds prerelease versions 2024-03-13 10:25:17 -04:00