Skip to content

Commit

Permalink
[N/land] Fetch category & group updates from Alloy
Browse files Browse the repository at this point in the history
  • Loading branch information
nephila-nacrea authored and dracos committed Feb 13, 2025
1 parent 82c37a0 commit ed34041
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions perllib/Open311/UpdatesBase.pm
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,18 @@ sub _handle_assigned_user {
$request->{extras}{detailed_information} )
: $p->unset_extra_metadata('detailed_information');
}

# Category & group
# TODO Do we want to check that category and group match?
if ( my $category = $request->{extras}{category} ) {
my $contact
= $body->contacts->search( { category => $category } )->first;
$p->category($category) if $contact;
}

if ( my $group = $request->{extras}{group} ) {
$p->set_extra_metadata( group => $group );
}
}
}

Expand Down

0 comments on commit ed34041

Please sign in to comment.