Skip to content

Commit

Permalink
Merge branch '4.0-dev' into dashboard-widget-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
muhtasimhafiz committed Nov 29, 2024
2 parents a2f815c + f442452 commit 56408bc
Show file tree
Hide file tree
Showing 162 changed files with 7,303 additions and 3,044 deletions.
2 changes: 1 addition & 1 deletion .dev/docker-compose.tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
- "44302:443" #Using different ports for testing, so we don't have to worry about collision (available range is 44300–44399)
environment:
LEAN_DB_HOST: 'db'
LEAN_DB_USER: 'leantime'
LEAN_DB_USER: 'root'
LEAN_DB_PASSWORD: 'leantime'
LEAN_DB_DATABASE: 'leantime_test'
LEAN_DB_PORT: '3306'
Expand Down
4 changes: 2 additions & 2 deletions .dev/test.env
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ LEAN_APP_DIR = '' # Base of application without trai
LEAN_DEBUG = 1 # Debug flag

# Database
LEAN_DB_HOST='localhost' # Database host
LEAN_DB_HOST='db' # Database host
LEAN_DB_USER='root' # Database username
LEAN_DB_PASSWORD='test' # Database password
LEAN_DB_DATABASE='leantime' # Database name
LEAN_DB_DATABASE='leantime_test' # Database name
LEAN_DB_PORT='3306' # Database port

## Optional Configuraiton, you may ommit these from your .env file
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ body:
- type: textarea
id: context
attributes:
label: Additional Notes
description: "Please add any additional context you can share"
label: Error Logs (LEANTIMEFOLDER/storage/logs)
description: "Please past the contents of your error logs and any other logs you may have."
validations:
required: false
1 change: 0 additions & 1 deletion .idea/codeception.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .pint/pint.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"exclude": [
"storage/",
"userfiles/"
"userfiles/",
"tests/Support/_generated"
]
}
92 changes: 92 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,95 @@
# Version: 3.3.3

