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

Output vizualizer #2744

Open
wants to merge 54 commits into
base: main
Choose a base branch
from
Open

Output vizualizer #2744

wants to merge 54 commits into from

Commits on Oct 13, 2024

  1. Fix judgehost check if its enabled

    array_filter would only filter out the other judgehosts but still return an array of judgehost objects. By selecting the first (and only item) we can now get the `enabled` property and properly check.
    
    ```
    array(1) {
      [1]=>
      array(5) {
        ["id"]=>
        string(1) "2"
        ["hostname"]=>
        string(8) "judgehost"
        ["enabled"]=>
        bool(true)
        ["polltime"]=>
        string(20) "1728821560.017400000"
        ["hidden"]=>
        bool(false)
      }
    }
    ```
    vmcj authored Oct 13, 2024
    Configuration menu
    Copy the full SHA
    ebb0b43 View commit details
    Browse the repository at this point in the history
  2. Future work

    Michael Vasseur committed Oct 13, 2024
    Configuration menu
    Copy the full SHA
    a43209a View commit details
    Browse the repository at this point in the history
  3. Store new visualizer type

    Michael Vasseur committed Oct 13, 2024
    Configuration menu
    Copy the full SHA
    d3eec0c View commit details
    Browse the repository at this point in the history
  4. Make the doctrine links

    Michael Vasseur committed Oct 13, 2024
    Configuration menu
    Copy the full SHA
    cdc1692 View commit details
    Browse the repository at this point in the history
  5. This should be part of the ProblemZip

    Such a script will most likely never be a generic script.
    Michael Vasseur committed Oct 13, 2024
    Configuration menu
    Copy the full SHA
    88c0e88 View commit details
    Browse the repository at this point in the history
  6. Add simple output_validator

    This is untested yet as the syntax should be further discussed.
    Michael Vasseur committed Oct 13, 2024
    Configuration menu
    Copy the full SHA
    131abb5 View commit details
    Browse the repository at this point in the history
  7. Assume this will be put in the spec

    This assumes a similar invocation as for the output_validator, the other alternative is to add this to the domjudge-problem.ini file if this doesn't end up in the ICPC problem spec.
    Michael Vasseur committed Oct 13, 2024
    Configuration menu
    Copy the full SHA
    5e3406f View commit details
    Browse the repository at this point in the history
  8. Allow upload of the output_visualizer

    Michael Vasseur committed Oct 13, 2024
    Configuration menu
    Copy the full SHA
    3b40afa View commit details
    Browse the repository at this point in the history
  9. First try on import

    Michael Vasseur committed Oct 13, 2024
    Configuration menu
    Copy the full SHA
    d4f4401 View commit details
    Browse the repository at this point in the history
  10. Give icon for new executable type

    Michael Vasseur committed Oct 13, 2024
    Configuration menu
    Copy the full SHA
    101cc03 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2024

  1. Display the problem badge

    Michael Vasseur committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    69d99dc View commit details
    Browse the repository at this point in the history
  2. Display on the executable page itself

    Michael Vasseur committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    df61e4a View commit details
    Browse the repository at this point in the history
  3. Add button to generate the visualization

    Getting this directly via submission.problem.output_visualizer_executable (the property) seems to fail. It does show up in the twig dump but the translation fails when using it.
    Michael Vasseur committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    a956b58 View commit details
    Browse the repository at this point in the history
  4. Show executable in problem page

    Michael Vasseur committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    fbe7358 View commit details
    Browse the repository at this point in the history
  5. Leave this for the demo

    Michael Vasseur committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    2986727 View commit details
    Browse the repository at this point in the history
  6. Remember if we already requested visualization

    Michael Vasseur committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    d79783d View commit details
    Browse the repository at this point in the history
  7. Create the needed judgetasks

    Michael Vasseur committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    8de3e52 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. Fix PHPStan issues

    Michael Vasseur committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    f3b96e1 View commit details
    Browse the repository at this point in the history
  2. Fix syntax error

    Michael Vasseur committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    f6baa3a View commit details
    Browse the repository at this point in the history
  3. Just move the whole code away for now

    This is needed during testing of the job on the judgehost
    Michael Vasseur committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    76deaaf View commit details
    Browse the repository at this point in the history
  4. And more errors as the needed code was commented out

    Michael Vasseur committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    aa062d7 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. Revert later - Fixate hostname for api/doc debugging

    Michael Vasseur committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    2963350 View commit details
    Browse the repository at this point in the history
  2. Fix API for when you test on a deeper dir

    Michael Vasseur committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    f0dcaec View commit details
    Browse the repository at this point in the history
  3. New migrations

    Michael Vasseur committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    1636944 View commit details
    Browse the repository at this point in the history
  4. Test the search in an unrelated page

    Debugging via the API is hard, so we hardcode the search and just copy it over in a next commit.
    Michael Vasseur committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    1af147a View commit details
    Browse the repository at this point in the history
  5. Also get the new visualization JudgeTasks

    Michael Vasseur committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    d88d0c0 View commit details
    Browse the repository at this point in the history
  6. Return the visualizer jobs

    Michael Vasseur committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    e56a83f View commit details
    Browse the repository at this point in the history
  7. Store the judgetask

    Michael Vasseur committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    3a05304 View commit details
    Browse the repository at this point in the history
  8. Working on the judgehost side

    Michael Vasseur committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    87ca226 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2024

  1. Fix output to create the image

    Michael Vasseur committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    5d5d6c6 View commit details
    Browse the repository at this point in the history
  2. Finish

    This shows everything but still needs cleanup.
    Michael Vasseur committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    52fde24 View commit details
    Browse the repository at this point in the history
  3. Add forgotten class

    Michael Vasseur committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    ac0679c View commit details
    Browse the repository at this point in the history
  4. Fix the visualizer script

    Michael Vasseur committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    1edc428 View commit details
    Browse the repository at this point in the history
  5. Cleanup the judgehost file

    Michael Vasseur committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    9362b92 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. Check returncode as FIXME.

    Michael Vasseur committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    812042e View commit details
    Browse the repository at this point in the history
  2. Merge migrations

    Michael Vasseur committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    eca9e35 View commit details
    Browse the repository at this point in the history
  3. Cleanup unrelated testing

    Michael Vasseur committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    de746eb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    70ee0e4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7bcac2b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0a7daca View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7190795 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c424d21 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fa3e2ed View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7641e17 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5b9c970 View commit details
    Browse the repository at this point in the history
  12. Remove dump and debug statements

    Michael Vasseur committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    031d24a View commit details
    Browse the repository at this point in the history
  13. Cleanup unused code

    Michael Vasseur committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    51d3cc3 View commit details
    Browse the repository at this point in the history
  14. Fix missing $run

    Michael Vasseur committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    d34fce3 View commit details
    Browse the repository at this point in the history
  15. Prevent duplication of code

    Michael Vasseur committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    d616057 View commit details
    Browse the repository at this point in the history
  16. Not used

    Michael Vasseur committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    ed5e47c View commit details
    Browse the repository at this point in the history
  17. Fix W3C test

    Michael Vasseur committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    f9de23c View commit details
    Browse the repository at this point in the history
  18. Fixup

    Michael Vasseur committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    f7e7e23 View commit details
    Browse the repository at this point in the history
  19. Add last forgotten code

    Michael Vasseur committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    28c3904 View commit details
    Browse the repository at this point in the history
  20. Fixup

    Michael Vasseur committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    2b6afcd View commit details
    Browse the repository at this point in the history