Skip to content

update analysis state#423

Merged
acumarav merged 5 commits intodevelopfrom
analysis-results-status-evaluation
Jul 31, 2020
Merged

update analysis state#423
acumarav merged 5 commits intodevelopfrom
analysis-results-status-evaluation

Conversation

@acumarav
Copy link
Copy Markdown
Contributor

update analysis status based on the error report presence

@acumarav acumarav requested review from YaroslavTir and wivern July 29, 2020 14:01
LOGGER.warn(Constants.AnalysisMessages.CANT_REMOVE_ANALYSIS_DIR_LOG);
}
final AnalysisResultStatusDTO updatedAnalysisStatus = reEvaluateAnalysisStatus(analysis.getStatus(), resultDir);
exists.setAnalysisFolder(analysis.getAnalysisFolder());
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

If I am not wrong File analysisFolder = new File(exists.getAnalysisFolder()) and resultDir is prity much the same dir. So basicly dirictory should not exisist before you run reEvaluateAnalysisStatus.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You are wrong, these are two different folders

}

private Analysis update(Analysis analysis) throws NotExistException {
private AnalysisResultStatusDTO reEvaluateAnalysisStatus(AnalysisResultStatusDTO originalStatus, File resultDir){
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

can you extract evaluate status logic in a separate class?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

  • add unit tests

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@acumarav acumarav requested a review from YaroslavTir July 31, 2020 09:58
@acumarav acumarav merged commit 13a6b35 into develop Jul 31, 2020
@acumarav acumarav deleted the analysis-results-status-evaluation branch July 31, 2020 10:12
acumarav added a commit that referenced this pull request Sep 1, 2020

* ARACHNE-2729 Add IAP auth support into Standalone Node (#392)

* set standard authentication mode by default(ARACHNE-2729) (#394)

Co-authored-by: Alex Cumarav <tsuria@users.noreply.github.com>
Co-authored-by: Alex Cumarav <7705583+acumarav@users.noreply.github.com>
Co-authored-by: Konstantin Iaroshovets <konstjar@users.noreply.github.com>
Co-authored-by: molodkov yaroslav <yaroslav.molodkov@odysseusinc.com>
Co-authored-by: Anton Gackovka <anton.gackovka@odysseusinc.com>
Co-authored-by: anastasiia klochkova <38942654+aklochkova@users.noreply.github.com>
Co-authored-by: OdysseusBot <34305057+OdysseusBot@users.noreply.github.com>
Co-authored-by: mpozhidaeva <31308645+mpozhidaeva@users.noreply.github.com>
Co-authored-by: Pavel Grafkin <pavgra@gmail.com>

* restore DataNodeModeDTO (#398)

* upgrade sqlRender version (#403)

* upgrade sqlRender version

* upgrade sqlRender version to 1.6.5

* Update pom.xml

upgrade SqlRender to version 1.6.6-snapshot

* Update pom.xml

set 1.6.5 version of SqlRender

* fix proxy properties (#405)

* clean up (#399)

Co-authored-by: alexandr cumarav <https://localhost:8080/study-manager/studies/6>

* remove duplications

* Datanode password reset (#409)

* Datanode password reset

* PR comment - add @Valid check

Co-authored-by: alexandr cumarav <https://localhost:8080/study-manager/studies/6>

* fix config value

* upload submission: exceeds the configured maximum [ARACHNE-2818]

* ARACHNE-2850 Atlas auth exception was moved to another class (#415)

* Atlas auth exception was moved to another class - now is not catched by auth filter
Co-authored-by: Sergey Suvorov <sergey.suvorov@odysseusinc.com>

* add check atlas check connection for google authentication ARACHNE-2858

* Error message floods into serverlog making it less readable (#416)

* Error message floods into serverlog making it less readable.(ARACHNE-2772)

* ARACHNE-2853 Make user-friendly error for bad credentials on data node

* code review fixes: add handler for org.springframework.security.core.AuthenticationException

* ARACHNE-2858 do not wrap atlas auth exception.

* update version to 1.16.2-snapshot

* update analysis state (#423)

* update analysis state
* update analysis results logic extraction
* update analysis results logic extraction - tests
* code clean up
Co-authored-by: alexandr cumarav <https://localhost:8080/study-manager/studies/6>
Co-authored-by: yaroslavtir <yaroslav.molodkov@odysseusinc.com>

* ARACHNE-2772 token invalid Error message floods into log (#424)

* ARACHNE-2772 token invalid Error message floods into log
Co-authored-by: Alex Cumarav <7705583+acumarav@users.noreply.github.com>

* Bump mysql-connector-java from 5.1.30 to 8.0.16 (#414)

Bumps [mysql-connector-java](https://github.com/mysql/mysql-connector-j) from 5.1.30 to 8.0.16.
- [Release notes](https://github.com/mysql/mysql-connector-j/releases)
- [Changelog](https://github.com/mysql/mysql-connector-j/blob/release/8.0/CHANGES)
- [Commits](mysql/mysql-connector-j@5.1.30...8.0.16)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* update dependencies and Cohort Characterization skeleton (#425)

Co-authored-by: alexandr cumarav <https://localhost:8080/study-manager/studies/6>

* Hide datanode datasource id (#426)

* hide datanode datasource id from Central

Co-authored-by: alexandr cumarav <https://localhost:8080/study-manager/studies/6>

Co-authored-by: Alexandr Ryabokon <mr.alexandr.ryabokon@gmail.com>
Co-authored-by: Pavel Grafkin <pavgra@gmail.com>
Co-authored-by: Vitaly Koulakov <vitaly.koulakov@gmail.com>
Co-authored-by: Anton Gackovka <anton.gackovka@odysseusinc.com>
Co-authored-by: Anastasiia Klochkova <anastasiia.klochkova@odysseusinc.com>
Co-authored-by: OdysseusBot <34305057+OdysseusBot@users.noreply.github.com>
Co-authored-by: Maria Pozhidaeva <maria.pozhidaeva@odysseusinc.com>
Co-authored-by: mpozhidaeva <31308645+mpozhidaeva@users.noreply.github.com>
Co-authored-by: anastasiia klochkova <38942654+aklochkova@users.noreply.github.com>
Co-authored-by: molodkov yaroslav <yaroslav.molodkov@odysseusinc.com>
Co-authored-by: Alex Cumarav <tsuria@users.noreply.github.com>
Co-authored-by: Konstantin Iaroshovets <konstjar@users.noreply.github.com>
Co-authored-by: alexandr cumarav <https://localhost:8080/study-manager/studies/6>
Co-authored-by: Sergey Suvorov <sergey.suvorov@firstlinesoftware.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
acumarav added a commit that referenced this pull request Sep 1, 2020
* Qa 1.16.0 fix (#395)

* ARACHNE-2729 Add IAP auth support into Standalone Node (#392)

* set standard authentication mode by default(ARACHNE-2729) (#394)

Co-authored-by: Alex Cumarav <tsuria@users.noreply.github.com>
Co-authored-by: Alex Cumarav <7705583+acumarav@users.noreply.github.com>
Co-authored-by: Konstantin Iaroshovets <konstjar@users.noreply.github.com>
Co-authored-by: molodkov yaroslav <yaroslav.molodkov@odysseusinc.com>
Co-authored-by: Anton Gackovka <anton.gackovka@odysseusinc.com>
Co-authored-by: anastasiia klochkova <38942654+aklochkova@users.noreply.github.com>
Co-authored-by: OdysseusBot <34305057+OdysseusBot@users.noreply.github.com>
Co-authored-by: mpozhidaeva <31308645+mpozhidaeva@users.noreply.github.com>
Co-authored-by: Pavel Grafkin <pavgra@gmail.com>

* restore DataNodeModeDTO (#398)

* upgrade sqlRender version (#403)

* upgrade sqlRender version

* upgrade sqlRender version to 1.6.5

* Update pom.xml

upgrade SqlRender to version 1.6.6-snapshot

* Update pom.xml

set 1.6.5 version of SqlRender

* fix proxy properties (#405)

* clean up (#399)

Co-authored-by: alexandr cumarav <https://localhost:8080/study-manager/studies/6>

* remove duplications

* Datanode password reset (#409)

* Datanode password reset

* PR comment - add @Valid check

Co-authored-by: alexandr cumarav <https://localhost:8080/study-manager/studies/6>

* fix config value

* upload submission: exceeds the configured maximum [ARACHNE-2818]

* ARACHNE-2850 Atlas auth exception was moved to another class (#415)

* Atlas auth exception was moved to another class - now is not catched by auth filter
Co-authored-by: Sergey Suvorov <sergey.suvorov@odysseusinc.com>

* add check atlas check connection for google authentication ARACHNE-2858

* Error message floods into serverlog making it less readable (#416)

* Error message floods into serverlog making it less readable.(ARACHNE-2772)

* ARACHNE-2853 Make user-friendly error for bad credentials on data node

* code review fixes: add handler for org.springframework.security.core.AuthenticationException

* ARACHNE-2858 do not wrap atlas auth exception.

* update version to 1.16.2-snapshot

* update analysis state (#423)

* update analysis state
* update analysis results logic extraction
* update analysis results logic extraction - tests
* code clean up
Co-authored-by: alexandr cumarav <https://localhost:8080/study-manager/studies/6>
Co-authored-by: yaroslavtir <yaroslav.molodkov@odysseusinc.com>

* ARACHNE-2772 token invalid Error message floods into log (#424)

* ARACHNE-2772 token invalid Error message floods into log
Co-authored-by: Alex Cumarav <7705583+acumarav@users.noreply.github.com>

* Bump mysql-connector-java from 5.1.30 to 8.0.16 (#414)

Bumps [mysql-connector-java](https://github.com/mysql/mysql-connector-j) from 5.1.30 to 8.0.16.
- [Release notes](https://github.com/mysql/mysql-connector-j/releases)
- [Changelog](https://github.com/mysql/mysql-connector-j/blob/release/8.0/CHANGES)
- [Commits](mysql/mysql-connector-j@5.1.30...8.0.16)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* update dependencies and Cohort Characterization skeleton (#425)

Co-authored-by: alexandr cumarav <https://localhost:8080/study-manager/studies/6>

* Hide datanode datasource id (#426)

* hide datanode datasource id from Central

Co-authored-by: alexandr cumarav <https://localhost:8080/study-manager/studies/6>

* release candidate 1.16.2

Co-authored-by: Alexandr Ryabokon <mr.alexandr.ryabokon@gmail.com>
Co-authored-by: Pavel Grafkin <pavgra@gmail.com>
Co-authored-by: Vitaly Koulakov <vitaly.koulakov@gmail.com>
Co-authored-by: Anton Gackovka <anton.gackovka@odysseusinc.com>
Co-authored-by: Anastasiia Klochkova <anastasiia.klochkova@odysseusinc.com>
Co-authored-by: OdysseusBot <34305057+OdysseusBot@users.noreply.github.com>
Co-authored-by: Maria Pozhidaeva <maria.pozhidaeva@odysseusinc.com>
Co-authored-by: mpozhidaeva <31308645+mpozhidaeva@users.noreply.github.com>
Co-authored-by: anastasiia klochkova <38942654+aklochkova@users.noreply.github.com>
Co-authored-by: molodkov yaroslav <yaroslav.molodkov@odysseusinc.com>
Co-authored-by: Alex Cumarav <tsuria@users.noreply.github.com>
Co-authored-by: Konstantin Iaroshovets <konstjar@users.noreply.github.com>
Co-authored-by: alexandr cumarav <https://localhost:8080/study-manager/studies/6>
Co-authored-by: Sergey Suvorov <sergey.suvorov@firstlinesoftware.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@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.

2 participants