Cory Slep
ca18901fcc
Bugfix for programmatic delivery
2019-04-03 23:35:57 +02:00
Cory Slep
a65388c27b
Better abstract programmatic sending of activities.
2019-03-26 22:00:55 +01:00
Cory Slep
d535bc95f3
Add FederatingActor and implementation.
2019-03-24 17:18:22 +01:00
Cory Slep
b9a95751dc
Add Insert methods for nonfunctional properties.
2019-03-24 14:25:36 +01:00
Cory Slep
b5eecc692c
Add SetType nonfunctional property method
2019-03-24 10:55:23 +01:00
Cory Slep
1ea8e2c7f3
Add more unit tests for new id generation.
...
Fix major bugs: was using IsExtendedBy checks instead of IsOrExtends
from the streams package.
For example, if checking for an OrderedCollection, was
checking its child types and failing if it was an OrderedCollection. Now
this is fixed, so OrderedCollection and child types are accepted.
2019-03-13 21:19:38 +01:00
Cory Slep
42b799393a
Fix astool bug incorrectly referencing an unknown variable in generated code
2019-03-13 21:14:06 +01:00
Cory Slep
1ed044f7cf
Add IsOrExtends to astool; regenerate ActivityStreams code.
...
The IsOrExtends will return true if an object is a type T or extends
from that type in the ActivityStreams vocabulary.
2019-03-13 21:09:51 +01:00
Cory Slep
ee16417bb3
Add PostOutbox tests and bugfixes for side effect actor.
2019-03-04 00:06:37 +01:00
Cory Slep
305e8100f1
Complete inbox forwarding tests
2019-03-03 23:17:00 +01:00
Cory Slep
b4b18b96fa
Two more inbox forwarding tests now pass.
2019-03-02 19:13:02 +01:00
Cory Slep
d58887e7b3
Inbox forwarding bug fixes.
...
Properly use nil guards on inbox forwarding properties. Correct the
recursion when examining these values so that it no longer inspects
ownership of the activitiy, and no longer double-checks an unowned IRI.
Finally, have deliver use the batch deliver call.
2019-03-02 19:11:26 +01:00
Cory Slep
e1c2c8868a
Fix go.mod
2019-03-01 22:28:13 +01:00
Cory Slep
48e15c99a2
Remove workaround for go v1.11 compiler bug
2019-02-28 23:19:53 +01:00
Cory Slep
823ab4cc5a
Update module files BUT enabling modules breaks the build.
...
The new updates to golang modules ensure that this code generation
solution just got a lot more painful, as now each generated subpackage
needs its own go-mod file autogenerated, it seems.
2019-02-28 23:12:50 +01:00
Cory Slep
6e4cff677a
Fix formatting.
2019-02-28 22:43:35 +01:00
Cory Slep
5d598046c2
Disallow destination to have '..' in path
2019-02-28 22:13:49 +01:00
Cory Slep
87e56d8d96
Require destination directory to be specified.
...
Permit generation to a subdirectory and the current working directory.
2019-02-28 22:11:24 +01:00
Cory Slep
1fac7a8c8d
Fix README typo
2019-02-28 21:31:35 +01:00
Cory Slep
3dfe12a7a1
Update CHANGELOG
2019-02-24 16:51:35 +01:00
Cory Slep
19c351e729
Minor fixes in the README
2019-02-24 16:45:54 +01:00
Cory Slep
4a8f7314a7
Update READMEs
2019-02-24 16:27:02 +01:00
Cory Slep
9417306aa3
Outline the needed federating side effects tests.
2019-02-24 13:05:00 +01:00
Cory Slep
5f6b12a76d
More unit tests and bug fixes.
2019-02-23 18:42:40 +01:00
Cory Slep
36a38b74b0
Increase side effect actor test coverage.
...
Introduce DefaultCallback to the protocol interfaces.
2019-02-20 21:31:11 +01:00
Cory Slep
1e5f5f9c86
Update authn and authz functions to have intuitive return values
2019-02-19 20:40:26 +01:00
Cory Slep
b41491e2c2
Add missing Unlock calls.
2019-02-19 20:33:42 +01:00
Cory Slep
82851801ed
Some tests for the side_effect_actor.go
2019-02-19 20:33:22 +01:00
Cory Slep
71b853d708
Update base actor tests to accurate reflect interfaces.
2019-02-19 20:07:26 +01:00
Cory Slep
52bc5fb9a5
Add tests for the base actor.
...
Removed old pub tests.
2019-02-16 20:30:18 +01:00
Cory Slep
dc16296d74
Remove TODO that is now documented as an issue.
2019-02-15 23:56:49 +01:00
Cory Slep
674fa0245d
Use AppendType instead of custom resolver
2019-02-15 23:54:26 +01:00
Cory Slep
3180eaf568
Add AppendType and PrependType
2019-02-15 23:54:09 +01:00
Cory Slep
4b87e634a0
Add SetType to properties
2019-02-15 23:29:38 +01:00
Cory Slep
8a333d6192
gofmt the new constants.go file
2019-02-15 23:11:33 +01:00
Cory Slep
412c6737c3
Generate constants for type and property names
2019-02-15 23:11:08 +01:00
Cory Slep
272d7239f3
Generate generic ToType function.
2019-02-15 22:47:59 +01:00
Cory Slep
2d8651d95c
Remove obsolete deliverer package
2019-02-15 22:16:11 +01:00
Cory Slep
1227ec9a5a
Change GetName to GetTypeName
2019-02-15 22:15:25 +01:00
Cory Slep
c4a7b0524e
Always acquire db lock before calling Owns
2019-02-15 22:04:08 +01:00
Cory Slep
2099e89851
Address several TODOs in side_effect_actor
2019-02-15 21:59:02 +01:00
Cory Slep
b625914c1a
Send BadRequest if library can't handle the type
2019-02-15 21:45:48 +01:00
Cory Slep
7beac61f97
Address IRI dereferencing in util
2019-02-15 21:42:56 +01:00
Cory Slep
6ead50c643
Address TODOs in federating_wrapped_callbacks
2019-02-15 21:33:48 +01:00
Cory Slep
cc83b751a1
Update interface definitions and wrapper improvements.
...
Wrapping default behavior can now be overridden.
2019-02-15 21:03:43 +01:00
Cory Slep
bd8220a56c
Update comments
2019-02-15 18:34:58 +01:00
Cory Slep
8efdb62ad9
Port ActivityStreams http handler function.
...
Also removed the 'old' pub code.
Moved the old tests back into the new pub, which means no tests pass
because the test build fails. So test porting needs to happen.
2019-02-14 22:28:46 +01:00
Cory Slep
d3b0afef5e
Finish porting the core of pub.
2019-02-14 21:51:57 +01:00
Cory Slep
0f7dce6839
Begin porting C2S side effect behaviors.
2019-02-13 23:56:36 +01:00
Cory Slep
1b7cec220b
Get most federating callbacks ported.
2019-02-13 22:37:29 +01:00