TechnologyRediscovery / cogconnect

Municipal government code enforcement and occupancy permitting web-app system
https://cogconnect.net
GNU General Public License v3.0
1 stars 1 forks source link

Integrate property owner scraping into UI #30

Open edarsow opened 5 years ago

edarsow commented 5 years ago

The following steps assume the following components are ready to roll:

Goal: Integrate property info case data into properties.xhtml such that we can search for properties by attribute and see case events associated with the attributes we desire.

Proposed steps

  1. Study the method searchForProperties in PropertyIntegrator and internalize how it builds the SQL statement for queries based on the boolean flags contained inside the SearchParamsProperty object. Note that the SearchParamsProperty has "useXXX" flags and associated member variables for the values to search. They always exist in pairs such the user doesn't need to specify params for attributes they don't care about. For example, the "filterByUseType" flag is used to tell the searchForProperties method whether or not to include a clauaaaaaase that will specify a key in the propertyusetype table.
  2. Adjust the SELECT statement embedded in searchForProperties to include one or more JOIN clauses in the FROM section of the statement