Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Performance improvements #2025

Merged
merged 26 commits into from
Dec 18, 2023

fix: Soft delete on last language delete

90ea484
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

fix: Performance improvements #2025

fix: Soft delete on last language delete
90ea484
Select commit
Loading
Failed to load commit list.
GitHub Actions / Backend Tests succeeded Dec 18, 2023 in 1s

Backend Tests ✅

Tests passed successfully

Report Passed Failed Skipped Time
backend/data/build/test-results/test/TEST-io.tolgee.security.authentication.JwtServiceTest.xml 10✅ 185ms
backend/data/build/test-results/test/TEST-io.tolgee.security.ratelimit.RateLimitServiceTest.xml 9✅ 103ms
backend/data/build/test-results/test/TEST-io.tolgee.security.RequestContextServiceTest.xml 5✅ 319ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.cachePurging.AzureContentStorageConfigCachePurgingTest.xml 1✅ 587ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.component.machineTranslation.LanguageTagConvertorTest.xml 1✅ 1ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.CoreImportFileProcessorUnitTest.xml 3✅ 503ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.KeysDistanceUtilTest.xml 1✅ 6ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.PathDTOTest.xml 5✅ 8ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.messageFormat.FormatDetectorTest.xml 2✅ 7ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.messageFormat.ToICUConverterTest.xml 8✅ 126ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.po.PoFileProcessorTest.xml 3✅ 30ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.po.PoParserTest.xml 1✅ 2ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.xliff.Xliff12FileProcessorTest.xml 3✅ 226ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.xliff.XliffFileProcessorTest.xml 1✅ 19ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.TextHelperTest.xml 4✅ 13ms
backend/data/build/test-results/test/TEST-io.tolgee.unit.util.SlugGeneratorTest.xml 8✅ 34ms
backend/data/build/test-results/test/TEST-io.tolgee.util.WordCounterTest.xml 2✅ 89ms

✅ backend/data/build/test-results/test/TEST-io.tolgee.security.authentication.JwtServiceTest.xml

10 tests were completed in 185ms with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.security.authentication.JwtServiceTest 10✅ 185ms

✅ io.tolgee.security.authentication.JwtServiceTest

✅ it rejects tokens emitted before user tokens validity period()
✅ it generates and understands tickets()
✅ it generates and understands tokens()
✅ it validates the type of the ticket()
✅ it rejects expired tickets()
✅ it ignores super powers when they are expired()
✅ it stores the super powers of tokens when it has them()
✅ it rejects invalid tokens and tickets()
✅ it stores arbitrary data in tickets()
✅ it rejects expired tokens()

✅ backend/data/build/test-results/test/TEST-io.tolgee.security.ratelimit.RateLimitServiceTest.xml

9 tests were completed in 103ms with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.security.ratelimit.RateLimitServiceTest 9✅ 103ms

✅ io.tolgee.security.ratelimit.RateLimitServiceTest

✅ it conditionally applies rate limit policies correctly when throwing exceptions()
✅ rate limit bucket is correctly defined for global user rate limit()
✅ authentication-limits config only affects authentication endpoint limits()
✅ it applies rate limit policies correctly()
✅ rate limit bucket is correctly defined for global public rate limit()
✅ global-limits config only affects global limits()
✅ rate limit bucket is correctly defined for global auth rate limit()
✅ endpoint-limits config only affects non-auth endpoint limits()
✅ it conditionally applies rate limit policies correctly()

✅ backend/data/build/test-results/test/TEST-io.tolgee.security.RequestContextServiceTest.xml

5 tests were completed in 319ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.security.RequestContextServiceTest 5✅ 319ms

✅ io.tolgee.security.RequestContextServiceTest

✅ it throws in implicit scenarios without an API key()
✅ it correctly detects the current organization()
✅ it correctly detects the current project()
✅ it correctly detects the current project in implicit scenarios()
✅ it correctly detects the current organization when using slugs()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.cachePurging.AzureContentStorageConfigCachePurgingTest.xml

1 tests were completed in 587ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.unit.cachePurging.AzureContentStorageConfigCachePurgingTest 1✅ 587ms

✅ io.tolgee.unit.cachePurging.AzureContentStorageConfigCachePurgingTest

✅ correctly purges()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.component.machineTranslation.LanguageTagConvertorTest.xml

1 tests were completed in 1ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.unit.component.machineTranslation.LanguageTagConvertorTest 1✅ 1ms

