Wykres commitów

1158 Commity (e8037ce4024292dfe9f8c74f7589e5b982712ee4)

Autor SHA1 Wiadomość Data
Marnanel Thurman ac064ac286 trilby_api.views has permission classes as classes and not strings! 2019-10-22 14:27:36 +01:00
Marnanel Thurman 7dfdd1f2cb trilby_api's user serialiser produces the correct results to pass the REST tests.
"instance" in UserSerializerWithSource renamed to "user" because it was confusing.

Removed trilby_api's old integration and unit tests.
2019-10-22 08:13:39 +01:00
Marnanel Thurman 9c4883db19 The nodeinfo view takes chapeau's version number from the right place. 2019-10-22 07:59:17 +01:00
Marnanel Thurman d57ceef2b2 Moved version number etc from chapeau/kepi/__init__.py to chapeau/__init__.py.
Added trove classifiers to setup.py.
2019-10-22 07:56:38 +01:00
Marnanel Thurman 06afce0cb4 trilby_api test for verify_credentials; doesn't yet pass 2019-10-21 00:21:23 +01:00
Marnanel Thurman af961207ca VerifyCredentials is specifically a JSONResponse 2019-10-21 00:21:07 +01:00
Marnanel Thurman 277e2d4986 c.t.tests.create_local_trilbyuser(), which creates an AcActor too 2019-10-21 00:20:11 +01:00
Marnanel Thurman f9d7b3d3d5 Start of a new set of tests for the REST interface 2019-10-19 18:40:51 +01:00
Marnanel Thurman b3e6825f5f Moving Mastodon-API specific accessors on AcActor back into TrilbyUser, and fixing the serializer to use that. 2019-10-18 21:51:13 +01:00
Marnanel Thurman fc26ddd039 Stubs for notification and filters API. 2019-10-18 21:50:39 +01:00
Marnanel Thurman 7000946dd2 rm old fixme 2019-10-18 21:49:58 +01:00
Marnanel Thurman 691f071f36 Skip all trilby_api tests for now. 2019-10-16 20:03:34 +01:00
Marnanel Thurman 1c34c919a3 Trilby admin also shows fields for AcActor.
The changes to admin.py write these fields;
the changes to forms.py read them.
2019-10-16 19:59:16 +01:00
Marnanel Thurman 9ba49e2573 remove the User.acct property. It's already done in AcActor 2019-10-16 19:58:48 +01:00
Marnanel Thurman 839ef851d0 actor['preferredUsername'] is the same as actor['username'] (but only for get at the moment) 2019-10-16 19:57:28 +01:00
Marnanel Thurman eb0f92f334 kepi doesn't put Person in the admin 2019-10-16 19:57:03 +01:00
Marnanel Thurman e10417d6e2 Valiant attempt to bring the trilby fixture up to date after 18 months 2019-10-16 19:56:21 +01:00
Marnanel Thurman beb439dac1 More migrations that should have been checked in before 2019-10-14 21:14:31 +01:00
Marnanel Thurman 3b7f9ba329 Creating a TrilbyUser create its AcPerson automatically and links them. 2019-10-14 21:13:57 +01:00
Marnanel Thurman d517243eb8 Add HomeTimeline to produce /api/v1/timelines/home.
Monkey-patch oauth2_provider so it doesn't block redirects by protocol.
(See comments for why.)

Authorization grant type for new apps is authorization-code
instead of password. I'm not sure why, but Tusky cares about this.
I shall find out whether other clients mind.
2019-10-12 21:30:06 +01:00
Marnanel Thurman 6e8e5f5475 Collection.get takes an AcActor and a list name.
The old system was becoming unworkable. This saves a lot of hassle.
2019-10-12 21:28:47 +01:00
Marnanel Thurman 9bf2c7d64e Skipping the header test, and turning off the headers middleware.
This is because adding the headers breaks the test client.
Because there's no immediate problem which they solve, I'm
turning them off for now.
2019-10-12 21:27:25 +01:00
Marnanel Thurman ee533cc015 More Mastodon compatibility properties for AcActor 2019-10-12 20:31:38 +01:00
Marnanel Thurman 810cc1bd89 TrilbyUser gains "acct" property 2019-10-12 20:31:07 +01:00
Marnanel Thurman a93a8cec9b WSGI_APPLICATION needs to include the project name 2019-10-12 20:30:06 +01:00
Marnanel Thurman 327eaf3384 AcActor gains some new fields for subscripting, for Mastodon compatibility 2019-10-11 13:01:22 +01:00
Marnanel Thurman 5dedf3c735 slight reorganisation of serialiser field definitions for clarity;
no substantitive changes
2019-10-11 12:58:27 +01:00
Marnanel Thurman bbefb96303 __getattr__() on TrilbyUser passes through to the appropriate AcActor if it doesn't match anything in the TrilbyUser. 2019-10-11 12:57:30 +01:00
Marnanel Thurman 544e98e4a2 Further fixes to the kepi tests so they know they're under chapeau/kepi now 2019-10-11 12:57:03 +01:00
Marnanel Thurman 5733b60a5a TrilbyUsers are one-to-one matched with kepi.AcPerson.
In other words, all the users Django knows about, kepi knows about too.

