Skip to content

Feat/mirna target validation - #109

Merged
Genarito merged 22 commits into
devfrom
feat/mirna-target-validation
Oct 8, 2026
Merged

Genarito merged 22 commits into
devfrom
feat/mirna-target-validation

Conversation

@juanNH

@juanNH juanNH commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Cambios

  • Agrega la pestaña “Validación miRTarBase” al modal de detalles de pares miRNA-gen.
  • Consulta el endpoint existente usando el miRNA y el gen seleccionados.
  • Muestra el ID de miRTarBase, tipo de soporte, experimentos, ID Entrez y enlace a PubMed.
  • Añade textos en español e inglés.

Verificación

  • npm.cmd run check-all (TypeScript y ESLint)
  • 10 tests de api_service.tests.test_mirna_target_validation
  • git diff --check

response = get_mirna_target_validation_action(self.request({}))
self.assertEqual(response.status_code, 400)

def test_only_accepts_get(self):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agregar docstrings explicando qué es lo que chequea cada test

Comment thread src/api_service/serializers.py Outdated
from django.contrib.auth import get_user_model


class MirnaTargetValidationQuerySerializer(serializers.Serializer):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Todo este serialzier debe ser read_only
  2. Por ende, también eliminar todo lo que es validate
  3. todo lo referente a paginación, filtros y ordenamiento debe ser implementado en la vista, como se hace con MiRNATargetInteractions

Comment thread src/api_service/views.py


@login_required
@require_http_methods(['GET'])

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hacer igual que la vista de arriba. No debería ser más complejo

@Genarito
Genarito merged commit da71680 into dev Oct 8, 2026
1 check passed
@Genarito
Genarito deleted the feat/mirna-target-validation branch October 8, 2026 12:28
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