Commit Graph

79 Commits

Author SHA1 Message Date
Hugo Sales eccf21edef
[TOOLS][PLUGINS][OAuth2] Add mechanism to allow plugins to have an install script. Add script for generating keys for OAuth 2022-02-28 15:47:32 +00:00
Diogo Peralta Cordeiro fb3e900b28
[CORE] Add CONFIG_ prefix to environment whitelist
Fixed minor issues with Commong:config of env not being included and ported to local social yaml

Fixed some regressions introduced with [CORE] Unset sensitive information from the environment
2022-02-11 10:05:58 +00:00
Hugo Sales 4736146b80
[TOOLS] Update autocode, allow for abstract entity classes, derive namespace from file rather than using 'get_declared_classes' 2022-01-25 13:35:44 +00:00
Hugo Sales a1a6f5f4fd
[TOOLS] Add warning to update code in bin/generate_entity_fields 2021-12-27 03:06:35 +00:00
Hugo Sales 0df423e84b
[TOOLS] Update bin/generate_entity_fields so it defaults nullable variables to null and handles null in varchars 2021-12-27 03:03:57 +00:00
Hugo Sales 97243151fa
[TOOL] CS-fixer does not accept a list of files, so we need to run it on each file individually 2021-12-26 19:16:15 +00:00
Hugo Sales 68076d73dd
[TOOLS] Update bin/generate_entity_fields so it automatically truncates values in setters 2021-12-26 19:16:15 +00:00
Hugo Sales 29bb11e8bc
[TOOLS] Don't fail commit when checking tools fail 2021-12-26 19:16:15 +00:00
Hugo Sales 6ada5e60d2
[TOOLS] Make PHP-CS-Fixer and PHP-Doc-check run inside the tooling container 2021-12-25 15:20:21 +00:00
Hugo Sales 774b33a522
[DEPENDENCIES] Update dependencies and Symfony to 5.4 LTS 2021-12-24 02:46:41 +00:00
Hugo Sales 36976d8fe7
[DOCKER] Update configuration script to include the worker container 2021-12-20 20:39:54 +00:00
Hugo Sales 6cd7be6abc
[UI][CONTROLLER][ENTITY][DOCS] Refactor term 'timeline' into 'feed' 2021-11-26 13:05:23 +00:00
Hugo Sales a6d5752748
[TOOLS][PHPStan] Make a standalone phpstan executable, which executes inside the docker container 2021-10-27 04:19:31 +01:00
Hugo Sales b65ee4c21d
[TOOLS][CS-FIXER] Fix incorrect transformation 2021-10-27 04:19:28 +01:00
Diogo Peralta Cordeiro 941cbe6599
[Actor] Refactor GSActor into Actor 2021-09-18 05:12:17 +01:00
Hugo Sales ee7721da96
[DOCUMENTATION] Add documentation on developer tools 2021-09-18 05:12:09 +01:00
Hugo Sales 9d7f43cd28
[TOOLS][PHPStan][TESTS][Docker] Rework testing Docker container into a more generic tooling container. Keep services up and run coverage and phpstan as commands, for performance and ease of use 2021-09-14 13:13:44 +01:00
Hugo Sales 9742a07bae
[TOOLS][git] Add option to skip pre-commit steps by defining one of `SKIP_ALL`, `SKIP_CS_FIX`, `SKIP_DOC_CHECK`, `SKIP_PHPSTAN` variables before the `git commit` command
Example:
`SKIP_PHPSTAN=1 git commit`
2021-09-14 13:13:44 +01:00
Hugo Sales ddb9702b1c
[TOOLS][PHPStan] Add support for deducing the correct entity type from a table name. Needs refactoring and can only run inside container, as it connects to the database itself 2021-09-14 13:13:44 +01:00
Hugo Sales 0eb0236feb
[TOOLS] Run PHPStan on the whole codebase on each commit 2021-09-14 13:13:42 +01:00
Hugo Sales 4ec9b910c2
[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
Hugo Sales 10c79bcafe
[TOOLS][TESTS] Add coverage ignore tag to autogenerated code 2021-09-14 13:13:00 +01:00
Hugo Sales cfe842b487
[DOCUMENTATION] Add database diagram to developer documentation 2021-09-14 13:12:56 +01:00
Hugo Sales fb220e82ed
[TOOLS] Use \DateTimeInterface rather than DateTimeInterface 2021-09-14 13:12:52 +01:00
Hugo Sales 1d6d20aacb
[TOOLS] In pre-commit hook, only run php-doc-check if some PHP file changed 2021-09-14 13:11:51 +01:00
Diogo Peralta Cordeiro 55b06705d5
[SCRIPTS] pre-commit now has variables double quoted 2021-09-14 13:10:55 +01:00
Diogo Peralta Cordeiro 9997b231d4
[INSTALL] Elaborate on localhost installation 2021-09-14 13:10:54 +01:00
Hugo Sales 155f30e816
[TOOLS] Fix missing exported variable in bin/configure 2021-09-14 13:10:54 +01:00
Hugo Sales ff771223af
[DOCKER][TOOLS] Add option to bin/configure to use a prebuilt PHP container (https://hub.docker.com/repository/docker/gsocial/php) 2021-09-14 13:10:22 +01:00
Hugo Sales 2e490756b9
[DOCKER][MAIL] Temporarily disable mail container 2021-09-14 13:10:20 +01:00
Hugo Sales 1773ab7af2
[DOCKER][MAIL] Update config and change the way mail docker handles it, so the edits aren't visible from the outside, polluting the git staging area 2021-09-14 13:10:20 +01:00
Hugo Sales b3623329e3
[DOKER][MAIL][BOOTSTRAP] Make bootstrap generate separate certificates for the web root and the mail server 2021-09-14 13:10:20 +01:00
Hugo Sales b824a0425e
[DOCKER] Remove quotes from docker env files, as docker (or at least docker-compose) include them in the actual value 2021-09-14 13:10:20 +01:00
Hugo Sales 0e9737ee39
[TOOLS][DOCKER] Rewrite the configuration script to use whiptail/dialog, and refactor 2021-09-14 13:10:20 +01:00
margarida f3c3d80892
[TOOLS][DOCKER] Add mail setup to configure 2021-09-14 13:10:16 +01:00
margarida c36259f7c1
[TOOLS][DOCKER] Changed script to write docker-compose.yaml 2021-09-14 13:10:15 +01:00
margarida 6cb6eeb8a3
[TOOLS][DOCKER] Change dialog method to command substitution and redirection and add way of finding git's root 2021-09-14 13:10:15 +01:00
margarida a8d211cdbf
[TOOLS][DOCKER] Added input verfication 2021-09-14 13:10:15 +01:00
margarida 152d173e69
[TOOLS][DOCKER] Added first version of configuration shell script 2021-09-14 13:10:15 +01:00
Pastilhas def5e06a28
[DOCKER][MAIL] Moved and modified `setup.sh` 2021-09-14 13:10:14 +01:00
Pastilhas 93939d8b25
[DOCKER][MAIL] Switched named volume to shared volume and changed env vars to env file 2021-09-14 13:10:14 +01:00
margarida c26ee45bf3
[TOOLS][DOCKER] Added input verfication 2021-09-14 13:10:11 +01:00
margarida 987d29a674
[TOOLS][DOCKER] Added first version of configuration shell script 2021-09-14 13:10:11 +01:00
Hugo Sales 9cd5560081
[DOCKER] Bump to PHP version 8 2021-09-14 13:06:57 +01:00
Hugo Sales b27bda6a7c
[TOOLS] Use GSActor rather than Gsactor in autogenerated code 2021-09-14 13:06:56 +01:00
Hugo Sales 67d4702743
[HOOKS] Update pre-commit script to check for missing documentation in functions 2021-09-14 13:06:55 +01:00
Tiago Magalhaes 61ebeca706
[CORE] made configure script explicitly fail when bootstrap.env is not present 2021-09-14 13:06:54 +01:00
Hugo Sales 6a2a0d4e66
[TOOLS] Add support for updating autocode in modules 2021-09-14 13:06:51 +01:00
Hugo Sales 636f564672
[TOOLS] Fix bin/generate_entity_fields 2021-09-14 13:05:54 +01:00
Hugo Sales 689a5df670
[TOOLS] Update generate_entity_fields 2021-09-14 13:05:51 +01:00