Add labels to membership

This commit is contained in:
philipp lang 2020-07-04 23:31:03 +02:00
parent 2a1c90ebce
commit a73784e554
4 changed files with 9 additions and 5 deletions

View File

@ -14,7 +14,9 @@ class Membership extends Model {
'taetigkeitId' => 'activity_id', 'taetigkeitId' => 'activity_id',
'untergliederungId' => 'subactivity_id', 'untergliederungId' => 'subactivity_id',
'aktivVon' => 'starts_at', 'aktivVon' => 'starts_at',
'aktivBis' => 'ends_at' 'aktivBis' => 'ends_at',
'taetigkeit' => 'activity_name',
'untergliederung' => 'subactivity_name'
]; ];
protected $casts = []; protected $casts = [];

View File

@ -19,7 +19,9 @@ class PullMembershipsTest extends TestCase
'activity_id' => ['activity_id', [33, 34]], 'activity_id' => ['activity_id', [33, 34]],
'subactivity_id' => ['subactivity_id', [55, 56]], 'subactivity_id' => ['subactivity_id', [55, 56]],
'starts_at' => ['starts_at', ['2017-02-11', '2017-11-12']], 'starts_at' => ['starts_at', ['2017-02-11', '2017-11-12']],
'ends_at' => ['ends_at', ['2017-03-11', null]] 'ends_at' => ['ends_at', ['2017-03-11', null]],
'activity_name' => ['activity_name', ['ReferentIn', 'Wö']],
'subactivity_name' => ['subactivity_name', ['Pfadfinder', 'AAA']],
]; ];
} }

View File

@ -4,7 +4,7 @@
"id": 68, "id": 68,
"gruppierung": "Diözesanleitung Köln 100000", "gruppierung": "Diözesanleitung Köln 100000",
"gruppierungId": 103, "gruppierungId": 103,
"taetigkeit": "ReferentIn", "taetigkeit": "ReferentIn",
"taetigkeitId": 33, "taetigkeitId": 33,
"untergliederung": "Pfadfinder", "untergliederung": "Pfadfinder",
"untergliederungId": 55, "untergliederungId": 55,

View File

@ -4,9 +4,9 @@
"id": 69, "id": 69,
"gruppierung": "Diözesanleitung Köln 100000", "gruppierung": "Diözesanleitung Köln 100000",
"gruppierungId": 104, "gruppierungId": 104,
"taetigkeit": "€ ReferentIn", "taetigkeit": "",
"taetigkeitId": 34, "taetigkeitId": 34,
"untergliederung": "Pfadfinder", "untergliederung": "AAA",
"untergliederungId": 56, "untergliederungId": 56,
"aktivVon": "2017-11-12 00:00:00", "aktivVon": "2017-11-12 00:00:00",
"aktivBis": "" "aktivBis": ""