upstream V3 development https://www.gnusocial.rocks/v3
Go to file
Diogo Peralta Cordeiro 3f61537140
[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-09-14 13:13:24 +01:00
DOCUMENTATION [DOCUMENTATION] Add database diagram to developer documentation 2021-09-14 13:12:56 +01:00
bin [TOOLS] Fix pre commit hook to allow for partial file commits (git add -p/git reset -p) 2021-09-14 13:13:04 +01:00
components [ENTITY] Split Attachment in various new entities 2021-09-14 13:13:24 +01:00
config [DEV] Add PsySH REPL 2021-09-14 13:13:20 +01:00
docker [TESTS] Revert exposing Redis docker container ports, as this conflicts with the actual instance, and was intended for testing 2021-09-14 13:13:14 +01:00
docs [CSS] Mesh gradient works as intended with no banding. 2021-09-14 13:13:21 +01:00
extlib [V3] Big Crunch 2021-09-14 13:01:23 +01:00
plugins [ENTITY] Split Attachment in various new entities 2021-09-14 13:13:24 +01:00
public [Favourite][TWIG][CSS] Favourite now works. 2021-09-14 13:13:22 +01:00
scripts [V3] Big Crunch 2021-09-14 13:01:23 +01:00
src [ENTITY] Split Attachment in various new entities 2021-09-14 13:13:24 +01:00
templates [ENTITY] Split Attachment in various new entities 2021-09-14 13:13:24 +01:00
tests [ENTITY] Split Attachment in various new entities 2021-09-14 13:13:24 +01:00
translations [I18N] Remove incomplete autogenerated translation file, to be fixed later 2021-09-14 13:05:42 +01:00
.env [QUEUE] Add queueing wrapper, default configuration and example usage 2021-09-14 13:05:33 +01:00
.env.test [TOOLS][TESTS] Adjust configuration for testing environment 2021-09-14 13:12:59 +01:00
.gitignore [TESTS] Make PHPUnit exit on first fail and some other tweaks 2021-09-14 13:13:18 +01:00
.php_cs [FORMATTING][DEFAULTS] Fix formatting and remove redundant config defaults 2021-09-14 13:05:34 +01:00
CREDITS.md [DOCUMENTATION] Document All The Things! 2021-09-14 13:04:33 +01:00
INSTALL.md [DOCUMENTATION] Add documentation on installing with Docker 2021-09-14 13:10:21 +01:00
Makefile [TOOLS] Add utility commands to the Makefile 2021-09-14 13:13:22 +01:00
composer.json [DEV] Add PsySH REPL 2021-09-14 13:13:20 +01:00
composer.lock [DEPENDENCIES] Update dependencies 2021-09-14 13:13:24 +01:00
docker-compose.yaml.default [DOCKER] Fix default docker-compose file 2021-09-14 13:10:21 +01:00
phpunit.xml.dist [TESTS] Update PHPUnit config to start executing tests by last failure. This doens't seem to actually work currently, though 2021-09-14 13:13:22 +01:00
social.yaml [CONFIG] Ensure consistency in config file 2021-09-14 13:13:18 +01:00
symfony.lock [DEV] Add PsySH REPL 2021-09-14 13:13:20 +01:00