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

Feature/fix submit to core #439

Merged

Conversation

jfkonecn
Copy link

@jfkonecn jfkonecn commented Sep 17, 2024

@zhx828 it looks like nothing is submitted when an accept all is done. Is that behavior we want?

zhx828 and others added 12 commits August 22, 2024 08:56
The completedDate in the DB could be ISO 8601 string, or json object. I think this has to do with the recent spring boot upgrade, but I can't find the specific version of the change. I will handle both scenarios for now
Handle when Instant json element is a json object
The getSession is an async method which updates the loading status.
Avoid fetching management info repeatedly
@@ -125,7 +121,7 @@ const ReviewPage: React.FunctionComponent<IReviewPageProps> = (props: IReviewPag
isGermline,
isAcceptAll: true,
gene: geneData,
entrezGeneId: props.geneEntity.entrezGeneId,
entrezGeneId: geneEntity?.entrezGeneId as number,
Copy link
Author

Choose a reason for hiding this comment

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

No longer using the prop entity since it's already fetched within this component.

Comment on lines 12 to 13
const protectCurrent = shouldProtect(valuePath, currentPath);
const protectParent = shouldProtect(valuePath, parentPath);
Copy link
Author

@jfkonecn jfkonecn Sep 17, 2024

Choose a reason for hiding this comment

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

Need to protect the whole object if the parent is in the valuePath since we don't want to drop the whole object if another value was added.

Copy link
Member

@zhx828 zhx828 left a comment

Choose a reason for hiding this comment

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

Looking good!


/**
* Recursively filters the provided object to include only the last reviewed elements
* or elements that where just accepted.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* or elements that where just accepted.
* or elements that were just accepted.

@jfkonecn jfkonecn merged commit dafac59 into oncokb:feature/submit-to-core Oct 3, 2024
2 checks passed
@jfkonecn jfkonecn deleted the feature/fix-submit-to-core branch October 3, 2024 11:28
jfkonecn added a commit that referenced this pull request Oct 24, 2024
* Added core submission logic

* Added Save Gene Logic (#385)

* Added name changes to review logic (#393)

* Added name change to core submission logic

* Added missing unit tests

* Addessed PR comments

* Removed unneeded uuid

* added comments to collectUUIDs function

* Added gene type submission (#396)

* Can now delete evidences (#398)

* fixed logging in

* fixed build errors

* updated drugs mapping

* updated drugs mapping

* Add releaseGene param when saving gene data to core

* Update to allow save all genes

* Fix excludedRCTs

* Add method to undo gene release

* Use reviewed content only (#430)

* Use reviewed content only

* Ignore if in review added state

* Save Genes now checks if added

* Delete parent node if added field is true

* Fixed build

* don't save undefined

* Addressed PR comments

* Addressed PR comments

* Feature/fix submit to core (#439)

* Handle when Instant json element is a json object

The completedDate in the DB could be ISO 8601 string, or json object. I think this has to do with the recent spring boot upgrade, but I can't find the specific version of the change. I will handle both scenarios for now

* Textarea in review mode should fit text content (#427)

* Update pom version

* Fix reject cancer type name review (#428)

* Add reference to oncokb sop alteration nomenclature in add mutation modal helper (#432)

* Update pom version

* Avoid fetching management info repeatedly

* Do not rerender the side bar when loading session

The getSession is an async method which updates the loading status.

* Fix drug code not selectable (#435)

* Bump actions to latest version (#438)

* resize text area when input changes (#440)

* add sorting by firebase index (#443)

* Delete mutation/tumor/treatment as last step to avoid stale index (#444)

* Review no longer removes data for core submission

* Added comments to useLastReviewOnly

* Add children review paths

* Fixed approve all

* Fixed UI tests

* Fixed UI tests

* break in middle of word to fix collapsible title overlfow (#442)

* Change searchEntities to readHandler instead of updateHandler (#445)

* Fixed submit all

* Fixed submission bug

* Fixed data validation tool (#447)

* Allow curating mutation summary (#433)

* Fixed submit all

* Fixed tests

* Fixed gene type submissions

* Removed last review check inside getevidences and gene type

* Added mutation summary

---------

Co-authored-by: Hongxin <5400599+zhx828@users.noreply.github.com>
Co-authored-by: Hongxin <jackson.zhang.828@gmail.com>
Co-authored-by: Calvin Lu <59149377+calvinlu3@users.noreply.github.com>
Co-authored-by: oncokb-bot <dev.oncokb@gmail.com>
Co-authored-by: bprize15 <148106517+bprize15@users.noreply.github.com>

* Added Vus submissions to core (#456)

* Make core API call non-blocking (#454)

* Handle when Instant json element is a json object

The completedDate in the DB could be ISO 8601 string, or json object. I think this has to do with the recent spring boot upgrade, but I can't find the specific version of the change. I will handle both scenarios for now

* Textarea in review mode should fit text content (#427)

* Update pom version

* Fix reject cancer type name review (#428)

* Add reference to oncokb sop alteration nomenclature in add mutation modal helper (#432)

* Update pom version

* Avoid fetching management info repeatedly

* Do not rerender the side bar when loading session

The getSession is an async method which updates the loading status.

* Fix drug code not selectable (#435)

* Bump actions to latest version (#438)

* resize text area when input changes (#440)

* add sorting by firebase index (#443)

* Delete mutation/tumor/treatment as last step to avoid stale index (#444)

* break in middle of word to fix collapsible title overlfow (#442)

* Change searchEntities to readHandler instead of updateHandler (#445)

* Fixed data validation tool (#447)

* Allow curating mutation summary (#433)

* Parse protein change case insensitive (#441)

* Fix adding CDx biomarker association (#450)

* use firebase properties directly in backend (#451)

* fix references tab (#452)

* Added Heap (#448)

* Added Heap

* Updated CSP

* Reduce width so sidebar does not go offscren (#446)

* allow comma in mutation name when transcripts present (#453)

* allow comma in mutation name when transcripts present

* add missing colon

* rename transcripts to reference genomes

* Make core API call non-blocking

* Add tests for stale indices check (#455)

* Added loading icon when review is accepted

* Update setup-java action

* Update pom version

* Put feature flag in app config

* Now showing loading icon on accept all

---------

Co-authored-by: Hongxin <5400599+zhx828@users.noreply.github.com>
Co-authored-by: Hongxin <jackson.zhang.828@gmail.com>
Co-authored-by: Calvin Lu <59149377+calvinlu3@users.noreply.github.com>
Co-authored-by: oncokb-bot <dev.oncokb@gmail.com>
Co-authored-by: bprize15 <148106517+bprize15@users.noreply.github.com>

---------

Co-authored-by: Hongxin <jackson.zhang.828@gmail.com>
Co-authored-by: Hongxin <5400599+zhx828@users.noreply.github.com>
Co-authored-by: Calvin Lu <59149377+calvinlu3@users.noreply.github.com>
Co-authored-by: oncokb-bot <dev.oncokb@gmail.com>
Co-authored-by: bprize15 <148106517+bprize15@users.noreply.github.com>
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.

4 participants