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

Gonza #53

Merged
merged 4 commits into from
Sep 26, 2024
Merged

Gonza #53

merged 4 commits into from
Sep 26, 2024

Conversation

GonzzaG
Copy link
Collaborator

@GonzzaG GonzzaG commented Sep 18, 2024

  • fixed bug in serializer of InferenceExperiments
  • fixed bug in the models of StatisticalValidation sources

- fixed bug in the models of StatisticalValidation sources
@GonzzaG GonzzaG changed the base branch from main to v5.0.0 September 18, 2024 20:25
@@ -148,13 +148,13 @@ class StatisticalValidation(models.Model):
related_name='statistical_validations', null=True, blank=True)

# Sources
mrna_source_result = models.OneToOneField('StatisticalValidationSourceResult', on_delete=models.CASCADE, null=True,
mrna_source_result = models.OneToOneField('api_service.ExperimentClinicalSource', on_delete=models.CASCADE, null=True,
Copy link
Member

Choose a reason for hiding this comment

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

Ojo, volvé todos estos campos a como estaban. Acá estás cambiando la tabla a la que apuntan. El problema que teníamos solo debía resolverse en el serializer ya que era solo un problema de cómo se representaban los datos para mandarlo al frontend, no es un problema sobre cómo se almacenan.
Otra cosa, cuando se editan los models.py hay que correr el comando python3 manage.py makemigrations y python3 manage.py migrate para que se creen las migraciones que aplican los cambios en la DB física (postgres) y el otro para que se apliquen dichas migraciones. Acá estás modificando el modelo, pero no aplicás los cambios en la DB porque lo que va a terminar fallando después.

@GonzzaG GonzzaG closed this Sep 20, 2024
@GonzzaG GonzzaG reopened this Sep 20, 2024
…ethod to retrieve experiments shared with user or their institution
@Genarito Genarito merged commit 9176766 into v5.0.0 Sep 26, 2024
1 check passed
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.

2 participants