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

Resolve KM plot censored event bug and add caching #11027

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

kalletlak
Copy link
Member

@kalletlak kalletlak commented Sep 27, 2024

Fix issues as part of #10375

Copy link
Member

@dippindots dippindots left a comment

Choose a reason for hiding this comment

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

It looks good to me, I see some refactoring in this pr.
I only have one question regarding to the cache category.
Also could you link the related issue to this pr?

@@ -200,22 +201,19 @@ private List<ClinicalEvent> filterClinicalEvents(List<ClinicalEvent> patientEven

// only fetch end timeline events for patients that have endClinicalEventsMeta and start timeline events
List<ClinicalEvent> queriedPatientEvents = new ArrayList<>();
if (CollectionUtils.isNotEmpty(clinicalEventsMeta) && CollectionUtils.isNotEmpty(filteredStudyIds)) {
Copy link
Member

Choose a reason for hiding this comment

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

Is this line causing the issue?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes

}

@Cacheable(
cacheResolver = "staticRepositoryCacheOneResolver",
Copy link
Member

Choose a reason for hiding this comment

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

Wondering why we need to use staticRepositoryCacheOneResolver at here, I think for the case with lots of permutations like this (study_ids with sample_ids) we should use generalRepositoryCacheResolver

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure. will update

@kalletlak
Copy link
Member Author

It looks good to me, I see some refactoring in this pr. I only have one question regarding to the cache category. Also could you link the related issue to this pr?

No open issues yet.

Copy link
Member

@dippindots dippindots left a comment

Choose a reason for hiding this comment

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

LGTM

@kalletlak kalletlak merged commit 8206a7c into cBioPortal:master Sep 30, 2024
10 of 13 checks passed
@dippindots dippindots added the bug label Oct 3, 2024
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.

2 participants