The front-end will know the user's contactid. The hearing and rec buttons on the project profile should only show up if the logged in user's contactid is equal to the recommendationsubmittedby returned in the lup_dispositions json object in this API response.
The hearing button should be enabled if any of the dateofpublichearing values are NULL.
Depending on the representing value in the lup_dispositions json object, the front-end should check to see if the corresponding boroughboardrecommendation, communityboardrecommendation, or boroughpresidentrecommendation values are NULL. If any of the role's rec values are NULL AND the hearing values are not NULL, the recommendation button should be enabled.
This PR adds a lup_dispositions json blob query to project/show.sql. These attributes are necessary for the implementation of https://github.com/NYCPlanning/labs-zap-search/issues/660.
Notes on related implementation in the front-end:
contactid
. The hearing and rec buttons on the project profile should only show up if the logged in user'scontactid
is equal to therecommendationsubmittedby
returned in the lup_dispositions json object in this API response.dateofpublichearing
values are NULL.representing
value in the lup_dispositions json object, the front-end should check to see if the correspondingboroughboardrecommendation
,communityboardrecommendation
, orboroughpresidentrecommendation
values are NULL. If any of the role's rec values are NULL AND the hearing values are not NULL, the recommendation button should be enabled.Addresses #195