reapit / foundations

Foundations platform mono repo
56 stars 22 forks source link

Missing appointments and tenancy schedule #11272

Open iWader opened 4 months ago

iWader commented 4 months ago

Summary

We're experience an issue with the NHM account where we can't find appointments relating to a tenancy

Connected as user QSBN who are in the YOM-GNHM office group. Focusing on tenancies HUT220189 and BED210318.

In RPS, under the tenancy management tab, we can see these have a last inspection date of 14/12/2023 for both tenancies. However I cannot find an appointment on the api relating to these dates. Nor can I find a recurring appointment linked to either tenancy.

Our aim here is to be able to book the next appointment in the schedule, which currently we rely on finding a recurring appointment related to the tenancy.

a) can you identify why we can't find these appointments (I suspect it may be related to the office group permissions) b) expose the tenancy inspection schedule on the api

iWader commented 4 months ago

@plittlewood-rpt can we get an update here?

AshDeeming commented 2 months ago

Migrated to; PBI-5869

NB This ticket will be updated once further updates completed on the above

AshDeeming commented 1 day ago

Hi @iWader

Please see the below from the review within th API team;

The issue here is office group filtering, in the first example for tenancy HUT220189 this uses the properties office code to determine if it can view the tenancy & property, which is officeCode: BED.

This is allowed as it’s within the YOM-GNHM office list. However the appointment associated to that for the last inspection date is appointment HRO2300732. This belongs to officeCode HRO which that same office group does not have permission to view.