Skip to content

Implementation of Tags in Add and Edit Biomarkers and add tags panel in Biomarkers#96

Merged
Genarito merged 9 commits into
devfrom
feature/BiomarkerTagsPanel
Jun 15, 2026
Merged

Implementation of Tags in Add and Edit Biomarkers and add tags panel in Biomarkers#96
Genarito merged 9 commits into
devfrom
feature/BiomarkerTagsPanel

Conversation

@GonzzaG

@GonzzaG GonzzaG commented May 25, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

newFile: NewFile,
tagOptions: DropdownItemProps[],
tags: DjangoTag[],
uploadingFile: boolean,

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.

Hay una banda de props acá que no se usan en todo el componente, eliminar para simplificar acá y en los demás componentes que están pasándose props en cadena hasta llegar hasta acá

* Removes a Survival data tuple for a CGDSDataset
* @param idxSurvivalTuple Index in survival tuple
*/
removeSurvivalFormTuple = (idxSurvivalTuple: number) => {

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.

Eliminar este y las demás funciones que no tienen que ver. Resolvería primero el comentario sobre eliminar las props innecesarias en el componente NewBiomarkerForm.tsx. Con eso vas a ver que empiezan a aparecer un montón de campos del estado como newFile que no sirven para nada

dataset.survival_columns[idxSurvivalTuple][name] = value
this.setState({ newBiomarker })
}
handleSurvivalFormDatasetChanges = (idxSurvivalTuple: number, name: string, value: any) => {

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.

Exactamente lo mismo que el comentario anterior, acá se manejan cosas como archivos para enviar al server, no se requieren acá. Están porque las necesitás para pasarlas como props, al resolver ese problema en el componente NewBiomarkerForm.tsx va a salir a la luz todo lo que sobra para poder eliminarlo

/**
* Fetches the Institutions of which the User is part of
*/
getUserInstitutions () {

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.

Eliminar todo lo referente a las instituciones, no se usa en ningún lado

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.

Ver los errores del IDE, está tirando un warning de que esta constante no se está usando:

Image

tags: DjangoTag[]
uploadingFile: boolean
handleAddFileInputsChange: (name: string, value: any) => void
newFile: NewFile

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.

Mismo problema, no se está usando en todo el componente. Hacer Ctrl + F con todas las nuevas props y ver si se están usando o no y limpiar

@Genarito Genarito merged commit 4ef654e into dev Jun 15, 2026
1 check failed
@Genarito Genarito deleted the feature/BiomarkerTagsPanel branch June 15, 2026 14:35
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