Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-55

Add check for max length for urls in metadata

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 1.2.2
    • None
    • Backend
    • AAH 4.3.0 Sprint 3

      In galaxy-importer:

      • Add a 2000 char limit for the URL fields in collection metadata: documentation, homepage, issues, repository.
      • Add a 64 char limit for authors field

      For the authors field, currently the limit is noticed when there is a database error in AH, and this is displayed to the user:
      {'authors': {1: [ErrorDetail(string='Ensure this field has no more than 64 characters.', code='max_length')]}}
      Adding the author check to the importer allows for this to be caught in AH before import is finished, caught in Community Galaxy, and caught if the galaxy-importer cli is run by user for validation.

      Issue migrated from: https://github.com/ansible/galaxy_ng/issues/162

              cspealma@redhat.com Clara Spealman (Inactive)
              chousekn Chris Houseknecht (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: