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

Added unique title validation for News entities #1456

Open
wants to merge 7 commits into
base: release/1.1.0
Choose a base branch
from

Conversation

darkravchuk
Copy link
Contributor

Summary of Issue

The main issue involves adding validation to ensure that News entities have unique titles within the system. The current implementation lacks a check, which allows duplicate news entries with the same title, leading to potential conflicts and confusion when managing content.

Summary of Change

  • Implemented a validation check that prevents duplicate titles when creating or updating a News entity.
  • Modified the form to validate title uniqueness before submission.
  • Adjusted the error handling logic to notify the user if a duplicate title is detected.

Copy link

sonarqubecloud bot commented Nov 5, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
28.6% Coverage on New Code (required ≥ 80%)
52.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants