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

PORTALS-3361, PORTALS-3364 - Elite Portal scrub #1462

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

nickgros
Copy link
Collaborator

No description provided.

Comment on lines +9 to +10
export const studiesSql =
'SELECT * FROM syn51523775 ORDER BY isFeatured DESC, dataStatus ASC, studyName ASC'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Update default sort for Studies. Currently, all studies have isFeatured=false. With this sort, studies with dataStatus=Available will be at the top, sorted in alphabetical order.

@@ -150,10 +151,11 @@ export const studyDetailsPageRoutes: RouteObject[] = [
shouldDeepLink={false}
defaultShowPlots={false}
lockedColumn={{
columnName: 'study',
columnName: DATA_TABLE_COLUMN_NAMES.STUDY,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

'study' column name in the data table was renamed to 'Study'

value: value!,
}}
searchParams={{ study: value! }}
searchParams={{ [DATA_TABLE_COLUMN_NAMES.STUDY]: value! }}
fileIdColumnName={DATA_TABLE_COLUMN_NAMES.ID}
Copy link
Collaborator Author

@nickgros nickgros Dec 16, 2024

Choose a reason for hiding this comment

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

Ask was to show the access requirement status column. This is a Virtual Table, so we have to define the fileIdColumnName prop to show it.

@@ -221,7 +221,7 @@ function FacetFilterControls(props: FacetFilterControlsProps) {

return (
<div className={`FacetFilterControls`}>
{combineRangeFacetConfig && (
{combineRangeFacetConfig && combinedRangeFacets.length >= 2 && (
Copy link
Collaborator Author

@nickgros nickgros Dec 16, 2024

Choose a reason for hiding this comment

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

Fix bug where combinedRangeFacets was defined but did not have enough elements, resulting in attempting to access properties on an undefined object

@kianamcc kianamcc self-requested a review December 16, 2024 21:08
@nickgros nickgros merged commit fc8b29d into Sage-Bionetworks:main Dec 16, 2024
24 checks 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