Wykres commitów

1044 Commity (mst)

Autor SHA1 Wiadomość Data
Ryan Barrett 4c6dfcc0bf
Bluesky MST: optimize tests a bit 2023-04-15 22:27:00 -07:00
Ryan Barrett 6893dac1b5
Bluesky MST: test_is_order_independent works 2023-04-14 21:57:16 -07:00
Ryan Barrett 462179b889
Bluesky MST: fix bug in create_parent, add __unicode__ and __repr__ 2023-04-14 21:28:06 -07:00
Ryan Barrett 8fdb5df371
Bluesky MST: fix bug in append_merge 2023-04-14 20:45:01 -07:00
Ryan Barrett e47455cfaa
Bluesky MST: fix bug in split_around 2023-04-14 20:28:59 -07:00
Ryan Barrett a7be04c315
Bluesky MST: more implementation and tests 2023-04-14 20:04:43 -07:00
Ryan Barrett 177c4195ab
Bluesky MST: fixed trivial tree test! 2023-04-14 15:27:19 -07:00
Ryan Barrett bb3a000e69
Bluesky MST tests: fix base 32 decoding, other tweaks 2023-04-13 16:41:44 -07:00
Ryan Barrett ff33562602
more Bluesky MST. test_add works for 10 leaves! 2023-04-13 15:43:13 -07:00
Ryan Barrett da5b08d0e2
bluesky MST: implement TIDs
pretty sure this isn't right though, due to the base32 padding. I get TID strings like AX4T-3WL-2GJE-A====CU====== vs the example 3hgb-r7t-ngir-t4 in https://atproto.com/guides/data-repos#identifier-types
2023-04-13 13:51:55 -07:00
Ryan Barrett 39728cc9ee
lots more translating, implement DAG-CBOR encoding and CID generation
...in serialize_node_data and cid_for_entries
2023-04-13 13:07:08 -07:00
Ryan Barrett 61b920c0be
Bluesky MST: start to define types, MST methods, test data 2023-04-12 21:26:17 -07:00
Ryan Barrett 33ad38c255
start on AT Protocol PDS, specifically their MST
largely translating this from their reference TypeScript implementation, not writing from scratch, but still hoo boy, this will take a bit of work. thank god for their test cases. very grateful for you both @dholms @devinivy!
2023-04-12 12:37:09 -07:00
Ryan Barrett c1359d2c0a
add issue object type to snippet rendering 2023-04-12 07:57:40 -07:00
dependabot[bot] 82f414ef07 build(deps): bump beautifulsoup4 from 4.12.1 to 4.12.2
Bumps [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/bs4/) from 4.12.1 to 4.12.2.

---
updated-dependencies:
- dependency-name: beautifulsoup4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-10 05:59:29 -07:00
Ryan Barrett 65b8469f2a
/webmention : add back logging message for monitoring 2023-04-09 14:34:22 -07:00
Ryan Barrett b7eac67443
update bluesky XRPC handlers for lexicon refactor
7f008c05a0
2023-04-08 12:47:29 -07:00
Ryan Barrett 23a8f7cfda
fix snippet rendering for post and profile updates 2023-04-06 12:40:36 -07:00
Ryan Barrett ac0dc216ce
convert wm => AP to all async, enqueue task for every incoming webmention
fixes bug where we were fetching and storing an Object for an incoming wm, enqueueing a task, then in the task we'd refetch, see that it was unchanged, and do nothing.

thanks @jamietanna @gregorlove for reporting!
2023-04-06 09:19:05 -07:00
dependabot[bot] 8694a7fa00 build(deps): bump beautifulsoup4 from 4.12.0 to 4.12.1
Bumps [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/bs4/) from 4.12.0 to 4.12.1.

---
updated-dependencies:
- dependency-name: beautifulsoup4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-06 05:59:18 -07:00
Ryan Barrett 01125d38d8
/render : escape #s in object id URLs to ^^
fixes #469
2023-04-05 16:23:49 -07:00
Ryan Barrett 0ba43561fa
/render: hydrate author/actor if necessary
fixes semi-blank authors in outgoing webmentions
2023-04-05 07:16:31 -07:00
Ryan Barrett d7f2455d69
drop a few obsolete tests 2023-04-04 22:20:49 -07:00
Ryan Barrett 0dbe18aae4
remove common.actor() 2023-04-04 22:19:35 -07:00
Ryan Barrett 22ca59749e
stop using common.actor() in User.verify() 2023-04-04 22:06:13 -07:00
Ryan Barrett 1f40aedf27
webmention.py: unify homepage update logic, move fetching into fetch() 2023-04-04 18:02:41 -07:00
Ryan Barrett 816a635738
bug fix for update profile button on user page UI
fixes https://console.cloud.google.com/errors/detail/CMK10__x4ZbgbQ;time=P30D?project=bridgy-federated
2023-04-04 07:24:06 -07:00
Ryan Barrett 4c9744cd65
common.error bug fix, accept exc_info kwarg 2023-04-04 07:14:31 -07:00
Ryan Barrett 629c1a2bd4
unify Object.new/changed generation into Protocol.load
also:
* switch back to preserving fragments in URL ids
* webmention.fetch: if URL id redirects, preserve original id in Object
2023-04-03 07:53:15 -07:00
Ryan Barrett 3a97ba587d
noop: Protocol.load: switch from @cached decorator to manual cache
...so that I can add a refresh kwarg that bypasses the cache
2023-04-02 20:36:23 -07:00
Ryan Barrett f836762b0f
big webmention.py refactoring
* use Objects properly
* use Object's mf2/AS2/AS1 conversion
* drop resuming partially completed deliveries
* use load, fetch, send
* get closer to unifying all activity handling into Protocol.receive
2023-04-01 19:13:51 -07:00
Ryan Barrett 61a6b5bbd2
add test that activitypub.postprocess_as2 is idempotent
ie calling it twice results in the same output object. true almost all the time!...but not uite all yet.
2023-04-01 13:08:04 -07:00
Ryan Barrett 7bbdb47c09
temporarily vendor pre-refactor atproto and bsky lexicons into this repo
specifically, 7f008c05a0 is a big backward-incompatible refactor of many of these lexicons. example CI failure against the new lexicons: https://app.circleci.com/pipelines/github/snarfed/bridgy-fed/927/workflows/eadc531a-94e9-4f4a-bf6f-696940eaf531/jobs/1191

