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

editor: forces reloading tiles after deleting data (related to #3323) #3492

Merged
merged 2 commits into from
Mar 10, 2023

Conversation

jacomyal
Copy link
Contributor

editor: forces reloading tiles after deleting data

This commit should partially solve issue #3323.
However, there appear to be some issue backend side, that could still make the item reappear in some tiles. This is being investigated.

Details:

  • Adds a fingerprint in the editor context, and a method to force regenerating this fingerprint
  • Propagates the fingerprint to the GeoJSONs module
  • Remounts sources in GeoJSONs on fingerprint updates
  • Fixes ConfirmModal not auto closing

This commit should partially solve issue #3323.
However, there appear to be some issue backend side, that could still
make the item reappear in some tiles. This is being investigated.

Details:
- Adds a fingerprint in the editor context, and a method to force
regenerating this fingerprint
- Propagates the fingerprint to the GeoJSONs module
- Remounts sources in GeoJSONs on fingerprint updates
@jacomyal jacomyal requested a review from a team as a code owner March 10, 2023 16:15
@codecov
Copy link

codecov bot commented Mar 10, 2023

Codecov Report

Merging #3492 (96b3482) into dev (f965f3a) will decrease coverage by 0.02%.
The diff coverage is 46.66%.

@@             Coverage Diff              @@
##                dev    #3492      +/-   ##
============================================
- Coverage     67.90%   67.88%   -0.02%     
  Complexity     1883     1883              
============================================
  Files           405      405              
  Lines         20077    20087      +10     
  Branches       1501     1501              
============================================
+ Hits          13633    13636       +3     
- Misses         5760     5767       +7     
  Partials        684      684              
Flag Coverage Δ
front 55.64% <46.66%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...c/common/BootstrapSNCF/ModalSNCF/ModalProvider.tsx 32.72% <ø> (-0.81%) ⬇️
...rc/common/BootstrapSNCF/ModalSNCF/ConfirmModal.tsx 32.07% <20.00%> (-4.89%) ⬇️
front/src/applications/editor/tools/types.ts 99.39% <100.00%> (+0.01%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants