RealMassive-Archive / prospector

how we prospect, mine, and refine CRE nuggets and turn them into listings
0 stars 0 forks source link

Additional Information Needed in Nugget List #19

Closed chrisivester closed 10 years ago

chrisivester commented 10 years ago

Prospector Shows This in "Nugget List" Information Section: screenshot 2014-01-17 10 22 55

Need to be able to see these additional fields and have a way that the app flags nuggets that are directed to a website: screenshot 2014-01-17 10 18 30

chrisivester commented 10 years ago

Additionally, when selecting the other options on the "Contact Broker" screen: screenshot 2014-01-20 12 25 52

When the options other than "Broker will email assets" we have no way of flagging jobs/nuggets where the other options listed above are selected. Even if it is flagged, after looking through the data in nugget list I can't see "Broker Website URL" when this option is selected.

-Chris

jahio commented 10 years ago

Need to see in nugget list which nuggets require action by RM; perhaps by showing a grouped list of those who have website urls.

jahio commented 10 years ago

Ok this has been shipped. You can now see a section above the primary nugget listing showing nuggets that need follow-up.

screen shot 2014-01-26 at 1 27 07 pm

Currently "follow-up" is defined only as needing to visit a website. Let me know if there's another specific state you want included there.

Next, when you click "More..." you see details about calls to brokers. Each call is stored in the database as a separate "event" tied to an individual nugget. Ergo, it's possible (though not through normal means) to have more than one call entry per nugget. The application should handle this by simply looping through all associated calls with the same block of data.

screen shot 2014-01-26 at 1 28 39 pm

This should be sufficient to get you guys off the ground. Closing issue now; re-open with comments if unsatisfactory.

chrisivester commented 10 years ago

Austin,

This works perfectly! Can you have it flag as "follow-up required" for all the other options except for Broker Refused and Broker Will Email.

Thanks, Chris

jahio commented 10 years ago

This is being shipped up to production right now and should work as expected. Please test and re-open if not.

# Find the nuggets that need follow-up.
@followup_nuggets = Nugget.unscoped.where('state NOT IN (?)', unwanted_states).where("signage_address IS NOT NULL").joins(:broker_calls).where('broker_calls.call_result NOT IN (?)', [:broker_refused_to_email, :broker_will_email_assets])