src/orion/serving/trials_resource.py
def on_get_trials_in_experiment(
        self, req: Request, resp: Response, experiment_name: str
    ):
        """
        Handle GET requests for trials/:experiment where ``experiment`` is
        the user-defined name of the experiment.
        """
        verify_query_parameters(req.params, SUPPORTED_PARAMETERS)

        status = req.get_param("status", default=None)
        verify_status(status)
        version = req.get_param_as_int("version")
        with_ancestors = req.get_param_as_bool("ancestors", default=False)

        experiment = retrieve_experiment(experiment_name, version)
        if status:
            trials = experiment.fetch_trials_by_status(status, with_ancestors)
        else:
            trials = experiment.fetch_trials(with_ancestors)

        response = build_trials_response(trials)
        resp.body = json.dumps(response)

        Handle GET requests for trials/:experiment where ``experiment`` is
        the user-defined name of the experiment.
        
Handle GET requests for trials/:experiment where ``experiment`` is
the user-defined name of the experiment.
Handle GET requests for trials / : experiment where ` ` experiment ` ` is the user - defined name of the experiment .
def on_get_trials_in_experiment(
        self, req: Request, resp: Response, experiment_name: str
    ):
        verify_query_parameters(req.params, SUPPORTED_PARAMETERS)
        status = req.get_param("status", default=None)
        verify_status(status)
        version = req.get_param_as_int("version")
        with_ancestors = req.get_param_as_bool("ancestors", default=False)
        experiment = retrieve_experiment(experiment_name, version)
        if status:
            trials = experiment.fetch_trials_by_status(status, with_ancestors)
        else:
            trials = experiment.fetch_trials(with_ancestors)
        response = build_trials_response(trials)
        resp.body = json.dumps(response)
def on_get_trials_in_experiment ( self , req : Request , resp : Response , experiment_name : str ) : verify_query_parameters ( req . params , SUPPORTED_PARAMETERS ) status = req . get_param ( "status" , default = None ) verify_status ( status ) version = req . get_param_as_int ( "version" ) with_ancestors = req . get_param_as_bool ( "ancestors" , default = False ) experiment = retrieve_experiment ( experiment_name , version ) if status : trials = experiment . fetch_trials_by_status ( status , with_ancestors ) else : trials = experiment . fetch_trials ( with_ancestors ) response = build_trials_response ( trials ) resp . body = json . dumps ( response )
Handle GET requests for trials/:experiment where ``experiment`` is
the user-defined name of the experiment.
Handle GET requests for trials / : experiment where ` ` experiment ` ` is the user - defined name of the experiment .
"""
        Handle GET requests for trials/:experiment where ``experiment`` is
        the user-defined name of the experiment.
        """
self
req
Request
resp
Response
experiment_name
str