✅ io.tolgee.unit.component.machineTranslation.LanguageTagConvertorTest

✅ it converts correctly()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.CoreImportFileProcessorUnitTest.xml

3 tests were completed in 503ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.unit.CoreImportFileProcessorUnitTest 3✅ 503ms

✅ io.tolgee.unit.CoreImportFileProcessorUnitTest

✅ stores key meta()
✅ finds proper existing language for imported language()
✅ handles conflicts properly()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.KeysDistanceUtilTest.xml

1 tests were completed in 6ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.unit.KeysDistanceUtilTest 1✅ 6ms

✅ io.tolgee.unit.KeysDistanceUtilTest

✅ it works()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.PathDTOTest.xml

5 tests were completed in 8ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.unit.PathDTOTest 5✅ 8ms

✅ io.tolgee.unit.PathDTOTest

✅ testFromNamePathList()
✅ testFromFullPath()
✅ testFromNamePath()
✅ testFromFullPathList()
✅ escaping()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.messageFormat.FormatDetectorTest.xml

2 tests were completed in 7ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.unit.service.dataImport.processors.processors.messageFormat.FormatDetectorTest 2✅ 7ms

✅ io.tolgee.unit.service.dataImport.processors.processors.messageFormat.FormatDetectorTest

✅ returns PHP format()
✅ returns C format()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.messageFormat.ToICUConverterTest.xml

8 tests were completed in 126ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.unit.service.dataImport.processors.processors.messageFormat.ToICUConverterTest 8✅ 126ms

✅ io.tolgee.unit.service.dataImport.processors.processors.messageFormat.ToICUConverterTest

✅ testPhpMessageWithFlags()
✅ testPhpPlurals()
✅ testPythonMessage()
✅ testCMessage()
✅ testPhpMessage()
✅ testPhpMessageKey()
✅ testPhpMessageMultiple()
✅ testPhpMessageEscapes()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.po.PoFileProcessorTest.xml

3 tests were completed in 30ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.unit.service.dataImport.processors.processors.po.PoFileProcessorTest 3✅ 30ms

✅ io.tolgee.unit.service.dataImport.processors.processors.po.PoFileProcessorTest

✅ processes standard file correctly()
✅ adds metadata()
✅ processes windows newlines()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.po.PoParserTest.xml

1 tests were completed in 2ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.unit.service.dataImport.processors.processors.po.PoParserTest 1✅ 2ms

✅ io.tolgee.unit.service.dataImport.processors.processors.po.PoParserTest

✅ returns correct parsed result()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.xliff.Xliff12FileProcessorTest.xml

3 tests were completed in 226ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.unit.service.dataImport.processors.processors.xliff.Xliff12FileProcessorTest 3✅ 226ms

✅ io.tolgee.unit.service.dataImport.processors.processors.xliff.Xliff12FileProcessorTest

✅ processes xliff 12 fast enough()
✅ handles errors correctly()
✅ processes xliff 12 file correctly()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.service.dataImport.processors.processors.xliff.XliffFileProcessorTest.xml

1 tests were completed in 19ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.unit.service.dataImport.processors.processors.xliff.XliffFileProcessorTest 1✅ 19ms

✅ io.tolgee.unit.service.dataImport.processors.processors.xliff.XliffFileProcessorTest

✅ processes xliff 12 file()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.TextHelperTest.xml

4 tests were completed in 13ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.unit.TextHelperTest 4✅ 13ms

✅ io.tolgee.unit.TextHelperTest

✅ replaces ICU params in standard text()
✅ splitOnNonEscapedDelimiter()
✅ replaces ICU params with escaping()
✅ replaces ICU params in text with params()

✅ backend/data/build/test-results/test/TEST-io.tolgee.unit.util.SlugGeneratorTest.xml

8 tests were completed in 34ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.unit.util.SlugGeneratorTest 8✅ 34ms

✅ io.tolgee.unit.util.SlugGeneratorTest

✅ throwsWhenTooHard()
✅ removesSpecialChars()
✅ testValidInput()
✅ testGenerateEmpty()
✅ addsNumbersAndShorten()
✅ shortenString()
✅ shortensAfterNumbers()
✅ removesAccents()

✅ backend/data/build/test-results/test/TEST-io.tolgee.util.WordCounterTest.xml

2 tests were completed in 89ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.tolgee.util.WordCounterTest 2✅ 89ms

✅ io.tolgee.util.WordCounterTest

✅ returns ULocale from tag()
✅ counts words correctly()