Commit Graph

8 Commits

Author SHA1 Message Date
b0f5352a53
[TESTS] Raise test coverage for Attachment controller to 100% 2021-08-16 17:11:05 +01:00
32ad5dbd74
[ENTITY] Split Attachment in various new entities
Remove Attachment Scope
Fixed some minor bugs

Scope will be implemented later in v3. It doesn't make sense to have
the scope handling being per attachment. Different actors can post
the same attachment with different scopes. The attachment controller
will assume the highest level of scope applied to the attachment and
the rest will be handled at the note level.

Motivation:
* Remove title from attachment, as it's part of the relation between attachment and note.
* Remove actor from attachment, many actors may publish the same attachment.
* Remove is_local from attachment,  as it's part of the relation between attachment and note.
* Remove remote_url from attachment, different urls can return the same attachment.

Addition:
* Attachment now has a lives attribute,  it's a reference counter with a nicer name
* GSActorToAttachment
* GSActorToRemoteURL
* RemoteURL
* RemoteURLToNote
* RemoteURLToAttachment
* AttachmentToNote now has a title attribute
2021-08-14 17:00:46 +01:00
c804892672
[TEST] Raise test coverage for UserPanel to 100% 2021-08-14 16:12:57 +01:00
f760de43b0
[TESTS] Fixup Security controller tests to match new UI 2021-08-03 19:37:56 +00:00
960675b459
[TESTS] Raise test coverage for AdminPanel controller to 100% 2021-08-03 19:37:56 +00:00
f9c1d14c7a
[TESTS] Raise test coverage for Attachment controller to 100% 2021-08-03 19:37:56 +00:00
b2456d8cd2
[TESTS] Raise test coverage for Controller/Security to 100% 2021-08-03 19:23:02 +00:00
eecef99372 [TESTS] Raise test coverage for App\Controller\Network to 100% and fixup related code 2021-05-23 19:56:45 +00:00