Note that this has broken the serialisers :/

When you create a TrilbyUser, the kepi.AcPerson is created automatically to match.
2019-10-09 18:47:44 +01:00
Marnanel Thurman a75d86756d trilby_api.TrilbyUser overrides AbstractUser but adds a link
to an AcPerson in kepi.

Lots of old irrelevant stuff removed from trilby_api
2019-10-09 18:31:11 +01:00
Marnanel Thurman b011f1fb93 kepi tests moved into the kepi dir, and they all pass 2019-10-09 18:10:52 +01:00
Marnanel Thurman 98339716e3 Moving un_chapeau's login code here to chapeau. 2019-10-09 17:39:16 +01:00
Marnanel Thurman 50731c0446 kepi.validation imports kepi.find correctly 2019-10-09 17:08:31 +01:00
Marnanel Thurman ed3b184c38 If chapeau.local_config.py isn't found, warn. 2019-10-09 17:02:08 +01:00
Marnanel Thurman 1941a769e8 kepi and trilby_api both live under chapeau
(as chapeau.kepi and chapeau.trilby_api).

Vast commit.

It runs, but not all the tests have been converted to the new layout.
Soon.
2019-10-09 16:45:22 +01:00
Marnanel Thurman ab0bf88b4a Merge branch 'master' into trilby 2019-10-08 15:36:10 +01:00
Marnanel Thurman 8c7628e670 more s/kepi/chapeau/, for setup.py 2019-10-08 15:35:51 +01:00
Marnanel Thurman 5524616371 trilby_api moves into chapeau/ 2019-10-08 15:29:54 +01:00
Marnanel Thurman 797e31f8ea Test for headers takes account of Atom advertisement 2019-10-08 15:29:30 +01:00
Marnanel Thurman 7f5fa1640e Migration 0003 for kepi; don't know why this wasn't already in 2019-10-08 15:29:04 +01:00
Marnanel Thurman cb952266c8 Merge branch 'master' into trilby 2019-10-08 13:50:04 +01:00
Marnanel Thurman 7356dca4e9 Including all the other chapeau modules in this repository.
Therefore, changing the name of the Django app to chapeau.
2019-10-08 13:30:33 +01:00
Marnanel Thurman 748e57049c endpoints -> urlpatterns in trilby_api.urls 2019-10-05 16:07:15 +01:00
Marnanel Thurman 7ce35b14e0 overhaul of atom template XML so it works with kepi 2019-10-05 16:06:54 +01:00
Marnanel Thurman dd7de191f3 trilby_api into PACKAGES 2019-10-05 16:02:20 +01:00
Marnanel Thurman 241aeceaed Feed URL, profile page, and subscribe button added to webfinger. 2019-10-05 16:01:24 +01:00
Marnanel Thurman 4d950df6d7 Include trilby_api.urls in kepi.urls 2019-10-05 16:00:41 +01:00
Marnanel Thurman 5f9dcdd98b Include Atom URL in the Actor view. 2019-10-05 16:00:25 +01:00
Marnanel Thurman 25313d0122 AcObject gains "updated" timestamp.
AcActor gains f_name.
AcObject implements "is_local" locally, so as to avoid unreasonably tight coupling with d_k.find.
AcActor loses "url" property, since it duplicated the superclass.
Lots of new AcActor.__getitem__ properties, to support the Atom feed template.
2019-10-05 15:57:40 +01:00