TODO: switch back to using these directly from a clone of that repo as soon as I get around to migrating

these are MIT licensed, copyright 2023 Bluesky PBLLC. https://github.com/bluesky-social/atproto/blob/main/LICENSE
2023-04-01 13:07:46 -07:00
Ryan Barrett f4a86dcb82
update test for snarfed/granary@882426a9de 2023-03-31 20:28:25 -07:00
Ryan Barrett c7eedcd8e5
minor docs language tweak 2023-03-31 20:28:25 -07:00
dependabot[bot] 4b8d2f3b2b build(deps): bump redis from 4.5.3 to 4.5.4
Bumps [redis](https://github.com/redis/redis-py) from 4.5.3 to 4.5.4.
- [Release notes](https://github.com/redis/redis-py/releases)
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES)
- [Commits](https://github.com/redis/redis-py/compare/v4.5.3...v4.5.4)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-30 06:00:09 -07:00
Ryan Barrett e41ce9216c
noop, rename Protocol.get_object => Protocol.load 2023-03-29 13:13:32 -07:00
Ryan Barrett e6be9cabb8
incoming AP: when we can't load the keyId, store a deleted Object
prevents re-fetching the same failing keyId actor over and over when we get the same Delete actor activity sent to all of our inboxes
2023-03-29 12:51:37 -07:00
dependabot[bot] f7d1a3fd96 build(deps): bump pytz from 2023.2 to 2023.3
Bumps [pytz](https://github.com/stub42/pytz) from 2023.2 to 2023.3.
- [Release notes](https://github.com/stub42/pytz/releases)
- [Commits](https://github.com/stub42/pytz/compare/release_2023.2...release_2023.3)

---
updated-dependencies:
- dependency-name: pytz
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-29 05:59:41 -07:00
Ryan Barrett 5493e2f297
add 'activity' to Object.labels automatically in new _pre_put_hook 2023-03-28 11:14:08 -07:00
dependabot[bot] 70317e6739 build(deps): bump grpcio from 1.51.3 to 1.53.0
Bumps [grpcio](https://github.com/grpc/grpc) from 1.51.3 to 1.53.0.
- [Release notes](https://github.com/grpc/grpc/releases)
- [Changelog](https://github.com/grpc/grpc/blob/master/doc/grpc_release_schedule.md)
- [Commits](https://github.com/grpc/grpc/compare/v1.51.3...v1.53.0)

---
updated-dependencies:
- dependency-name: grpcio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-28 06:04:58 -07:00
dependabot[bot] 6a0b116c9f build(deps): bump google-cloud-tasks from 2.13.0 to 2.13.1
Bumps [google-cloud-tasks](https://github.com/googleapis/python-tasks) from 2.13.0 to 2.13.1.
- [Release notes](https://github.com/googleapis/python-tasks/releases)
- [Changelog](https://github.com/googleapis/python-tasks/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/python-tasks/compare/v2.13.0...v2.13.1)

---
updated-dependencies:
- dependency-name: google-cloud-tasks
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-28 06:00:01 -07:00
Ryan Barrett 754a6eb651
minor noop tweaks: dupe test, test name, docstring 2023-03-27 14:18:24 -07:00
Ryan Barrett 68de408789
Protocol.get_object(): store object before returning
also flesh out FakeProtocol

hopefully helps with https://console.cloud.google.com/errors/detail/CKCN17fmoZHraw;time=P30D?project=bridgy-federated , don't really know though
2023-03-27 14:14:37 -07:00
dependabot[bot] aa8da08b16 build(deps): bump pytz from 2022.7.1 to 2023.2
Bumps [pytz](https://github.com/stub42/pytz) from 2022.7.1 to 2023.2.
- [Release notes](https://github.com/stub42/pytz/releases)
- [Commits](https://github.com/stub42/pytz/compare/release_2022.7.1...release_2023.2)

---
updated-dependencies:
- dependency-name: pytz
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-27 13:20:23 -07:00
Ryan Barrett c3192cc1df
Webmention.fetch: add full authorship algorithm and fetch 2023-03-26 16:47:46 -07:00
Ryan Barrett 5985ac3e83
add back webob dep
oauth_dropins.webutil.util uses it, and we're not ready to drop that just yet
2023-03-26 09:06:25 -07:00
dependabot[bot] ca66e482d5 build(deps): bump urllib3 from 1.26.14 to 1.26.15
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.14 to 1.26.15.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.14...1.26.15)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-23 22:08:35 -07:00
Ryan Barrett 6dc4705a56
user page bug fix, handle AS1 inner objects with composite url values
fixes https://console.cloud.google.com/errors/detail/CNGc5drA4f7uOA;time=P30D?project=bridgy-federated
2023-03-23 22:04:46 -07:00
Ryan Barrett 78cef17c9a
drop webapp2, webob req'ts 2023-03-23 22:04:46 -07:00