Run configuration improve.

Answered

Hi! I was working with Fleet since august and i found a little problem. When you have a run.json file in a folder with a deep greater than 4, fleet is not available to sow you the run button, and there is no other way to use that run configuration.

Example:

workspace_dir
--Sub folder 1
----Sub folder 2
------Sub folder 3
--------.fleet
-----------run.json <--- this one dont gives you a way to click the run button
----.fleet
------run.json <--- but this one does.

I try my best to explane it, please ask if it is not clear.

Other improvement is that the name of the configuration must be the key to the run configuration because that way you can reduce colapse the run configuration, for a compact view of it, because if you have 20 run configurations it gets unreadable. With this new way of naming the run configuration, you can see also the run button at the left hand improving the actual behavior of it that gets annoying when you colapse the run config, and the button disappears. 

Now:
{
    "configurations": [
        {
            "name": "Local Lambda Execute",
            "type": "python",
            "environment": {
                "PYTHONUNBUFFERED": "1",
                "PYTHONPATH": "$USER_HOME$"
            },
            "file": "$PROJECT_DIR$\\main.py",
            "arguments": [
                ""
            ]
        }
    ]
}
Sugested:
{
    "configurations": {
        "Local Lambda Execute": {
            "type": "python",
            "environment": {
                "PYTHONUNBUFFERED": "1",
                "PYTHONPATH": "$USER_HOME$"
            },
            "file": "$PROJECT_DIR$\\main.py",
            "arguments": [
                ""
            ]
        }
    }
}

Here is an example:

The button disappears.

A better visualization:

And the play button can be here:

 

Thanks for your time.

0
3 comments

Hi FeraxHp! Thank you so much for the report and your suggestions! It is very interesting and valuable! I have filled corresponding requests for it. Please feel free to vote and follow them for updates:

FL-24149 Run configuration is not detected from run.json file with a deep greater than 4

FL-24148 Better representation of collapsed run configurations in run.json

Thank you very much!

0

Hi FeraxHp!

I've tried to reproduce your issue regarding the run icon not being shown in deeply nested files but failed to do so.

Can you tell me what type of configurations you've experienced this with, or even better, provide me a minimal example project where you see the issue? You can attach it to this issue: FL-24149 
Thank you!

0

Hi Bernhard Geisberger , my project is running with a lot of sub propjets. and that's make to fleet get in trouble, this is a simple view of how my project is configured.

project_name
    .fleet -> detected
    01_AWS_LAMBDA_TOOL
        .fleet -> detected
    02_AWS_LAMBDA_INVOKE
        .fleet -> detected
    Lambda_functions
        0014_ADMON_EXTR_CORVUS
            FN_FORMATO 239
                .fleet -> detected
            FN_VERO 239
                .fleet -> detected
        0015_ADMON_EXTR_PRECIA
            FN_PRIVATE 1
                .fleet -> detected
            FN_PRIVATE 2
                .fleet -> detected
            FN_PRIVATE 3
                .fleet -> detected
            FN_PRIVATE 4
                .fleet -> detected
            FN_PRIVATE 5
                .fleet -> detected
        ADMON
            PRIVATE 6
                .fleet -> detected
        FN_0007_RIES_REPORTE_ICL_LCR_PIVOT_XLSX_CSV
            .fleet -> no detected
        FN_0007_RIES_VERIFICA_REGISTROS_EN_TABLA
            .fleet -> no detected
        FN_0021_ADMON_DESPLIEGUE_APPS_AWS_EXPORTAR_OBJETOS
            .fleet -> no detected
        FN_9999_PRUEBAS_HPV_LAMBDA
            .fleet -> detected
        FN_ADMON_EXPORTA_OBJETOS
            .fleet  -> detected
        FN_ADMON_VERIFICA_OBJETOS
            .fleet -> detected
        Obtener objetos
            .fleet -> detected
    Sql_proyects

   As you can see, fleet don't detect some of the run.json, but if i open they individually, it does detect it. 

Thanks for your time. 

   

0

Please sign in to leave a comment.