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

Enhance/add error page if overview or comparison missing #923

Conversation

cyfml
Copy link
Contributor

@cyfml cyfml commented Feb 10, 2023

This PR handels an error : report-viewer is broken when overview or some comparisons are missing. I create an ErrorView page, which contains ErrorMessage and ErrorRouter components.

  • Overview missing: error page has a button, which can navigate to FileUploadView.

  • Some certain comparisons missing: overview page works continually and can access other comparisons which are not missing. If access missing comparisons, it will navigate to OverviewView.

Note: In comparison missing cases, If you decompress the zip file and delete some comparisons. Then re-compress them. It leads a problem: when you click a match in MatchTable, it will not scroll to corresponding position automatically and matched codes have no color. The reason is when you decompress and recompress files, the variable originalFileName in FileUploadView changes for files under 'files' directory. e.g. From "files\A\GSTiling.java" to "files/A/GSTiling.java". So the name of file in MatchTable is not same as file header in codelPanel. If you delete comparisons directly in zip file, there is no problem. This problem only occurs on windows, beacuse It seems zip app uses default path separator '/'. So this zip file are not allowed be decompressed and recompressed on windows. If you want to delete something, please delete it directly in zip file and don't decompress and recompress.

cyfml added 30 commits December 16, 2022 22:32
@tsaglam tsaglam added enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change report-viewer PR / Issue deals (partly) with the report viewer and thus involves web-dev technologies labels Feb 10, 2023
@sebinside
Copy link
Member

@cyfml Please update this PR on the current state, then I will have look at the changes and review it

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

80.0% 80.0% Coverage
0.0% 0.0% Duplication

@sebinside sebinside merged commit f84e42b into jplag:develop Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue/PR that involves features, improvements and other changes minor Minor issue/feature/contribution/change report-viewer PR / Issue deals (partly) with the report viewer and thus involves web-dev technologies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants