-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(telemetry): Avoid eager loading the whole KedroCLI for masking #824
Conversation
Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation looks good! 👍
Any way to test it end to end?
Hmm, nothing straight-forward. You can print the result of |
Tested locally and compared outputs from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well—tested with HeapAnalytics. Thanks, @ankatiyar, great job! I left one minor comment.
…edro-org#824) * First pass: only load command that was called Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Try to make it work with help and invalud commands Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Fix tests Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Fix masking tests Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Remove unused function and add argument name and type Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> --------- Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> Signed-off-by: Harm Matthias Harms <matthias.harms@quis.de>
…edro-org#824) * First pass: only load command that was called Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Try to make it work with help and invalud commands Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Fix tests Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Fix masking tests Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> * Remove unused function and add argument name and type Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> --------- Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com> Signed-off-by: Minura Punchihewa <minurapunchihewa17@gmail.com>
Description
Resolve #794
Development notes
KedroCLI
(which are lazy now) to generate adict
CLI structure, only load the structure for the command that is called to perform masking._mask_kedro_cli
needs the actualKedroCLI
object._recursive_items()
function and associated unit tests since it wasn't being used anywhere.Checklist
RELEASE.md
file