This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate active/pending delete project status in inventory summary em…
…ail (#2132) * + Add lifecycle status query function + Add hidden dataset summary function + Call above functions in get summary function and add to return dict * + Add more params to test_inventory_summary_can_run_successfully function to attribute added functions in storage.py (hidden dataset and delete_pending/active project) * + Formatting - have bracket and parenthesis on same line as code end * + Add in SHOWN field for hidden resource type func + Add in DELETE PENDING field for lifecycleState func if not exist + Add _get_summary_details_data func + Add in summary_details_data param to _send_email func + Combine summary and details data as a param to _upload_to_gcs func + Add in separate section at bottom of inventory section for details + Add in Inventory Summary and Inventory Details headers + Return values and expected data incorporate details data in test * - Take out delete/hidden description in get_summary as it no longer applies * - Take out literal package - Fix indentation issues * + Add extra space * + Change summary_details to details for better differentiation between summary and details data * + indent line to fit PEP-8 * + Reformat docstrings to fit PEP 8 + Refactor duplicate code into separate method * + Change _transform_for_template to _transform_to_template + Add docstring to _transform_to_template * - Take out None filter for lifecycleState query + Create separate variables for hidden/shown resource query for cleaner code + Add additional elif statement for resource type details for scalability + Modify expected_summary_data_send_email to incorp details section in test * + Indent lines to fit PEP 8 style * + Add more indentation for PEP 8 style * + Add indent for PEP 8 style + Add @static_class to func * + Add in if-else to factor in for either ACTIVE or DELETE PENDING + Change docstring description from list of dicts to just dict * + Change sum to count in hidden_resource_type func to prevent None from appearing in count (instead 0 would be displayed) * + Fix formatting of indent
- Loading branch information
Showing
4 changed files
with
223 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters