Add groupby_as_dict filter (#2323) (#2503)

* Add groupby_as_dict filter.

* Test all error cases.

(cherry picked from commit 384655e15c)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2021-05-14 09:47:53 +02:00 committed by GitHub
commit 6013c77c2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 123 additions and 0 deletions

View file

@ -0,0 +1,3 @@
add plugin.filter:
- name: groupby_as_dict
description: Transform a sequence of dictionaries to a dictionary where the dictionaries are indexed by an attribute