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

[RFC 65] Display custom namespace columns in cna table #4418

Merged
merged 4 commits into from
Dec 1, 2022

Conversation

BasLee
Copy link

@BasLee BasLee commented Nov 14, 2022

Display custom namespace columns in CNA table.

Uses the backend changes made in cBioPortal/cbioportal#9878

image
Show custom namespace columns, hidden by default

Changes

  • Display custom namespace columns in CNA table
  • Bundle shared namespace functionality of mutation and CNA table

Tests

  • Added local e2e test namespace-columns-in-cna-tables.spec.js

import _ from 'lodash';
import generalStyles from 'shared/components/mutationTable/column/styles.module.scss';

export type WithNamespaceColumns = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this name doesn't totaly make sense to me. like, what with namespace columns? what is the point of the wrapper object if it only has one node called namespaceColumns?

Copy link
Author

@BasLee BasLee Nov 21, 2022

Choose a reason for hiding this comment

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

It marks types with a namespaceColumns property.
Mutation, CNA and structural variant types all can have namespaceColumns.
Another option would be to list all those types (and any future namespaceColumn-types)?
I thought it would be more readable this way.

src/shared/constants.ts Outdated Show resolved Hide resolved
@@ -0,0 +1,2 @@
export CBIOPORTAL_URL="${CBIOPORTAL_URL:-http://localhost:8080}"
Copy link
Collaborator

@alisman alisman Nov 28, 2022

Choose a reason for hiding this comment

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

remote these two exports and just have:

export BACKEND="BasLee:custom-ns-columns-cna"

Copy link
Author

Choose a reason for hiding this comment

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

changed in 1c4e19c

@alisman alisman merged commit c9ab461 into cBioPortal:master Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants