Closed wmbeers closed 3 years ago
Note: project 9291 is a good candidate for testing--it has very different geometry in draft than the most recent milestone. It exists this way on dev and stage, and possibly prod. Other candicates can be found with this sql:
select *
from draft_alternatives d
inner join milestone_max_alternatives mma
on d.project_alt = mma.fk_project_alt
where d.shape <> mma.shape;
This issue has been incorporated into #67. We can close this when that issues is complete.
In a situation where an alt of a given project has been through review, but a draft alt added after that review, results in the draft alt not showing up in the map after a call to addProjectToMap. This is because the routine adds the milestone max, which includes only the first alt (the second, still being draft, isn't in that layer), then stops if it finds something. It only adds draft if not found in milestone max.
See email from Lauren Brooks 10/30/2020:
Lex proposed adding a new milestone event like "ready for review" to push the draft alt to milestone max. Mike proposes we just invert the search and show draft if available, and only milestone max if user doesn't have draft access or nothing found in draft.