* [752bfec](https://github.com/Leantime/leantime/commit/752bfec2650b4da9cd5c2310b8ae4ea3901a27b8): Version Bump
* [f5717e6](https://github.com/Leantime/leantime/commit/f5717e6c9c1d5ce815251f9e1f3676876e040b68): Merge remote-tracking branch 'origin/master'
* [f44dbb8](https://github.com/Leantime/leantime/commit/f44dbb8fc73f56fa6082089a21d92da26c46cead): style fixes
* [6828e9c](https://github.com/Leantime/leantime/commit/6828e9c042ee038bc7101574c88b869746a63c31): Check for datetime parsing and sprint verification
* [22d28a5](https://github.com/Leantime/leantime/commit/22d28a514adff2b7390742c731f6cd6ee9cbc47f): Fixes updater and backup creator
* [87e3774](https://github.com/Leantime/leantime/commit/87e377482efb885c2e47007c387c1df6fe61ae8f): Updating how we load language files from plugins and caching them
* [838c836](https://github.com/Leantime/leantime/commit/838c8367933be9cbaa19dfe5c48859f7b09f9a57): Update bug_report.yml
* [8b804d4](https://github.com/Leantime/leantime/commit/8b804d4ab26965743a1dcf21dffec133887d0bd9): Update UpdateLeantime.php
* [fd34096](https://github.com/Leantime/leantime/commit/fd340969d606e793f990921a3669fa8291e47a35): Update Registration.php
* [7069916](https://github.com/Leantime/leantime/commit/706991635364ac895c3b230a943030678deb21b9): LanguageFile Registration improvements
* [3a0aa4a](https://github.com/Leantime/leantime/commit/3a0aa4a4a29278524175a4e64139a82aa6dc10f4): fix code styles
* [ee79913](https://github.com/Leantime/leantime/commit/ee799139412baacba0d0952b839e6560f9df7de5): Improving eventDispatcher findListener call and settings repo
* [177d514](https://github.com/Leantime/leantime/commit/177d5143f54cd996a854307c3efd5295cbad18fe): Fix styles and ignore generated files in pint
* [743beee](https://github.com/Leantime/leantime/commit/743beee87b9603f8460ebd9b94269e6035d33fa5): Code style fixes
* [ad64371](https://github.com/Leantime/leantime/commit/ad64371e719d3a9443d583d0457678305fc5ccc9): Fix access issues regarding manager role #2820
* [3619037](https://github.com/Leantime/leantime/commit/3619037a7cb4fe71893da1936d1578d7e49332c3): code style fix
* [28343d3](https://github.com/Leantime/leantime/commit/28343d36dfe02e93a0c9951e79d4e9ec7cb6e9db): Fix issue with api guard not having access to apikey
* [120f578](https://github.com/Leantime/leantime/commit/120f578698e28e921d029a6b8749eab44b4c8d8a): Fix missing value submission for notifications checkbox #2818
* [29ad2e6](https://github.com/Leantime/leantime/commit/29ad2e6bf9f73881309e9d75e2c2e0047abb99ae): Fixing code style
* [ee6285b](https://github.com/Leantime/leantime/commit/ee6285bd7e735f23a977cd1162bb5609936332a2): Add unit tests
* [73af0b6](https://github.com/Leantime/leantime/commit/73af0b65610d13c1538dd3932a4a204d3879b674): Create new avatar creator support class and ensure avatars can be generated in various languages and encodings
* [936dcbf](https://github.com/Leantime/leantime/commit/936dcbf68a0639c969792b9d011a0c5ec373c2d6): fix code styles
* [4e2c859](https://github.com/Leantime/leantime/commit/4e2c859a8d4b1fcf08963dfa10b5e499cd04351d): Fix authcheck missing parameter
* [5d18d8c](https://github.com/Leantime/leantime/commit/5d18d8cc1fccb24dabe290b54fa6fe04d23346f2): Using laravel auth and adding leantime as auth provider.
* [fabd409](https://github.com/Leantime/leantime/commit/fabd4091d09f9e571afcfc9cf28b978ff6711e3c): Check translations strings


# Version: 3.3.2

* [4a952c8](https://github.com/Leantime/leantime/commit/4a952c8b521fa9db7b7b04d968102521310b0440): Update README.md
* [d5d1c8f](https://github.com/Leantime/leantime/commit/d5d1c8f90f66fbff397727757ac1b377a6a49140): Version bump
* [034a158](https://github.com/Leantime/leantime/commit/034a1581bb04babc54595cfb46d8ef56146ec599): attribute class
* [7e2ea50](https://github.com/Leantime/leantime/commit/7e2ea500500f047460d70747a569b1cd0b756fcd): fix csv importer
* [112d550](https://github.com/Leantime/leantime/commit/112d550a803b890ba15fc544e774b669cefc7cce): New translations en-us.ini (German (Informal))
* [f944a62](https://github.com/Leantime/leantime/commit/f944a62be856105c51cf466bceb232047a45230f): New translations en-us.ini (Karakalpak)
* [8549a4c](https://github.com/Leantime/leantime/commit/8549a4c47fbd19cbece7becba4db83d29eeae2eb): New translations en-us.ini (Spanish, Latin America)
* [ff06e4f](https://github.com/Leantime/leantime/commit/ff06e4ffa78641650e5a0e3cb5a2060bdd519e44): New translations en-us.ini (English (upside down))
* [6b62a82](https://github.com/Leantime/leantime/commit/6b62a82b64ea6c1968829835d28fda3fc96a1376): New translations en-us.ini (Kashmiri)
* [06bc0f1](https://github.com/Leantime/leantime/commit/06bc0f1cfdd636f1a87301a3f2d614a6b5d7d0d9): New translations en-us.ini (Pirate English)
* [03cf307](https://github.com/Leantime/leantime/commit/03cf307d279e469d78bcfba91e14d4726f2d22ee): New translations en-us.ini (English, United Kingdom)
* [46e84c3](https://github.com/Leantime/leantime/commit/46e84c3867d14b77c641d3e1417ca11c61158398): New translations en-us.ini (Latvian)
* [698dda3](https://github.com/Leantime/leantime/commit/698dda3abb97d5741c586f81fd78fdcf86ea8ef7): New translations en-us.ini (Estonian)
* [a5e2ce0](https://github.com/Leantime/leantime/commit/a5e2ce01f5d49bea3223f508dd9c45323af87ad3): New translations en-us.ini (Croatian)
* [a19b3e0](https://github.com/Leantime/leantime/commit/a19b3e09246ca04da3ec23ae5d8f0ef438ed327b): New translations en-us.ini (Spanish, Mexico)
* [89c85f0](https://github.com/Leantime/leantime/commit/89c85f0a86884f8895c0c35e1e9704b7807c0896): New translations en-us.ini (Khmer)
* [594c8c9](https://github.com/Leantime/leantime/commit/594c8c9ccabeaefb9961c9782c69b180c56c6cae): New translations en-us.ini (Persian)
* [2e59069](https://github.com/Leantime/leantime/commit/2e59069a5416be0e7462457021285bc1d7451adc): New translations en-us.ini (Portuguese, Brazilian)
* [2781e73](https://github.com/Leantime/leantime/commit/2781e73d7a18524d404af2f7aaad1996e3d191a2): New translations en-us.ini (Icelandic)
* [eb5eb6c](https://github.com/Leantime/leantime/commit/eb5eb6c86e41744805d4682b1ceff4787e9e6162): New translations en-us.ini (Vietnamese)
* [fed047b](https://github.com/Leantime/leantime/commit/fed047be658feb53669f22cad308a875ff7e07bc): New translations en-us.ini (Chinese Traditional)
* [b81bbae](https://github.com/Leantime/leantime/commit/b81bbae55d5f6d012e05bf88cef9f75e36b649f5): New translations en-us.ini (Chinese Simplified)
* [b3c9851](https://github.com/Leantime/leantime/commit/b3c9851ed90f745568b45e386e0b4c2aa934bc2e): New translations en-us.ini (Turkish)
* [6218e74](https://github.com/Leantime/leantime/commit/6218e74d3735e942c5e391278357c84db429a097): New translations en-us.ini (Swedish)
* [13dc4cd](https://github.com/Leantime/leantime/commit/13dc4cd1aaf58e363506287529560787c899af06): New translations en-us.ini (Serbian (Cyrillic))
* [20b909a](https://github.com/Leantime/leantime/commit/20b909a667db60ed1b06d2e8bccac4054d998229): New translations en-us.ini (Slovenian)
* [adb090c](https://github.com/Leantime/leantime/commit/adb090c63c6fdaab48704ecfc71a3a127a824429): New translations en-us.ini (Slovak)
* [e56aff4](https://github.com/Leantime/leantime/commit/e56aff497bc7ec715a1b6d689302f36064a2c843): New translations en-us.ini (Russian)
* [7bc3dfd](https://github.com/Leantime/leantime/commit/7bc3dfd22be6898c05dae621cb7bc884e609d553): New translations en-us.ini (Portuguese)
* [8225b72](https://github.com/Leantime/leantime/commit/8225b72b3e3323c877996cbf2fbbef7151530a2f): New translations en-us.ini (Polish)
* [214635a](https://github.com/Leantime/leantime/commit/214635aa7bcb34fa3b8b7c2e84833a4eb373101f): New translations en-us.ini (Norwegian)
* [c045d94](https://github.com/Leantime/leantime/commit/c045d94819ce91ae919dc45a1ffae7624e33e842): New translations en-us.ini (Dutch)
* [9ecb23b](https://github.com/Leantime/leantime/commit/9ecb23b84116592844672cd1ea9a933fbf0bd34e): New translations en-us.ini (Korean)
* [c098909](https://github.com/Leantime/leantime/commit/c098909bfe324db2b475a30895f81086f6dc7c6a): New translations en-us.ini (Japanese)
* [7ae0cac](https://github.com/Leantime/leantime/commit/7ae0caca2c5d7f831c3e3974184efff108dbb28d): New translations en-us.ini (Italian)
* [85bd1a4](https://github.com/Leantime/leantime/commit/85bd1a4261abd0c1959252d708fc39536c3af83b): New translations en-us.ini (Hungarian)
* [99e3e46](https://github.com/Leantime/leantime/commit/99e3e46098041cf734a9df139ac2343268a39169): New translations en-us.ini (Hebrew)
* [38f9db3](https://github.com/Leantime/leantime/commit/38f9db3ff3336b15394b21ff31ba1297611a5fbd): New translations en-us.ini (Greek)
* [473b217](https://github.com/Leantime/leantime/commit/473b217a8ac9e875e8d8197873197fe97c50d669): New translations en-us.ini (German)
* [6b18346](https://github.com/Leantime/leantime/commit/6b1834604704a87d114dc4ec23bd195d0dd714bb): New translations en-us.ini (Danish)
* [5ee5788](https://github.com/Leantime/leantime/commit/5ee5788f4d0da2f0e7a14377c796949a93561061): New translations en-us.ini (Czech)
* [900209a](https://github.com/Leantime/leantime/commit/900209a70645dc9fa95a8fce1fd5c65b0a670a2d): New translations en-us.ini (Arabic)
* [341f439](https://github.com/Leantime/leantime/commit/341f4392f48e53a70979bd9eb7b32e3abf278603): New translations en-us.ini (Spanish)
* [45b55e6](https://github.com/Leantime/leantime/commit/45b55e6705ab0fcb4632b57869cd2b9c5248641a): New translations en-us.ini (French)
* [4d06b41](https://github.com/Leantime/leantime/commit/4d06b41be002d7571ae02a33e5b0a3c9601e4954): New translations en-us.ini (Romanian)
* [2b11141](https://github.com/Leantime/leantime/commit/2b1114191776313746f252a243b96f25177793f4): Update Projects.php
* [7699c45](https://github.com/Leantime/leantime/commit/7699c4599198b3a705fdb70081e76d8c8b7f46f8): New translations en-us.ini (German)
* [4f0998f](https://github.com/Leantime/leantime/commit/4f0998f651684417657e5bef6daefa2432078136): Update de-DE.ini
* [31d54ce](https://github.com/Leantime/leantime/commit/31d54cebf18c9a3204cb612e7c30f14a6a73dd74): fix code styles
* [8cb7914](https://github.com/Leantime/leantime/commit/8cb79140d77dcc6c2c13e8e928b4e1dfabea6168): Clean up tests
* [39d18c1](https://github.com/Leantime/leantime/commit/39d18c1e9e61e3a57a71174c6d30071969243b9c): Update UnitTesterActions.php
* [5f1b0d8](https://github.com/Leantime/leantime/commit/5f1b0d8a6fd0e3094d0c43737c0d8b02ff577192): Unit tests for jsonrpc controller
* [fc40528](https://github.com/Leantime/leantime/commit/fc40528efcd64ffa387f5dc1dfea6e3ce554fdb3): Fix code style
* [4b78fdd](https://github.com/Leantime/leantime/commit/4b78fdde3a6e9bfaeb17ba245df24e690f69906b): update readme and test location
* [ec63cdc](https://github.com/Leantime/leantime/commit/ec63cdc2bf49b093c04855d49f05e86501ce65c6): Update en-US.ini
* [a5c9ff8](https://github.com/Leantime/leantime/commit/a5c9ff8a3cda237ad9186c654d6b5219cb3dabf9): Fix API calls and write unit tests
* [aebcf67](https://github.com/Leantime/leantime/commit/aebcf67ecc331adc29d3c0f19bae4ce3acba7f42): Fixes issue where milestones without end dates are causing 500 error
* [cd3cf13](https://github.com/Leantime/leantime/commit/cd3cf13d4e78b0971ee47e71f2e949c92569bb43): delete Pirate.json
* [6cffcf6](https://github.com/Leantime/leantime/commit/6cffcf6d67349e3632a00894a829fe724dd1c6db): Fixes wrong dates in milestone calendar header


# Version: 3.3.1

* [9285883](https://github.com/Leantime/leantime/commit/9285883d0c950d25add07dd6a5aa7d0bed421ee2): Update StringableMacros.php
Expand Down
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ There are two main ways to install LeanTime for production. The first of which i

#### Local Production Installation ####

* Download latest release package (file is called: Leantime-vx.x.x.zip) from the <a href="https://github.com/Leantime/docker-leantime/releases">release page</a>
* Download latest release package (file is called: Leantime-vx.x.x.zip) from the <a href="https://github.com/Leantime/leantime/releases">release page</a>
* Create an empty MySQL database
* Upload the entire directory to your server
* Point your domain root to the `public/` directory
Expand Down Expand Up @@ -155,6 +155,21 @@ The dev environment provides a MySQL server, mail server, s3 server, and should
Additionally, Xdebug is enabled, but you will have to modify your
IDE key in the ``.dev/xdebug.ini`` file(or alternatively, on your IDE). You also need to have port 9003 temporarily open on your firewall so you can utilize it effectively. This is because connections from docker to the host will count as external inbound connections
<br /><br />

### Run Tests

Static Analysis `make phpstan`<br />
Code Style `make test-code-style` (to fix code style automatically use `make fix-code-style`)<br />
Unit Tests `make unit-test`<br />
Acceptance Tests `make acceptance-test`<br /> (requires docker)

You can test individual acceptance test groups directly using:<br />
For api: <br />
`docker compose --file .dev/docker-compose.yaml --file .dev/docker-compose.tests.yaml exec leantime-dev php vendor/bin/codecept run -g api --steps`<br />
For timesheets: <br />
`docker compose --file .dev/docker-compose.yaml --file .dev/docker-compose.tests.yaml exec leantime-dev php vendor/bin/codecept run -g timesheet --steps`<br />


### 🏗 Update ###

#### Manual
Expand Down
4 changes: 3 additions & 1 deletion app/Command/AddUserCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
#[AsCommand(
name: 'user:add',
description: 'Add a new user',
description: 'Add a new user (email, password, role required options)',
)]
class AddUserCommand extends Command
{
Expand Down Expand Up @@ -139,6 +139,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return Command::FAILURE;
}

$io->success('User created successfully');

return Command::SUCCESS;
}
}
2 changes: 1 addition & 1 deletion app/Command/BackupDbCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$output = [];
$cmd = sprintf(
'mysqldump --column-statistics=0 --user=%s --password=%s --host=%s %s --port=%s --result-file=%s 2>&1',
'mysqldump --column-statistics=0 --user=\'%s\' --password=\'%s\' --host=%s %s --port=%s --result-file=%s 2>&1',
$config->dbUser,
$config->dbPassword,
$config->dbHost == 'localhost' ? '127.0.0.1' : $config->dbHost,
Expand Down
Loading

0 comments on commit 56408bc

Please sign in to comment.