-
Notifications
You must be signed in to change notification settings - Fork 328
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
Report Viewer Bugfixes and Enhancements #710
Comments
I just added a few enhancements and bugs from this year's prog grading. For more details ask me. |
… structure and json file of comparison(i.e. A-B.json) in zip file. Now match and file name are represented with their full path (include root directory). And the problem in jplag#658 is also solved. And when file name is too long, it only shows part of the full path(i.e. ..subfolder/subsubfolder/algorithm.java). Signed-off-by: cyfml <[email protected]>
@sebinside Ok. |
@sebinside the syntax highlighting for single-file submissions is currently broken. The reason is that we put the file in a folder with the same name in the "submissions" folder of the zip. E.g. imagine a submission is just one file There are two ways to fix this:
EDIT: It seems this behavior is fixed on the develop branch. |
@tsaglam After today's classes, i will try to fix it. |
I think you already did with your last PR, so should be fine |
@sebinside @tsaglam I found an issue with the highlighting. In the |
@sebinside "jplag_version" should be "report-viewer_version", i think. |
@cyfml You are right but I would prefer |
@sebinside I am not clear, what does stopping working after several clicks means. I tested just now, i didn't find this problem. Let me introduce two clicks.
|
That's also what I tested. But after several matches (e.g., quickly clicking on all possible matches in a row), it stopped working after some clicks. I'm not able to properly replicate this for now. |
@sebinside Maybe there are serval matches in the same two-files-pair. when you click the first match, it opens two files. When you click second match, this match has the same files as the first match. So it has no reaction, because these two files are already opened. |
@cyfml Ah, that might be the solution, I did not think of that. However, in this case, the view should scroll to this match as well (just like the view scrolls to the first match if the file is opened). So maybe this could be easily fixed by you. |
@sebinside I spent some time to find reason. The reason is that, submissionId has already transformed into normal path(e.g. root1_A=>root1/A). DOM can't find the corresponding element by id. This id is codelPanelId+submissionId+lineNumber. So it can't scroll automatically. |
@tsaglam last merged PR fixed this problem: Enable collapsing by clicking on the file header in the comparison view. Could you mark it as finished and quote the PR number? Thanks. |
@sebinside @cyfml sometimes I encounter this: This is a data set of 85 submissions, argument |
@tsaglam Because there is only one parameter in zip file. This parameter is totalComparisons(3655). But if you use zip file generated before, there is no this field in zip. Are you sure, there is a field(totalComparisons) in zip file? |
@tsaglam @sebinside Report-viewer don't know the totalComparisons. The solution might report-viewer don't show this info when using zip file generated by last version of Jplag. |
Ah, it could be an older jar, I am not sure but I can check.
I think this would be an elegant solution! |
This issue has been replaced by #1000 (also: what a cool number!). |
The new report viewer has been introduced with the release 4.0.0. Although this represents a giant step forward compared to the old string-concatenating HTML-file-generation, there is still some work to do for the next releases of JPlag. This issue shall gather all these TODOs. It replaces #357, #658, and #686.
Bugs
Enhancements
{"jplag_version":{"major":0,"minor":0,"patch":0}}
Cluster enhancements
Other enhancements
Open bugs
avg
andmax
metric freezes the UI if there are many submissions in the overviewBuild/CI/Dev tasks
4.0.0
)The text was updated successfully, but these errors were encountered: