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

Rapid Integration #4934

Merged
merged 3 commits into from
Mar 2, 2022
Merged

Rapid Integration #4934

merged 3 commits into from
Mar 2, 2022

Conversation

zlavergne
Copy link

This is the long awaited RapiD integration. This PR embeds RapiD the same way iD is currently embedded in the TM.

@sonarcloud
Copy link

sonarcloud bot commented Nov 19, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 6 Code Smells

No Coverage information No Coverage information
1.0% 1.0% Duplication

@zlavergne zlavergne changed the title Rapid Integration WIP: Rapid Integration Nov 22, 2021
@sonarcloud
Copy link

sonarcloud bot commented Dec 21, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
1.0% 1.0% Duplication

@zlavergne zlavergne changed the title WIP: Rapid Integration Rapid Integration Dec 21, 2021
@zlavergne
Copy link
Author

This is now ready to go!

@HelNershingThapa
Copy link
Contributor

Hi, @zlavergne I'm trying to test the integration locally and the icons don't seem to appear.
icon-missing
I did run the 'update-static' script. Did I miss something?

@Aadesh-Baral
Copy link
Contributor

@HelNershingThapa This seems be an issue with the RapiD release build tag on ./frontend/package.json . Changing "RapiD": "facebookincubator/rapid#rapid-v1.1.8-TM" to "RapiD": "facebookincubator/rapid#rapid-v1.1.8_tm" loaded the icons. @zlavergne can you please verify it?

@zlavergne
Copy link
Author

@Aadesh-Baral that's correct. We had an issue with the previous tag so we had to remove the old one and create a new reference. Simply changing the tag in the package.json will fix the issue.

@zlavergne
Copy link
Author

@HelNershingThapa @Aadesh-Baral Let me know if you want me to update the PR to reflect this. I thought I had updated it after making the changes upstream but it seems I forgot.

@Aadesh-Baral
Copy link
Contributor

@zlavergne We tried deploying a development instance of this integration but ran into some CORS issues on our server (but it was all good on 127.0.0.1). I think we need to verify if all of the tasking managers instances are added to allowed origins. Can you please verify that? Other than that I think we are good to go.

@zlavergne
Copy link
Author

Yes, you need to change localhost to 127.0.0.1 for local dev. We added hotosm.org to our allowed domains a while ago for the Nesta experiment. You shouldn't have CORS issues when deploying to a hotosm.org domain

@zlavergne
Copy link
Author

I will work to get all of the domains listed in instances section of the README added to our allowlist. I'll keep you updated @Aadesh-Baral

@Aadesh-Baral
Copy link
Contributor

Ok thanks, @zlavergne. It would also be great if you could update PR with an updated released tag.

@sonarcloud
Copy link

sonarcloud bot commented Mar 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

No Coverage information No Coverage information
1.0% 1.0% Duplication

@zlavergne
Copy link
Author

@Aadesh-Baral The branch has been updated with the correct tag. I've also submitted an internal review to update the allowlist. I'll let you know when it's productionized.

@zlavergne
Copy link
Author

zlavergne commented Mar 1, 2022

@Aadesh-Baral My internal changes have landed. All of the domains listed in the Instances section of the README should be able to make requests without issue 🙂

@Aadesh-Baral
Copy link
Contributor

Great work @zlavergne !! Planning to merge this today.

@Aadesh-Baral Aadesh-Baral merged commit fb77dae into hotosm:develop Mar 2, 2022
@dakotabenjamin dakotabenjamin mentioned this pull request Apr 5, 2022
@Aadesh-Baral Aadesh-Baral linked an issue May 8, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Deployed to production
Development

Successfully merging this pull request may close these issues.

Improve integration with AI-assisted mapping
4 participants