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

Merge release into master #448

Merged
merged 14 commits into from
Aug 16, 2021
Merged

Merge release into master #448

merged 14 commits into from
Aug 16, 2021

Conversation

StanislavKucher
Copy link
Contributor

No description provided.

AxelNordov and others added 14 commits August 3, 2021 17:28
* update logic findPublishedNotImportantPostsWithImportantImageFirstAndFilters

* some changes

* add tests
* update query for getting posts by important image
* set up gradle file for integration test

* first successful integration test run with database

* added database cleaning after each test

* solved conflicts with dependencies

* added first consistent integration tests

* covered post and put controllers, corrected ForbiddenPermissionsException http status

* little refactoring and added new tests

* covered almost all methods

* covered almost all methods

* deleted code for checking duration

* refactored several tests

* fixed Project.xml changes

* fixed style error in RequestsBodies.java

* clean-up unused code
* add annotation to method in the PostController

* remove unused imports

* add endpoint get-authorities

* implement endpoint get-authorities in the UserController

* refactor endpoint get-authorities in the UserController

* add documenatation to te method getAuthorities

* add test getAuthoritiesTestNotFound to UserController

* add test getAuthoritiesTestOk to the UserControllerTest

* add annotation @repository to the PassordResetTokenRepository

* add assertion equals getAuthoritiesTestOk

* add assertion null

* change test method

* remove test method and add check condition

* add check condition

* add new custom methodArgumentResolver
…ers_test_data_into_DB

Six users' test data was appended into FlyWay migration
* Edited findAllByAuthorIdAndStatus method to findAllByAuthorIdAndStatusOrderByPublishedAtDesc in the PostRepository to sort by descending.

* The tests were edited
…stServiceImpl class (#443)

Adjusted SQL queries per each section by adding to ORDER BY clause ordering by post ID DESC
* add application-prod.properties

* add V13.1__add_demo_data.sql

* add posts to the V13.1__add_demo_data.sql

* add has_posts all true to the V13.1__add_demo_data.sql

* rename V13.1__add_demo_data.sql to 14.1
@StanislavKucher StanislavKucher added bug Something isn't working backend Tasks for Java team SQL SQL issues labels Aug 16, 2021
@StanislavKucher StanislavKucher added this to the Sprint 19 milestone Aug 16, 2021
@StanislavKucher StanislavKucher self-assigned this Aug 16, 2021
@sonarcloud
Copy link

sonarcloud bot commented Aug 16, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

96.2% 96.2% Coverage
0.0% 0.0% Duplication

@StanislavKucher StanislavKucher merged commit d0ff06e into master Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Tasks for Java team bug Something isn't working SQL SQL issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants