You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
publish: support multi-type posts (not planned) #832
activity is a qualitatively different object type than comment, so combining them like this is really awkward, and i don't know how to indicate that the tag verb only applies to activity. i expect these and other problems are why AS1 made them singly valued in the first place.
changed the title [-]github publish: crash on reply post with tag-of[/-][+]github publish: support combined reply and tag-of posts (low priority)[/+]on Jul 17, 2018
ok, the crash is now a nice 400 with error message. renamed this issue to cover actually supporting combined reply and tag-of. (low priority, not anytime soon.)
I'm generalizing this issue to cover all multi-type posts that Bridgy Publish would have to translate to more than one action inside a silo.
i don't plan to support those, for a few reasons beyond just the AS1 implementation details above. specifically:
atomicity. right now, a bridgy publish request either succeeds completely or falls completely. multi-type parts could partially succeed, ie complete one action inside the silo but fail another.
recovery. when an attempt partially succeeds, and the user retries, what should we do? we can't always roll back the silo action, nor can we always safely retry just the failed part(s). more on that in retry failed publish attempts? (dangerous) #812.
UX. it's harder to clearly preview a multi-type post or communicate about it to the user in error messages, etc.
partial support. if we can publish one part of a multi-type post but not another, it's unclear what we should do.
this begs the question, what should we do with multi type posts then? we could either return an error, which we currently do with the reply+tag posts described here, or we could pick a single part of them, which we currently do with all other multi-type posts. i documented that in b42365f yesterday.
erroring out is probably safer, and follows the Principle of Least Surprise, but publishing a single part is more convenient and expected by current users. 🤷
changed the title [-]github publish: support combined reply and tag-of posts (low priority)[/-][+]publish: support multi-type posts (not planned)[/+]on Nov 25, 2018
i'm doing a sweep and closing issues that i don't plan to do myself or accept a PR for. apologies for the bad news, or if this is a surprise. feel free to reopen if you feel strongly.
Activity
snarfed commentedon Jul 13, 2018
...not to mention that i'd have to make granary reasonably handle or error out on multiply valued
objectType/verbeverywhere. nontrivial. 🙁snarfed commentedon Jul 13, 2018
https://console.cloud.google.com/errors/CKi37MmzkMHYDw
[-]github publish: crash on reply post with tag-of[/-][+]github publish: support combined reply and tag-of posts (low priority)[/+]snarfed commentedon Jul 17, 2018
ok, the crash is now a nice 400 with error message. renamed this issue to cover actually supporting combined reply and tag-of. (low priority, not anytime soon.)
mf2.json_to_object: raise NotImplementedError on combined reply + tag-of
mf2.json_to_object: raise NotImplementedError on combined reply + tag-of
publish: catch NotImplementedError, convert to 400
publish: document order of precedence for interpreting original post …
snarfed commentedon Nov 25, 2018
I'm generalizing this issue to cover all multi-type posts that Bridgy Publish would have to translate to more than one action inside a silo.
i don't plan to support those, for a few reasons beyond just the AS1 implementation details above. specifically:
this begs the question, what should we do with multi type posts then? we could either return an error, which we currently do with the reply+tag posts described here, or we could pick a single part of them, which we currently do with all other multi-type posts. i documented that in b42365f yesterday.
erroring out is probably safer, and follows the Principle of Least Surprise, but publishing a single part is more convenient and expected by current users. 🤷
[-]github publish: support combined reply and tag-of posts (low priority)[/-][+]publish: support multi-type posts (not planned)[/+]docs: expand on why multi-type publish is hard
snarfed commentedon Jan 15, 2019
i'm doing a sweep and closing issues that i don't plan to do myself or accept a PR for. apologies for the bad news, or if this is a surprise. feel free to reopen if you feel strongly.