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

Download information needed for troubleshooting and error reporting. #74

Open
local-minimum opened this issue Dec 8, 2016 · 4 comments

Comments

@local-minimum
Copy link
Member

It should be possible to gather all log-files and instructions relating to a project (also including rpc-server and ui-server logs) and get them as a compress file from the API to give to those maintaining and developing SoM when something is problematic has happened.

This requires both a minimal UI and API.

@local-minimum
Copy link
Member Author

The Phenotyper can now zip its state and similar functionality should be possible to include all logs and model\instructions files in a project.

@local-minimum
Copy link
Member Author

/api/tools/debug/data/<path:project> now will do exactly this.

    """Creates zip of relevant files for a project.

    Args:
        project: Path to the project

    Optional Json/POST/GET data:

        include_global_logs:

            0 = No
            1 = Include active server & ui_server logs
            Note that this will cause zip to be informative of
            general directory structure.

        include_state:
            0 = No
            1 = Include files from feature extraction
            Only valid if pointing at analysis folder

    Returns: Zip-file or json on fail
    """

Note that the path can be either an analysis folder or the parent project folder (in the latter case, the info about analysis will not be included).

@local-minimum
Copy link
Member Author

This will require some new minimal UI, I think. Also, the path above doesn't give you any searching so that must be done via common browsing uri.

@local-minimum
Copy link
Member Author

The entire thing should be accessible via GET like so:

/api/tools/debug/data/<path:project>?include_state=1&include_global_logs=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants