Skip to content
Snippets Groups Projects

update dataproduct information generation to include additional meta data

Merged Fanna Lautenbach requested to merge hotfix/additional-meta-data into main
1 unresolved thread

Screenshot_from_2022-12-19_10-33-39

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
160
161 def combine_dataproducts_on_key(data_products, combined_data_products):
156 162 for data_product in data_products:
157 for key, value in data_product.items():
158 if combined_data_products_on_key.get(key) and value not in combined_data_products_on_key.get(key):
159 combined_data_products_on_key[key].append(value)
160 else:
161 combined_data_products_on_key[key] = [value]
163 combined_data_products = fill_unique_nested_dict(data_product, combined_data_products)
164 return combined_data_products
165
162 166
167 def fill_unique_nested_dict(data_product, combined_data_products_on_key):
168 for key, value in data_product.items():
169 if isinstance(value, dict):
170 combined_data_products_on_key = fill_unique_nested_dict(value, combined_data_products_on_key)
  • mentioned in commit 064dbece

  • Please register or sign in to reply
    Loading