nebari-dev / nebari

🪴 Nebari - your open source data science platform
https://nebari.dev
BSD 3-Clause "New" or "Revised" License
282 stars 93 forks source link

[ENH] - Set separate validator methods to be called in infrastructure stage's _check_input actions for each provider #2817

Open joneszc opened 3 weeks ago

joneszc commented 3 weeks ago

Feature description

Shift each validator under _check_input (e.g. aws provider validation), for each provider, into a separate method to be called iteratively, distributing the burden of _check_input, to enable more efficient raising of a possible ValueError and earlier exiting on return data while avoiding premature skipping of validation steps.

Value and/or benefit

Developers can add or refactor provider validation steps, for the infrastructure stage, as separate modules to enhance logic conditionals to more effectively handle ValueError or data returns and bypass excessive checks.

Anything else?

This request is follow-up to discussion in PR#2788

Adam-D-Lewis commented 2 weeks ago

I think an examlpe would help clarify what you're looking for here.