Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live Monitoring map is not displaying polygons in blue and red over the buildings when building/deploying #6350

Closed
emi420 opened this issue Apr 22, 2024 · 3 comments
Labels
data-quality Issues related to data quality and validation workflow hot tools integration Track tickets related to integrating HOT tools with TM priority: high status: done type: bug ui/ux 👥
Milestone

Comments

@emi420
Copy link
Collaborator

emi420 commented Apr 22, 2024

Describe the bug
The map in the Live Monitoring view is displaying objects when running the front end for development with yarn start but is not working good when I build it, and the same is happening on the deployment to the staging server (https://tasks-stage.hotosm.org/)

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://tasks-stage.hotosm.org/
  2. Log in
  3. Search for "bangladesh", "ecuador" , "morocco", "nigeria" or "malawi"
  4. Open the project
  5. Scroll down to see the "Live monitoring" button and click it
  6. Click on a result on the right bar
  7. The map at the right should display polygons, but is not working, only the OSM background tiles are displayed.

Expected behavior
The map should display polygons in blue and red over the buildings, instead of displaying only the OSM background.

Screenshots

It look like this:
Screenshot 2024-04-17 at 11 12 03

Expected behavior:
Screenshot 2024-04-17 at 11 10 52

Desktop (please complete the following information):

  • OS: MacOS 14.2.1
  • Browser: Firefox
  • Version: 126.0.1

Additional context
It works OK when running the project locally with yarn dev, but it fails when building it with yarn build.

@emi420 emi420 self-assigned this Apr 22, 2024
@ramyaragupathy ramyaragupathy added this to the v4.7.3 milestone Apr 22, 2024
@emi420
Copy link
Collaborator Author

emi420 commented Apr 22, 2024

Update: it seems to be working with NPM but not with Yarn.

@emi420
Copy link
Collaborator Author

emi420 commented Apr 22, 2024

It's working when re-installing packages and using Node 18, like in the following branch:

https://github.com/hotosm/tasking-manager/tree/fix/liveMonitoringViewMap

Note: I had to set up an env variable to make the build work

export NODE_OPTIONS=--openssl-legacy-provider

@ramyaragupathy ramyaragupathy modified the milestones: v4.7.3, v4.7.2 Apr 23, 2024
@ramyaragupathy ramyaragupathy added data-quality Issues related to data quality and validation workflow hot tools integration Track tickets related to integrating HOT tools with TM priority: high ui/ux 👥 status: in progress labels May 1, 2024
@ramyaragupathy
Copy link
Member

fixed through #6401

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data-quality Issues related to data quality and validation workflow hot tools integration Track tickets related to integrating HOT tools with TM priority: high status: done type: bug ui/ux 👥
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants