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

Update Rapid to v2 #6054

Merged
merged 21 commits into from
Dec 1, 2023
Merged

Conversation

tsmock
Copy link
Contributor

@tsmock tsmock commented Sep 8, 2023

  • Use URL hash params for Rapid settings
    • This reduces fragility going forward since we don't have to worry about internal Rapid changes as much
  • Use a CDN for Rapid script and data
    • This is set to a semver patch range for the Rapid version. This means that if there is a patch release, we don't have to update Rapid and do a release. It was not a semver minor version since there were some internal Rapid changes that broke some of the code that we were using.
  • Saves dom node to avoid recreating Rapid
    • Otherwise, switching between tasks can be tricky

I've tried to document everything.

@github-actions github-actions bot added scope: frontend dependencies Pull requests that update a dependency file javascript labels Sep 8, 2023
@tsmock tsmock force-pushed the chore/update-rapid branch from b703e6d to 186972f Compare September 8, 2023 15:42
@tsmock tsmock marked this pull request as ready for review September 11, 2023 15:03
@tsmock tsmock force-pushed the chore/update-rapid branch from 0a88b11 to 38d893b Compare October 16, 2023 12:41
@royallsilwallz
Copy link
Contributor

royallsilwallz commented Oct 20, 2023

Hey @tsmock, I've reviewed the PR and it seems to work perfectly fine. I think it is ready to merge.

Regarding the SonarCloud Code Analysis quality gate failure - the linter is showing warnings on the docker files.
I don't think this should block us from merging the code since we have manual build setup and the warning on docker files should not affect the build process.

Furthermore, @mahesh-naxa is working on fixing these errors as well in this PR.

CC @ramyaragupathy @manjitapandey @varun2948 @konishon

@tsmock tsmock force-pushed the chore/update-rapid branch from 645239f to b20d0e5 Compare November 13, 2023 14:28
@royallsilwallz
Copy link
Contributor

royallsilwallz commented Nov 23, 2023

Hey @tsmock, after your latest push last week, one of the test case is failing. Do you have time to look into it?

Bonkles and others added 20 commits November 27, 2023 09:22
Signed-off-by: Taylor Smock <[email protected]>
Signed-off-by: Taylor Smock <[email protected]>
Signed-off-by: Taylor Smock <[email protected]>
…es to perform imagery switching at startup time. Also, rewrite history change to use URLSearchParams to replace existing Bing Param, if any.
…ven though no custom imagery source was defined.
Signed-off-by: Taylor Smock <[email protected]>
Signed-off-by: Taylor Smock <[email protected]>
Also, import Rapid from CDN instead of bundling it with the TM.
We still have to bundle the Rapid CSS file -- initial try on
importing the CSS file from the CDN failed. If that is fixed,
we could use a semver query for the CDN version, and get minor
Rapid updates for "free".

Signed-off-by: Taylor Smock <[email protected]>
Signed-off-by: Taylor Smock <[email protected]>
… for some of those functions

Signed-off-by: Taylor Smock <[email protected]>
@tsmock tsmock force-pushed the chore/update-rapid branch from b20d0e5 to 5e32f43 Compare November 28, 2023 13:24
@tsmock tsmock force-pushed the chore/update-rapid branch from 5e32f43 to 4c5962e Compare November 28, 2023 19:56
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 28 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@ramyaragupathy ramyaragupathy merged commit c2558e1 into hotosm:develop Dec 1, 2023
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file scope: frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants