F1a: user fixes
Keep preview visibility in the domain page and reset it on domain changes. Build the source controls from the folder schema, keep folder edits while hidden, and send only the discriminator for site training. Place the existing upload controls in the next card and use the server-declared file types. Keep shared ingestion endpoints used by Conectar and remove the EEG-page upload flow. Docker socket access was denied and the local environment lacks fastapi-users. Generate the changed OpenAPI route and schemas from the real models router with the production app settings, verify its other routes and schemas against the checked-in document, and run ng-openapi-gen directly from the cached dependencies.
This commit is contained in:
+65
-36
@@ -1077,6 +1077,37 @@
|
||||
"title": "FieldSpec",
|
||||
"type": "object"
|
||||
},
|
||||
"FolderTrainingSource": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"folder": {
|
||||
"description": "Carpeta dentro de TEA_REFERENCE_ROOT",
|
||||
"pattern": "^[A-Za-z0-9._-]{1,64}$",
|
||||
"title": "Carpeta",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"const": "folder",
|
||||
"title": "Kind",
|
||||
"type": "string"
|
||||
},
|
||||
"line_hz": {
|
||||
"default": 50,
|
||||
"enum": [
|
||||
50,
|
||||
60
|
||||
],
|
||||
"title": "Frecuencia de la red el\u00e9ctrica (Hz)",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"kind",
|
||||
"folder"
|
||||
],
|
||||
"title": "FolderTrainingSource",
|
||||
"type": "object"
|
||||
},
|
||||
"Group": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
@@ -2840,6 +2871,21 @@
|
||||
"title": "Site",
|
||||
"type": "object"
|
||||
},
|
||||
"SiteTrainingSource": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"kind": {
|
||||
"const": "site",
|
||||
"title": "Kind",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"kind"
|
||||
],
|
||||
"title": "SiteTrainingSource",
|
||||
"type": "object"
|
||||
},
|
||||
"Source": {
|
||||
"additionalProperties": false,
|
||||
"description": "One table, file set or API resource, copied as it is (dlt). Merged on the source's\nown primary key or `primary_key`; replaced whole when it has none.",
|
||||
@@ -3448,43 +3494,21 @@
|
||||
"type": "object"
|
||||
},
|
||||
"TrainingSource": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"folder": {
|
||||
"anyOf": [
|
||||
{
|
||||
"pattern": "^[A-Za-z0-9._-]{1,64}$",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Carpeta dentro de TEA_REFERENCE_ROOT",
|
||||
"title": "Carpeta"
|
||||
"discriminator": {
|
||||
"mapping": {
|
||||
"folder": "#/components/schemas/FolderTrainingSource",
|
||||
"site": "#/components/schemas/SiteTrainingSource"
|
||||
},
|
||||
"kind": {
|
||||
"default": "site",
|
||||
"description": "site: los ni\u00f1os del sitio sin el diagn\u00f3stico a la fecha de corte; folder: una carpeta de EDF con edades.csv (path, age en meses)",
|
||||
"enum": [
|
||||
"site",
|
||||
"folder"
|
||||
],
|
||||
"title": "Origen",
|
||||
"type": "string"
|
||||
},
|
||||
"line_hz": {
|
||||
"default": 50,
|
||||
"enum": [
|
||||
50,
|
||||
60
|
||||
],
|
||||
"title": "Frecuencia de la red el\u00e9ctrica (Hz)",
|
||||
"type": "integer"
|
||||
}
|
||||
"propertyName": "kind"
|
||||
},
|
||||
"title": "Datos de entrenamiento",
|
||||
"type": "object"
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/SiteTrainingSource"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/FolderTrainingSource"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Uploaded": {
|
||||
"properties": {
|
||||
@@ -5304,7 +5328,12 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"additionalProperties": true,
|
||||
"additionalProperties": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"title": "Response Training Inputs",
|
||||
"type": "object"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user