Skip to content

front: map: factorize sources #11172

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

Merged
merged 3 commits into from
Mar 24, 2025
Merged

front: map: factorize sources #11172

merged 3 commits into from
Mar 24, 2025

Conversation

Tristramg
Copy link
Contributor

@Tristramg Tristramg commented Mar 17, 2025

This pull requests separates the map Sources from the Layers. This allows having only one data source if it is used in multiple layers.

There should be no visible change on the map (try adding layers such as OSM Tracks, plateforms, activate terrain…).

In the network console we should notice that there no longer are call multiple times to the same data source

Fixes #11106

@Tristramg Tristramg requested a review from a team as a code owner March 17, 2025 12:43
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Mar 17, 2025
@codecov-commenter
Copy link

codecov-commenter commented Mar 17, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.87%. Comparing base (cf2bc07) to head (12e50be).
Report is 50 commits behind head on dev.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #11172      +/-   ##
==========================================
- Coverage   80.88%   80.87%   -0.01%     
==========================================
  Files        1119     1120       +1     
  Lines      112833   112823      -10     
  Branches      759      759              
==========================================
- Hits        91261    91250      -11     
- Misses      21517    21518       +1     
  Partials       55       55              
Flag Coverage Δ
editoast 72.61% <ø> (-0.01%) ⬇️
front 89.90% <100.00%> (-0.01%) ⬇️
gateway 2.49% <ø> (ø)
osrdyne 2.53% <ø> (ø)
railjson_generator 87.58% <ø> (ø)
tests 88.82% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This avoids requesting multiple times the same data on the network

Signed-off-by: Tristram Gräbener <[email protected]>
Signed-off-by: Tristram Gräbener <[email protected]>
@emersion emersion self-requested a review March 18, 2025 16:39
@Synar
Copy link
Contributor

Synar commented Mar 19, 2025

Code lgtm ^^

@Synar Synar self-requested a review March 19, 2025 13:28
Copy link
Member

@emersion emersion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Tristramg Tristramg added this pull request to the merge queue Mar 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 24, 2025
@Tristramg Tristramg added this pull request to the merge queue Mar 24, 2025
Merged via the queue into dev with commit ec8aec7 Mar 24, 2025
27 checks passed
@Tristramg Tristramg deleted the tmg/map_sources branch March 24, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Map: refactor data sources and layers
4 participants