Commit Graph

1347 Commits

Author SHA1 Message Date
Eric Bailey 98cc8c5214 codegen 2023-08-22 11:16:56 -05:00
Eric Bailey 7364f17b33 Merge remote-tracking branch 'origin' into eric/app-796-likes-tab
* origin:
  Tweak rate limits (#1502)
  Fix auth on bsky author feed (#1501)
  Bugfix: Application ratelimits relative import (#1500)
  Application ratelimits (#1382)
  format
  do not notify users of own-actions
  Fix runtime flags open handles (#1497)
  make sure to await rejected promise expectations
  Misc fixes (#1492)
2023-08-22 11:15:20 -05:00
Eric Bailey e5c96f596a format 2023-08-22 11:15:09 -05:00
Eric Bailey 4cdb43c7f3 view likes from muted accounts 2023-08-22 11:07:06 -05:00
Eric Bailey 2c7bc6535f Merge pull request #1499 from bluesky-social/eric/app-1201-self-notifications
Don't notify user of self-likes and self-reposts
2023-08-22 10:54:40 -05:00
Daniel Holmgren ad25430691 Tweak rate limits (#1502)
* tweak rate limits

* tweak #

* fix test
2023-08-21 18:13:01 -05:00
Daniel Holmgren a8b3f62fab Bugfix: Application ratelimits relative import (#1500)
dont use relative xrpc-server path
2023-08-21 16:35:19 -05:00
Daniel Holmgren 891bf3bb7a Application ratelimits (#1382)
* initial setup

* lexgen

* tidying things up

* add in some rate limiting

* testing rate limits

* small bugfix

* fix build

* increase rate limit

* more limits

* config

* optional rate limiter

* tweak headers

* ratelimit headers

* multiple rate limits

* tests & bugfixes

* test bypass

* slight refactor

* fail open

* fail open

* right most xff ip

* setup redis for ratelimiting

* redis test

* more tests

* use new dev-infra package

* adjust limits

* temporarily remove repo write limits

* codegen

* redis scratch var name

* cfg var host -> address
2023-08-21 16:10:04 -05:00
Eric Bailey 896c5b0ad1 format 2023-08-21 16:08:29 -05:00
Eric Bailey 5316d3f65d do not notify users of own-actions 2023-08-21 16:08:09 -05:00
Daniel Holmgren 1d663df503 Fix runtime flags open handles (#1497)
fix runtime flags open handles
2023-08-21 15:56:58 -05:00
Eric Bailey 24a5414b64 make sure to await rejected promise expectations 2023-08-21 15:42:45 -05:00
Daniel Holmgren b45c9aab6b Misc fixes (#1492)
* proxy typeahead

* proxy post thread

* disable migration

* error handling on db

* fix case where replica explicitly configured w/ no tags

* appview build

* tidy

* block handling on some appview endpoints

---------

Co-authored-by: Devin Ivy <devinivy@gmail.com>
2023-08-21 15:30:34 -04:00
Eric Bailey be794d2026 opaque errors 2023-08-21 10:02:15 -05:00
Eric Bailey cf1cd0610a fix canProxyRead updated usage 2023-08-18 17:20:40 -05:00
Eric Bailey 1780afb3ee Merge remote-tracking branch 'origin' into eric/app-796-likes-tab
* origin:
  Runtime flags in PDS, appview-proxy flags (#1491)
2023-08-18 17:19:02 -05:00
Eric Bailey 9b1f5f0124 only allow viewing your own likes 2023-08-18 16:25:07 -05:00
devin ivy 8de64178c0 Runtime flags in PDS, appview-proxy flags (#1491)
* basic system for runtime flags in pds

* apply appview-proxy runtime flags, tidy/fixes

* fix no-did case
2023-08-18 12:32:54 -05:00
Eric Bailey 048cd16d0c Merge remote-tracking branch 'origin' into eric/app-796-likes-tab
* origin: (21 commits)
  styleguide
  Increase CI test matrix size (#1490)
  tweak author-feed rejects test syntax
  update test
  format
  add repost of reply, update snaps
  simplify query
  fix typos
  include reposted replies in posts_no_replies filter
  fix bad test syntax
  fix actor takedown tests
  use getActor, failing atm
  only include media posts by post creator
  Fix condition for viewing soft-deleted followers (#1485)
   Expose takendown profile, their follows and followers to mods (#1456)
  Handle revalidation (#1474)
  Handle db pool errors on appview (#1483)
  Handle db client errors on appview (#1481)
  v0.6.4
   Allow creating moderation action with a duration (#1431)
  ...
2023-08-18 11:10:04 -05:00
Eric Bailey 2b228a1e6f styleguide 2023-08-17 18:30:29 -05:00
Eric Bailey 9082a9ac78 Merge remote-tracking branch 'origin' into eric/fix-1197-reposted-replies
* origin:
  Increase CI test matrix size (#1490)
  Fix condition for viewing soft-deleted followers (#1485)
   Expose takendown profile, their follows and followers to mods (#1456)
  Handle revalidation (#1474)
  Handle db pool errors on appview (#1483)
  Handle db client errors on appview (#1481)
2023-08-17 18:25:32 -05:00
Daniel Holmgren 2413f48c93 Increase CI test matrix size (#1490)
* increase test matrix size

* tweak author feed tests
2023-08-17 18:24:42 -05:00
Eric Bailey 1c50428428 tweak author-feed rejects test syntax 2023-08-17 18:21:13 -05:00
Eric Bailey 0ea353b21f add repost of reply, update snaps 2023-08-17 15:30:30 -05:00
Eric Bailey 2e90124f72 simplify query 2023-08-17 15:02:50 -05:00
Eric Bailey 377a9721b9 fix typos 2023-08-17 14:20:05 -05:00
Eric Bailey d4b7d29c6b Merge pull request #1486 from bluesky-social/eric/fix-1167-media-reposts
only include media posts by post creator
2023-08-17 14:18:15 -05:00
Eric Bailey 30cb6412ce include reposted replies in posts_no_replies filter
(cherry picked from commit 588cf2562cc61441c170fec4f2354eedee39c4f6)
2023-08-17 14:09:24 -05:00
Eric Bailey 40fde9585c fix bad test syntax 2023-08-17 14:02:56 -05:00
Eric Bailey 4347a21d92 fix actor takedown tests 2023-08-17 13:50:26 -05:00
Eric Bailey ff0d2df6e3 use getActor, failing atm 2023-08-17 13:32:19 -05:00
Eric Bailey 1a5b422718 only include media posts by post creator 2023-08-17 12:10:36 -05:00
devin ivy cd0cf15949 Fix condition for viewing soft-deleted followers (#1485)
fix condition for viewing soft-deleted followers
2023-08-17 11:08:03 -04:00
Foysal Ahamed 7c88b43fc5 Expose takendown profile, their follows and followers to mods (#1456)
*  Allow moderators to see takendown profiles

*  Allow moderators to see follows and followers of takendown account

* ♻️ Let auth check fail on optional verifier

* ♻️ Use role type to check moderator access
2023-08-17 09:47:34 -04:00
Daniel Holmgren 4241ee16ec Handle revalidation (#1474)
* easier hanlde revalidation

* remove duplicate line

* backup handle nameservers on appview

* fix tests & add a couple
2023-08-16 18:34:19 -05:00
Foysal Ahamed 7bc701e2e1 Allow creating moderation action with a duration (#1431)
*  Add action duration to action model

*  Add periodic moderation action reversal

*  Use actionDurationInHours and remove takedownExpiresAt

*  Destroy mod action reversal job

*  Add test for automatic moderation action reversal

* 🧹 Port over actionDuration to bsky package

* ♻️ Better naming for action duration and minor fixes

* ♻️ Optionally build expiresAt based on createdAt when logging action

* ♻️ Adjust constructor params

*  Copy over migration from pds to bsky package

* 🚨 Fix indentation

*  Propagate action reversal from app-view to pds

*  Revert locally only if pushAgent is not found

* build

* merge dbcoordinator work into periodic mod actions

* fix entrypoint for periodic mod reversals

* do not run periodic reversals on sequencer leader

* fix duration in action detail on bsky

* update env for pushing mod reversals

* allow zero-duration actions for testing

* remove build

---------

Co-authored-by: Devin Ivy <devinivy@gmail.com>
2023-08-15 15:44:53 -04:00
Eric Bailey e0e7b39b16 add block and mute tests 2023-08-15 13:46:58 -05:00
Eric Bailey 79dcad4cf7 handle mutes 2023-08-15 11:25:38 -05:00
Eric Bailey d9849b6776 get it working 2023-08-14 18:31:15 -05:00
Daniel Holmgren 73f64009a2 Appview database replicas (#1459)
* setup bsky so that writes always go to a db primary

* test bsky primary db functionality

* sprinkle db primary over moderation and view maintainer usage

* make bsky tests more strict on primary/secondary db, fixes

* maintain prev db config on appview, require primary db, make primary/replica explicit in config

* tidy

* sketch out db replicas

* wip

* support multiple tags per bsky replica, "any" tag, fallbacks and warns

* clarify tags

* use new coordinator api across routes & services

* wire-up replica tagging config

* tidy

* cleanup entroypoints and tests for db coordinator

* fix pds test

* re-hookup migrate db

* standardize env vars for db on bsky services

* tidy

* build

* fix bav api entrypoint

* support DB_POSTGRES_URL on ingester/indexer for backwards compat

* remove build

---------

Co-authored-by: Devin Ivy <devinivy@gmail.com>
2023-08-14 18:38:00 -04:00
Eric Bailey b05986f7d1 codegen 2023-08-14 15:39:48 -05:00
Eric Bailey b1571b405d v0.1.12 2023-08-14 10:01:21 -05:00
Daniel Holmgren 244bf46e74 Include limited info on blocked embeds (#1463)
* add block info to embeds

* fix codegen

* Correctly handle blocked embeds and add block-other cause

* update snaps

* Correctly identify blocking behavior in embeds

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2023-08-10 15:54:24 -05:00
Daniel Holmgren ba979b4cdb Include limited viewer info on blocked post (#1457)
* include limited viewer info on block

* blockedAuthor schema

* make author required

* merge & update codegen

* patch up tests
2023-08-10 14:31:45 -05:00
Daniel Holmgren 3f0e1b2563 Read after write (#1398)
* first pass on profiles

* quick test

* wip

* wip

* test post thread

* record embeds

* get author feed profiles

* wip timeline

* fix get timeline

* switch from counter to tid

* tidy into a service

* quick tid test

* pr feedback

* clock -> rev

* update image formatting

* disable migration & build branch

* add recent posts to getAuthorFeed & handle post thread not found errors

* refactor for lag header

* tidy

* rm collections check

* tidy test

* pr feedback

* fix small bug

* build branch

* get migrations into system

* enable migrations
2023-08-10 13:42:31 -05:00
Paul Frazee ab50816461 Self-labeling (#1444)
* Add self-label schemas

* switch around array and union for self-labels

* apply self-labels to post and profile views

* test for self labels in pds

* apply self-labels to post and profile views in bsky appview

* test for self labels in bsky appview

* update pds proxied test snapshots

* Add support for self-labels to the mdoeration sdk

* Disable unknown-labeler filtering until 3P support is added

---------

Co-authored-by: Devin Ivy <devinivy@gmail.com>
2023-08-09 19:06:29 -04:00
Eric Bailey ef23263297 Merge pull request #1439 from bluesky-social/eric/app-787-media-tab
add filter param to getAuthorFeed
2023-08-09 15:38:09 -05:00
Eric Bailey 20230b46bc format 2023-08-09 14:05:03 -05:00
Eric Bailey f41e76a653 tighten up tests 2023-08-09 14:04:23 -05:00
devin ivy 203e72f1c1 Appview preset image URLs (#1248)
* update image signing logic to presets on bsky

* update bsky config and views for preset img urls

* update bsky image tests for preset urls

* update bsky snapshots for preset image urls

* update pds proxy tests for bsky preset image urls

* tweak image paths
2023-08-09 10:21:43 -04:00