Hugo Sales
b82658e345
[SECURITY][DB] Make user register 'atomic', by using a single transaction for inserting all objects, to avoid partial inserts
2021-04-23 12:54:25 +00:00
Hugo Sales
f6dea6e162
[DB] Fix bug in custom criteria format wrangling
2021-04-16 20:28:39 +01:00
Hugo Sales
2f65311ae6
[DB] Allow DQL queries with table name rather than entity
2021-04-16 20:28:39 +01:00
Hugo Sales
1fda65bc3d
[DB] Add table map which allows using table names rather than entities in Doctrine operations
2021-04-16 20:28:39 +01:00
Hugo Sales
c5b26bcffb
[FAVOURITE] Temporary commit to fix exception in timeline
2021-04-16 20:21:54 +01:00
Hugo Sales
d0fd0e6c6c
[DB] Remove unique constraint from GSActor.nickname and fix register and related functionality
2021-04-14 15:37:24 +00:00
Hugo Sales
ffaf5da984
[TESTS] Fix unkept unit tests
2021-04-14 15:37:23 +00:00
Hugo Sales
256169a3c4
[GIT] Change my email to the new one in all files and bump copyright year
2021-04-14 15:37:23 +00:00
Hugo Sales
0d2cf6eaa6
[DB] Merge definition of SchemaDefDriver with SchemaDefPass for clarity
2021-04-14 15:37:23 +00:00
Hugo Sales
5cced1c9ed
[DOCUMENTATION][REFACTOR] Add documentation to all flagged function and do some small cleanup
2021-04-14 15:37:23 +00:00
Hugo Sales
06e92344cc
[CONFIG] Various fixes to use new configuration format
2021-04-14 15:37:23 +00:00
Hugo Sales
02c7bdf4f0
[CONFIG][DB] Remove config from the database, put it in yaml, so it can be baked into the container
2021-04-14 15:37:22 +00:00
Hugo Sales
7e7bfd1958
[EXCEPTION] Make findOne return NotFoundException
2021-04-14 15:37:22 +00:00
Hugo Sales
e0672e559a
[MODULES] Fix module manager dev-mode rebuild
2021-04-14 15:37:22 +00:00
Hugo Sales
d862457623
[DB][DEFAULTS] Change attachment storage location from uploads to attachments
2021-04-14 15:37:22 +00:00
Hugo Sales
7b467091d6
[DB] Add wrapper for making native queries
2021-04-14 15:37:22 +00:00
Hugo Sales
29f30a6932
[DB] Add support for calling methods with FQCN
2021-04-14 15:37:22 +00:00
Hugo Sales
e13e763d5c
[NOTE][UI] Add note replying and UI displaying
2021-04-14 15:37:22 +00:00
Hugo Sales
86bd1dbbbf
[DB][DEFAULTS] Add avatar/default
2021-04-14 15:37:22 +00:00
Hugo Sales
fe50909549
[DB] Add 'dql' method to wrap 'createQuery' and replace 'Gsactor' with 'GSActor'
2021-04-14 15:37:22 +00:00
Hugo Sales
0508886fc4
[CORE][DB] Fix uses of db tables after previous restructure
2021-04-14 15:37:22 +00:00
Alexei Sorokin
690b8750c6
[DATABASE] Enable fulltext search by default
...
Also rename fulltext indices to more fitting names
Imported from v2/f84dbb369f01a1d4a9bc362d01cdd100cdc79313
2021-04-14 15:37:22 +00:00
Hugo Sales
d21d4f5cb1
[AVATAR] Update way avatar is sent, to use proper symfony responses, make config('site', 's_static_delivery') into a boolean
2021-04-14 15:37:22 +00:00
Hugo Sales
e7f541219d
[DATABASE][TOOLS] Update local_user, SchemaDefDriver and bin/generate_entity_fields to use the phone_number type (which maps to a varchar 35 and does validation)
2021-04-14 15:37:21 +00:00
Hugo Sales
d6a7843240
[DATABASE] Refactor DB.php and make findBy always return an array, instead of a doctrine collection
2021-04-14 15:37:21 +00:00
Hugo Sales
39e3e8a04e
[MAILER][WRAPPER] Add mailer wrapper that respects the configuration
2021-04-14 15:37:21 +00:00
Hugo Sales
7bb3717673
[FIX] Fix bug in DATABASE.php, since findBy can return different types
2021-04-14 15:37:21 +00:00
Hugo Sales
fc4d8bcf65
[DEFAULTS] Add password hashing algorithm default settings
2021-04-14 15:37:21 +00:00
Hugo Sales
aadb4832bc
[DEFAULTS][FIX] Fix logic error that kept reloading the table when the file wasn't modified
2021-04-14 15:37:21 +00:00
Hugo Sales
7b00ab4699
[CORE][I18n][DEFAULTS] Remove I18nHelper
2021-04-14 15:37:21 +00:00
Hugo Sales
640c4b2ca8
[DEFAULTS] Update default reserved usernames
2021-04-14 15:37:21 +00:00
Hugo Sales
11822cbed0
[DATABASE][WRAPPER] Add findBy method which allows finding entities with a complex expression
2021-04-14 15:37:21 +00:00
Hugo Sales
91ff4dbdec
[DATABASE][WRAPPER] Update DATABASE wrapper so entity names are provided without the namespace
2021-04-14 15:37:21 +00:00
Hugo Sales
89ce298a3b
[DEFAULTS] Add modified time to config table (as value) and only reload the defaults if the file is newer
2021-04-14 15:37:21 +00:00
Hugo Sales
7a07b95240
[DEFAULTS][FIX] Fix defaults to use value from environment
2021-04-14 15:37:21 +00:00
Hugo Sales
288f8363ae
[FORMATTING][DEFAULTS] Fix formatting and remove redundant config defaults
2021-04-14 15:37:21 +00:00
Hugo Sales
3a6b4cca1e
[CORE][DATABASE] Replace zero dates with CURRENT_TIMESTAMP and add defaults to all 'created' or 'modified'
...
This commit is a port from v2's 9a515b9234
([SCHEMA] Improve timestamp storage) to v3.
As explained by Alexei Sorokin:
Avoid the use of deprecated MariaDATABASE "zero dates" globally. If they're present
as attribute defaults somewhere, they will be replaced with NULL implicitly.
The existing "zero dates" in MariaDATABASE storage will be left intact and this
should not present any issues.
The "timestamp" type in table definitions now corresponds to DATETIME in
MariaDATABASE with "DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP", which
should be close enough to the original behaviour for compatibility purposes.
It is now the recommended type for "modified" attributes, because of the
update trigger on MariaDATABASE. But there is no such trigger implemented on
PostgreSQL as of this moment.
2021-04-14 15:37:21 +00:00
Hugo Sales
6c0c84c284
[DEFAULTS] Small fixes and add check of SOCIAL_NO_RELOAD_DEFAULTS from the environment, to override the reloading of default values
2021-04-14 15:37:21 +00:00
Hugo Sales
3108d82a4d
[I18N] Added ability to call `_m_dynamic` from any class, allowing it to define translations for dynamic-valued calls to `_m`
2021-04-14 15:37:21 +00:00
Hugo Sales
d73840352b
[I18N] Refactor since rfc/use-static-function is not implemented
...
As the above mentioned RFC is not implemented, `_m` needs to be
outside of the I18n class, otherwise it would have to always be called
with `I18n::_m`.
2021-04-14 15:37:21 +00:00
Hugo Sales
0fe5ae7675
[CORE] Refactoring core
2021-04-14 15:37:20 +00:00