aiondemand / AIOD-rest-api

Services for the core of AIoD: Authentication and the metadata catalogue with REST API.
https://api.aiod.eu
MIT License
10 stars 7 forks source link

Rename platform to attend the drupal migration #310

Closed jsmatias closed 5 months ago

jsmatias commented 5 months ago

Rename "drupal" to "ai4europe_cms" in the class PlatformName.

class PlatformName(str, enum.Enum):
    """
    The platforms that are connected to AIoD, and AIoD itself. Every resource is part of a platform.
    To make it possible to add resources from other platforms, the actual platform is stored in
    Platform, a ORM class. On setup, Platform is filled with the values of this enum.
    """

    aiod = "aiod"
    drupal = "drupal" # <---- rename this attribute
...

Next steps

  1. Rename attribute
  2. Change the code where it's needed for validation and for consistency.