ita-social-projects / dokazovi-fe

The platform for verified medical speakers and their recommendations.
MIT License
11 stars 9 forks source link

Bugfix#519/537 buttons save&post in editor, refactoring for post creation/updation files #741

Closed Dergelyova closed 2 years ago

Dergelyova commented 2 years ago

Type of Pull Request *

Related links

Issue link [#519 The "Опублікувати" button doesn't work in the Editor] ( https://github.com/ita-social-projects/dokazovi-requirements/issues/519) [#537 'Material' page: The changes are not saved in the publication after clicking ‘Зберегти’ button] ( https://github.com/ita-social-projects/dokazovi-requirements/issues/537)

Story link #470 [Admin] «Опублікувати» button in the Editor #327 Add save button to editor

Description *

Fixed bugs related to Save&Publish buttons in Editor for Post Updation and Post Creation. Resolved correct statuses, which must be saved in system after clicking buttons in Editor. Adjusted post-checking process connected with filling all required fields after clicking these buttons. Refactored InformationModal file due to make the flow of showing and closing modal window clearer. Refactored PostUpdation and PostCreation files due to avoid code duplication. Adjusted test files, updated snapshots.

Summary of issue

The Save & Publish buttons in the Editor functioned in the incorrect way.

Summary of change

The Save & Publish buttons in the Editor function in the correct way.

sonarcloud[bot] commented 2 years ago

SonarCloud Quality Gate failed.    Quality Gate failed

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

43.3% 43.3% Coverage
3.6% 3.6% Duplication