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

Show/Hide bug fix #144

Merged
merged 1 commit into from
Feb 1, 2017
Merged

Show/Hide bug fix #144

merged 1 commit into from
Feb 1, 2017

Conversation

onursumer
Copy link
Member

What? Why?

Fixes and improves the show/hide feature behavior.

Checks

  • Follows 7 rules of great commit messages. For most PRs a single commit should suffice, in some cases multiple topical commits can be useful. During review it is ok to see tiny commits (e.g. Fix reviewer comments), but right before the code gets merged to master or rc branch, any such commits should be squashed since they are useless to the other developers. Definitely avoid merge commits, use rebase instead.
  • Follows the Airbnb React/JSX Style guide.
  • Make sure your commit messages end with a Signed-off-by string (this line
    can be automatically added by git if you run the git-commit command with
    the -s option)

@codecov-io
Copy link

codecov-io commented Jan 31, 2017

Codecov Report

❗ No coverage uploaded for pull request base (integration@3eabf55).


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3eabf55...561529d. Read the comment docs.

@onursumer
Copy link
Member Author

(3) fix show/hide

@onursumer
Copy link
Member Author

@alisman @adamabeshouse The fix is actually one line to make the show/hide work again: https://github.com/cBioPortal/cbioportal-frontend/pull/144/files#diff-dd74d85f67f0228723795bf4b6f21e1dR497

But I also made some improvements. Basically, now the generateRows method is called only when the column definitions are updated (since we are passing additional data via columnProps within the column definition). Change in columnVisibility now only affects generateHeaders, not generateRows anymore. Updating the Thead is sufficient to show/hide columns, since reactable is smart enough to ignore Td components with an unknown column value.

Copy link
Contributor

@adamabeshouse adamabeshouse left a comment

Choose a reason for hiding this comment

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

Looks good but I just have that one naming comment

this.state = {
columnVisibility: EnhancedReactTable.resolveVisibility(props.columns, props.rawData),
columnSort: this.resolveSortable(this.props.columns || {}),
Copy link
Contributor

Choose a reason for hiding this comment

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

this name doesn't make sense to me/is sort of vague. It's not quite a verb, not quite a noun. I think it should be sortableColumns or something. same with columnFilter

Copy link
Member Author

Choose a reason for hiding this comment

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

okay, let's change to sortableColumns and filterableColumns.

@jjgao jjgao temporarily deployed to cbioportal-frontend-pr-144 January 31, 2017 20:26 Inactive
@alisman alisman merged commit c387a90 into cBioPortal:integration Feb 1, 2017
@onursumer onursumer deleted the show-hide branch February 3, 2017 16:57
onursumer pushed a commit to onursumer/cbioportal-frontend that referenced this pull request May 19, 2022
…yarn/ssri-6.0.2

Bump ssri from 6.0.1 to 6.0.2
onursumer pushed a commit to onursumer/cbioportal-frontend that referenced this pull request May 20, 2022
…yarn/ssri-6.0.2

Bump ssri from 6.0.1 to 6.0.2
onursumer pushed a commit to onursumer/cbioportal-frontend that referenced this pull request May 23, 2022
…yarn/ssri-6.0.2

Bump ssri from 6.0.1 to 6.0.2
onursumer pushed a commit to onursumer/cbioportal-frontend that referenced this pull request May 24, 2022
…yarn/ssri-6.0.2

Bump ssri from 6.0.1 to 6.0.2
onursumer pushed a commit to onursumer/cbioportal-frontend that referenced this pull request May 25, 2022
…yarn/ssri-6.0.2

Bump ssri from 6.0.1 to 6.0.2
onursumer pushed a commit to onursumer/cbioportal-frontend that referenced this pull request May 26, 2022
…yarn/ssri-6.0.2

Bump ssri from 6.0.1 to 6.0.2
onursumer pushed a commit to onursumer/cbioportal-frontend that referenced this pull request May 27, 2022
…yarn/ssri-6.0.2

Bump ssri from 6.0.1 to 6.0.2
onursumer pushed a commit to onursumer/cbioportal-frontend that referenced this pull request May 27, 2022
…yarn/ssri-6.0.2

Bump ssri from 6.0.1 to 6.0.2
alisman pushed a commit to alisman/cbioportal-frontend that referenced this pull request Jun 2, 2022
…yarn/ssri-6.0.2

Bump ssri from 6.0.1 to 6.0.2
onursumer pushed a commit to onursumer/cbioportal-frontend that referenced this pull request Jun 6, 2022
…yarn/ssri-6.0.2

Bump ssri from 6.0.1 to 6.0.2
onursumer pushed a commit to onursumer/cbioportal-frontend that referenced this pull request Jun 6, 2022
…yarn/ssri-6.0.2

Bump ssri from 6.0.1 to 6.0.2
alisman pushed a commit to onursumer/cbioportal-frontend that referenced this pull request Jun 8, 2022
…yarn/ssri-6.0.2

Bump ssri from 6.0.1 to 6.0.2
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.

5 participants