Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Promotion Steps:

...

  • Total count of properties in the system would be total number of records on property index 

  • For counting assessments please use assessment index, the records includes assessment number and financial year fields which are being used in current Dashboard

  • Get “usageCategoryMajor” from property object instead of propertydetail, only latest value of this field would be available for any property

  • For all fields which were present in “propertydetail” except assessment information get them from property object

  • Assessment index records contain propertyId field which can be used to get count of total assessment for a property from assessment index

Property Services: Tenant and date range wise re-indexing Utility:

  • Need to have criteria based re-indexing because in any production environments we would not be doing or needing entire data reindexing

  • It would be for either for one tenant or for certain criteria like all residential properties

  • Added a plainsearch API endpoints for multiple tenantIds and date range wise reindexing

  • fromDate() and toDate() are to be converted to respective unix timestamps.

  • Query parameters are tenantId(can be single or multiple), fromDate and toDate which are to be converted to respective unix timestamps.

  • Basically Unix timestamp is a method to track time as running total of seconds. The count starts from Jan 1st 1970, which is considered as Unix Epoch. Unix timestamp is the number of seconds elapsed between a given date and unix epoch.

Reindexing commands:

  1. Property Index

...

  "legacyIndexTopic":"pt-assessment-legacyIndex",

  "tenantId":"pb.amritsar"

}'

  1. Tenant and Date wise Indexing

curl -X POST \

  http://localhost:8280/property-services/property/_plainsearch?fromDate=25112020&toDate=26112020&tenantId=pb.amritsar \

H 'Cache-Control: no-cache' \

H 'Content-Type: application/json' \

d '{

"RequestInfo": {

"apiId": "Rainmaker",

"ver": ".01",

"ts": null,

"action": "search",

"did": "1",

"key": "",

"msgId": "20170310130900|en_IN",

"authToken": null,

"correlationId": "654938aa-ed8a-4d8f-8bd9-a2b73db9cbfe",

"userInfo": {

"id": 24710,

"userName": "EMP1",

"name": "EMP ONE",

"type": "EMPLOYEE",

"mobileNumber": "8888888888",

"emailId": "emp1@egovernments.org",

"roles": [

{

"id": null,

"name": "WS Counter Employee",

"code": "WS_CEMP",

"tenantId": "pb.amritsar"

},

{

"id": null,

"name": "WS Document Verifier",

"code": "WS_DOC_VERIFIER",

"tenantId": "pb.amritsar"

},

{

"id": null,

"name": "Employee",

"code": "EMPLOYEE",

"tenantId": "pb.amritsar"

}

],

"tenantId": "pb.amritsar",

"uuid": "b81e378d-0bcf-4ea9-a7eb-d24163c74b8e"

}

}

}

}'