taipy icon indicating copy to clipboard operation
taipy copied to clipboard

Configure Multiple DataNodes in a single line of code.

Open Forchapeatl opened this issue 1 year ago • 5 comments

What would that feature address Configuring multiple datanodes in a single line of code.

Description of the ideal solution

message_dn_cfg, input_name_dn_cfg, input_phone_dn_cfg= Config.configure_data_node(ids=["message","input_name","input_phone"])

Caveats What impact could that feature have on the rest of the product, and should be taken special care of?

  • Time saving.
  • Makes it easier to debug when related variables are grouped.

Acceptance Criteria

  • [ ] Ensure new code is unit tested, and check code coverage is at least 90%
  • [ ] Create related issue in taipy-doc for documentation and Release Notes
  • [ ] Check if a new demo could be provided based on this, or if legacy demos could be benefit from it
  • [ ] Ensure any change is well documented

Forchapeatl avatar Jan 23 '24 18:01 Forchapeatl

I like the simplicity of the API. The signature could be something like:

def Config.configure_multiple_data_nodes(*config_ids, **properties)

All the data node configs created will have the same properties. This is a bit strange to me though. I would like to be sure this is not error prone.

jrobinAV avatar Jan 24 '24 16:01 jrobinAV

Hello @Forchapeatl I'd like to hack on this

mobley-trent avatar Jan 25 '24 13:01 mobley-trent

@trgiangdo please assign this to @mobley-trent

Forchapeatl avatar Jan 25 '24 19:01 Forchapeatl

Hello @mobley-trent , thank you so much , feel free to reach out if you need any help.

Forchapeatl avatar Jan 25 '24 19:01 Forchapeatl

Hello @Forchapeatl and @mobley-trent, the Taipy team first needs to discuss about the value of the feature before incorporate it into the library. Please be patient and follow the discussion on this issue here

trgiangdo avatar Jan 26 '24 06:01 trgiangdo