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

997 general info improvements backend #1006

Merged
merged 11 commits into from
Dec 9, 2024

Conversation

Chelakhovl
Copy link
Collaborator

@Chelakhovl Chelakhovl commented Dec 7, 2024

Model Adjustments:

Updated the Profile model to enforce stricter constraints:
Added character limit enforcement for name to ensure compliance with business requirements.
Validation in Serializers:

Enhanced validation logic in the ProfileOwnerDetailEditSerializer:
Added character limit validation for the name field (max 45 characters) with an appropriate error message: "The company name must not exceed 45 characters.".
Tests Adjustments:

Fixed failing tests that were incompatible with the updated official_name requirement.
Added or adjusted tests to ensure compliance with the following:
Validation errors are returned for name exceeding 45 characters.

Migrations:

Created and applied new migrations to enforce the updated constraints in the database.
TASK: #997

@Chelakhovl Chelakhovl self-assigned this Dec 8, 2024
@Chelakhovl Chelakhovl merged commit 1102419 into develop Dec 9, 2024
4 checks passed
@Chelakhovl Chelakhovl deleted the 997-general-info-improvements-backend branch December 20, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants