CAWSCIT / ca-meeting-finder-issue-tracker

Public Repo For tracking known issues and work for the C.A. Meeting Finder app.
0 stars 0 forks source link

Validate the `area region key` when saved #32

Open KalobTaulien opened 2 months ago

KalobTaulien commented 2 months ago

Describe the bug When an "area region key" is changed in the admin, we may want to consider quickly looping through all the available meetings and making sure it works.

Example If you set your area region key to "city" but there are meetings with no city (no physical location), they will error.

Additional context The area region key is the key is the setting that changes the "Region" column when looking at the TSML UI, and it will display something different based on the Area's needs WHEN looking at their own area meetings (not the global list).

KalobTaulien commented 2 months ago

Note: possibly loop through each of the Area's meetings and making sure the appropriate data is set. If it does not pass then the validation we give an on-screen warning telling them they have x number of meetings that don't meet that criteria.