<feed xmlns='http://www.w3.org/2005/Atom'>
<title>swap/tests, branch untested</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/'/>
<entry>
<title>Utilise jinja inheritance to streamline in/outbox</title>
<updated>2021-08-02T14:41:06+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2021-08-01T14:27:21+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/commit/?id=bafe42275e65b98951dd3335342e38d7bf1b1db5'/>
<id>bafe42275e65b98951dd3335342e38d7bf1b1db5</id>
<content type='text'>
Using jinja's templating extensions, we can recreate the activitypub
inheritance hierarchy without using clunky python OO.

Extending from multiple template files in sequence might cause
unnecesary IO to slow response times; if this ever becomes an issue, it
should be possible to pre-process some of the templating since a lot of
it will be based on constant expressions (such as @context and type).

I think some formatting fixes leaked into this commit; oops! I'm leaving
this note here in the hopes that if I ever want to clean this up, I can
locate this commit easier.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using jinja's templating extensions, we can recreate the activitypub
inheritance hierarchy without using clunky python OO.

Extending from multiple template files in sequence might cause
unnecesary IO to slow response times; if this ever becomes an issue, it
should be possible to pre-process some of the templating since a lot of
it will be based on constant expressions (such as @context and type).

I think some formatting fixes leaked into this commit; oops! I'm leaving
this note here in the hopes that if I ever want to clean this up, I can
locate this commit easier.
</pre>
</div>
</content>
</entry>
<entry>
<title>Display inbox/outbox contents correctly</title>
<updated>2021-07-31T19:30:35+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2021-07-31T14:06:45+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/commit/?id=68703447d8fc57c7b77b66a6acc05bf22fb7d71b'/>
<id>68703447d8fc57c7b77b66a6acc05bf22fb7d71b</id>
<content type='text'>
As per previous commit, the contents of inboxes and outboxes were not
being properly displayed, which was difficult to test because of there
being very few items in the test DB.

This commit includes moving functions such as prepared_output into a new
file sw/util.py; including them in sw/users.py made little sense and
caused a circular dependency with sw/auth.py.

A stub function for item info retreival has also been created, in new
file sw/items.py.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As per previous commit, the contents of inboxes and outboxes were not
being properly displayed, which was difficult to test because of there
being very few items in the test DB.

This commit includes moving functions such as prepared_output into a new
file sw/util.py; including them in sw/users.py made little sense and
caused a circular dependency with sw/auth.py.

A stub function for item info retreival has also been created, in new
file sw/items.py.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add templates</title>
<updated>2021-07-30T18:35:08+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2021-07-30T18:35:08+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/commit/?id=c77d6a4d4a1d628788be73491aa7fa4e4fdcff05'/>
<id>c77d6a4d4a1d628788be73491aa7fa4e4fdcff05</id>
<content type='text'>
Rather than using jsonify on a dict, the system now uses render_template
on json documents. This gives the ability to extend previous files
(which might be useful for activitypub features), and also enables using
different templates for different filetypes.

Supplied are templates for accessing inboxes and outboxes in JSON-LD and
HTML.

The "items" field in get_user_inbox_page.json and
get_user_outbox_page.json might be currently borked.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rather than using jsonify on a dict, the system now uses render_template
on json documents. This gives the ability to extend previous files
(which might be useful for activitypub features), and also enables using
different templates for different filetypes.

Supplied are templates for accessing inboxes and outboxes in JSON-LD and
HTML.

The "items" field in get_user_inbox_page.json and
get_user_outbox_page.json might be currently borked.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add more inbox/outbox tests</title>
<updated>2021-07-11T14:23:35+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2021-07-10T21:41:09+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/commit/?id=c4e848c21c028ca7c52846ea1abd7f3a38aff7d6'/>
<id>c4e848c21c028ca7c52846ea1abd7f3a38aff7d6</id>
<content type='text'>
Still not even total coverage!

Need to:

- write more tests for outbox manipulation
- look into and implement receiving content from other servers (+ write
  tests)

off the top of my head.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Still not even total coverage!

Need to:

- write more tests for outbox manipulation
- look into and implement receiving content from other servers (+ write
  tests)

off the top of my head.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add basic inbox/outbox functionality</title>
<updated>2021-07-09T15:16:54+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2021-07-09T15:16:54+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/commit/?id=57e7488149ee093e34774d83ffe161fb305a7dde'/>
<id>57e7488149ee093e34774d83ffe161fb305a7dde</id>
<content type='text'>
Lots of added TODOs, and very little test coverage for the new
functions.

Next step is to get 100% coverage of what we have so far.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Lots of added TODOs, and very little test coverage for the new
functions.

Next step is to get 100% coverage of what we have so far.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add testing for authorisation decorators</title>
<updated>2021-07-07T15:41:42+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2021-07-07T15:41:42+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/commit/?id=6e58d1e712068de46f68a1188328d68273605f5b'/>
<id>6e58d1e712068de46f68a1188328d68273605f5b</id>
<content type='text'>
Test addition commits always look big lmao

As mentioned in the previous commit, this commit adds a check for the
correct user when accessing someone's /inbox.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test addition commits always look big lmao

As mentioned in the previous commit, this commit adds a check for the
correct user when accessing someone's /inbox.
</pre>
</div>
</content>
</entry>
<entry>
<title>Begin work on adding user interaction</title>
<updated>2021-07-06T18:30:31+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2021-07-06T18:30:31+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/commit/?id=0a0007dee01f2bf17371967105a6ab3c43f85550'/>
<id>0a0007dee01f2bf17371967105a6ab3c43f85550</id>
<content type='text'>
This commit adds support for getting information about a user, as well
as accessing their inbox (not actually getting a CollectionPage yet,
though).

Currently the inbox does not require the right user to be logged in to
access their personal inbox; this should be fixed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit adds support for getting information about a user, as well
as accessing their inbox (not actually getting a CollectionPage yet,
though).

Currently the inbox does not require the right user to be logged in to
access their personal inbox; this should be fixed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Initial commit</title>
<updated>2021-07-03T00:18:13+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2021-07-03T00:18:13+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/commit/?id=7c5c6c52250ca57257ab4af2cc9cdf4425595ec0'/>
<id>7c5c6c52250ca57257ab4af2cc9cdf4425595ec0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
