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

Domains: Add uniqueness constraint and tests for DomainCategory model and CLI #489

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 14, 2024

  1. Add uniqueness constraint and tests for DomainCategory model and CLI

    * Added `unique=True` constraint to the `label` field in `DomainCategory` model to enforce uniqueness at the database level.
    * Modified `domains_create` CLI command to check for duplicates before creating a new domain category, providing feedback if the domain already exists.
    * Added tests for `DomainCategory` model to validate creation, retrieval, and handling of duplicate labels.
    * Enhanced `test_cli_createdomain`
    * closes inveniosoftware/invenio-app-rdm#2796
    Samk13 committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    906e02c View commit details
    Browse the repository at this point in the history