[BUG] Live monitoring not accessible for expert mode users
ramyaragupathy opened this issue · 1 comments
Describe the bug
Wit expert mode turned on, I am unable to see Live monitoring
button enabled for a project. This project is in Malawi and it is present in the list of available countries(Bangladesh, Malawi, Ecuador, Morocco, and Nigeria). However I can directly access the live monitoring page via the link https://tasks.hotosm.org/projects/12918/live. But the page does not load any feature list. On checking console, there are a bunch of CORS errors reported
To Reproduce
Steps to reproduce the behavior:
- Go to 'https://tasks.hotosm.org/'
- Make sure you have
Expert mode
turned on in youruser settings
- From explore projects, filter out projects present in one of the five available countries(Bangladesh, Malawi, Ecuador, Morocco, and Nigeria)
- Scroll down to 'Contributors timeline'
- See if the
live monitoring
button is enabled below this graph. Ideally it should be present, but it is missing - Now add a
live
text to the project url, for example: https://tasks.hotosm.org/projects/12918/live and hitenter
- Live monitoring page view loads with a map and a side bar, but there is no feature list and no objects show up on the map
- Check the browser console and you will notice CORS errors
Expected behavior
Ideally live monitoring option should be enabled for expert mode users, provided the project is in the list of available countries (Bangladesh, Malawi, Ecuador, Morocco, and Nigeria). When the live monitoring page loads, there should be a list of buildings features mapped through that project.
Screenshots
![image](https://private-user-images.githubusercontent.com/12103383/328778747-91a47cf7-fe44-4bda-a07b-31318f194c93.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMDQyNzIsIm5iZiI6MTcyMjEwMzk3MiwicGF0aCI6Ii8xMjEwMzM4My8zMjg3Nzg3NDctOTFhNDdjZjctZmU0NC00YmRhLWEwN2ItMzEzMThmMTk0YzkzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI3VDE4MTI1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEzYTY1ZGFiYzI4MGM2MzNlZTE1MmZjZTEwYzlmOTM2NmU4YmI3YjQ4YmU3ZjA2ZDc5NzQxMDJiMDJjZTE3ZjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ZEDI7XXlJepuhYMQZn1fVyHToVwhRhjmOw093ounEvk)
Desktop (please complete the following information):
- MacOS
- Chrome
Fixed! I've added https:://tasks.hotosm.org to the list of domains enabled for the https://underpass.hotosm.org API.