MAPC / massbuilds

Crowdsourcing authoritative info on recent & ongoing developments in Massachusetts.
https://www.massbuilds.com/
2 stars 2 forks source link

Cambridge User Cannot Submit New Development in Kendall Square #309

Closed mzagaja closed 3 years ago

mzagaja commented 3 years ago

Describe the bug A user who is a member of Cambridge has been unable to submit a new development into Kendall Square despite the fact they are authorized.

Steps to reproduce Walk us through how you revealed the bug.

  1. Start creating a new development at 600 Main St, Cambridge, MA as a Cambridge municipal user.
  2. Fill out data (see log below)
  3. Submit development.
  4. See error saying development could not be submitted. Then see Massbuilds reload and kick them out.

Expected behavior The development would be submitted and appear on the map.

Additional context

I, [2021-03-08T10:39:21.731002 #24726]  INFO -- : [2bcc79e9-9dba-406b-9b29-fab73c54f949] Started POST "/developments" for 204.167.92.26 at 2021-03-08 10:39:21 -0500
I, [2021-03-08T10:39:21.732306 #24726]  INFO -- : [2bcc79e9-9dba-406b-9b29-fab73c54f949] Processing by DevelopmentsController#create as JSONAPI
I, [2021-03-08T10:39:21.732432 #24726]  INFO -- : [2bcc79e9-9dba-406b-9b29-fab73c54f949]   Parameters: {"data"=>{"attributes"=>{"name"=>"600 Main Street - Ragon Institute", "status"=>"planning", "descr"=>"New building for the Ragon Institute - a joint effort of MIT, Harvard and Mass General.  Will replace two older staructures.", "prj_url"=>nil, "tagline"=>nil, "nhood"=>nil, "address"=>nil, "state"=>"MA", "zip_code"=>nil, "park_type"=>"underground", "parcel_id"=>nil, "municipal"=>nil, "devlper"=>nil, "height"=>nil, "stories"=>nil, "year_compl"=>2024, "prjarea"=>64579, "singfamhu"=>0, "smmultifam"=>0, "lgmultifam"=>0, "unknownhu"=>nil, "hu"=>0, "gqpop"=>0, "rptdemp"=>nil, "commsf"=>185810, "hotelrms"=>0, "onsitepark"=>120, "total_cost"=>nil, "ret_sqft"=>0, "ofcmd_sqft"=>0, "indmf_sqft"=>0, "whs_sqft"=>0, "rnd_sqft"=>0, "ei_sqft"=>185810, "other_sqft"=>0, "hotel_sqft"=>0, "unk_sqft"=>0, "latitude"=>42.36270913882056, "longitude"=>-71.09337588214447, "units_1bd"=>nil, "units_2bd"=>nil, "units_3bd"=>nil, "affrd_unit"=>0, "aff_u30"=>0, "aff_30_50"=>0, "aff_50_80"=>0, "aff_80p"=>0, "aff_unknown"=>0, "publicsqft"=>nil, "rdv"=>true, "asofright"=>false, "ovr55"=>false, "clusteros"=>false, "phased"=>false, "stalled"=>false, "headqtrs"=>false, "mixed_use"=>false, "yrcomp_est"=>true, "flag"=>false, "created_at"=>nil, "updated_at"=>nil}, "relationships"=>{"user"=>{"data"=>{"type"=>"users", "id"=>"28"}}}, "type"=>"developments"}}
I, [2021-03-08T10:39:21.844411 #24726]  INFO -- : [2bcc79e9-9dba-406b-9b29-fab73c54f949] Completed 401 Unauthorized in 112ms (ActiveRecord: 3.0ms)