Closed declanlawlor closed 7 months ago
Hi @declanlawlor Please see the DepartmentID You may need to initially use the below config endpoint to check which departments are setup per client;
https://foundations-documentation.reapit.cloud/platform-glossary#department
Hi @AshDeeming,
I don't quite follow. According to your link The following table shows the values exposed in the type collection returned by the Applicant, Property, Department
. So specifically wrt the Property API, the type
field is not set to developmentPlot
or subPlot
when I query the property using the API. I'm assuming here developmentPlot
or subPlot
(or something similar) relate to New Homes. In the case of DNH220469
type is set to house
, which doesn't give any indication.
So to summarise I need to be able to identify a new homes development/subplot via the Webhook when a property is created or modified, but the webhook is not providing me with that detail. What am i missing here?
Hi @declanlawlor Within the properties payload there will be a Department ID i.e; For the above example off SBOX - This is G - for General/Residential (via Departments endpoint)
You will need to GET departments to check which of these are setup to New Homes - This will then provide you with a departmentID to differentiate between properties that have this departmentID verse those with G.
Hi @AshDeeming
Not quite there yet.
Taking property DNH230349
it is returning a departmentId
of S
. And querying the Department Data, I receive the following typeOptions
"typeOptions": [
"house",
"bungalow",
"cottage",
"flatApartment"
],
So this does not help in me identifying this is a unit of a New Homes development.
Similarly, if I take the parent that this unit is part of, with. ID DNH221102
, the departmentId
is also S
.
Also worth noting, if I take a Standard Residential Home - that is not part of a New Homes Development - it also has a departmentId
of S
.
So I'm still no further along in:-
a) Identifying DNH230349
as a unit/subplot
b) Identifying DNH221102
as a New Homes Development
Hi @declanlawlor I'll convert this ticket into a feature request for deeper review by the back end team
Thanks @AshDeeming, we are in the middle of a rollout, and we do not want to process New Developments (parent or child) so would appreciate if one of the backend team can give me some clues, as soon as possible. Appreciate your help!
Hi @AshDeeming how long would it typically take for this ticket to be reviewed by the team. I'm just trying to plan a rollout and set time expectations, as I need to delay agents that have new developments in their feed, until i understand how to process them.
Hi @declanlawlor. Sorry for the delay in getting a response back to you. At the moment there's no concrete way to do this via a webhook. The way the relationship is currently described is through the use of links which are added to the _links
collection on the model returned from the properties. Links get deliberately stripped out from webhook events to keep the payload size down. We'll discuss this item in our refinement session today as it's a reasonable use case to add a developmentUnitType
property to the model (or something similar) that describes master/subPlot more explicitly which can then be backed up by an appropriate query string parameter that allows you to filter subplots and master records out in your query
This issue has been updated and moved to our ‘Near Term’ column (typically completed within 0 - 4 months). We have assessed the effort required and outlined a technical specification - please take the time to review this detail. When we're ready to schedule the issue, it will be assigned to the relevant board where you can continue to track its progress to completion. For more information on our processes, please click here
Thanks @plittlewood-rpt - for now the most important thing for our rollout is to be able to determine if a property is either a) master b) subplot, so your suggestion around a developmentUnitType
sounds good. The second part - to understand the relationship, ie. subplot X is part of master Y is not as critical for us right now, but will be required in a few months.
@plittlewood-rpt would it be safe to assume that new developments are identified by numberOfUnits
> 0 and non developments would be numberOfUnits
== 0 or null
?
For instance, I can see DNH230585
for SFG
has number of units set to 1.
This could help us to identify new developments in the interim.
Unfortunately not as that can be open to problems as agents might forget to fill it in. You are welcome to use that in the interim however it might not give reliable results across data sets. We've specd out this item so I'll see if we can get it in the next sprint which starts on Monday
@HollyJoyPhillips can we consider for Sprint 113 please?
Summary I'm currently trying to understand how we identify sub plots of a New Homes Development, when we receive the Webhook.
Detail and or supporting links and screenshots Taking Sub Plot
DNH220469
which is part of a New Development DNH191667 for customerSFG
as an example, when I inspect the payload received forDNH220469
, I can't see anything that identifies it as part of this Development.Additionally, if I look at the payload for the parent
DNH191667
, I cannot see any way to identify it either.Apologies in advance, if I have missed something obvious.
Specification
string developmentSiteType
property to PropertyModel with the following mappingWe should ensure there are no other values that can be added to this field.