Nelly-Barret / BETTER-fairificator

The fairification tools for BETTER project.
https://www.better-health-project.eu/
0 stars 0 forks source link

Save the execution parameters in the database #79

Closed Nelly-Barret closed 5 days ago

Nelly-Barret commented 5 days ago

To save the paramters in a table, we have two options:

{
    "DB_NAME": { "2024-06-25T14:35:10Z": "my_db" }, 
    "DROP_DB": { "2024-06-25T14:35:10Z": "False" }
    ...
}

or

{ 
    "2024-06-25T14:35:10Z": { "DB_NAME": "my_db" }, 
    "2024-06-25T14:35:10Z": { "DROP_DB": "False" }

But in fact, there are two problems with the above representation:

Instead, I think we need to model Executions as follows:

{ 
    "identifier": "123",
    "createdAt": "2024-06-25T14:35:10Z",
    "parameters": {
        "DB_NAME": "my_db",
        "drop_db": "True",
        ...
    }, 
    "analysis": {
        "Patients": { "identifier": { "nb_empty_values": "0 }, ...}, 
        ....
    }
}
Nelly-Barret commented 5 days ago

Done at https://github.com/Nelly-Barret/BETTER-fairificator/pull/80