Skip to content

Optimize layers API endpoints#1127

Open
Chatewgne wants to merge 18 commits intodevelopfrom
optim_split_endpoints
Open

Optimize layers API endpoints#1127
Chatewgne wants to merge 18 commits intodevelopfrom
optim_split_endpoints

Conversation

@Chatewgne
Copy link
Copy Markdown
Member

@Chatewgne Chatewgne commented Feb 26, 2026

Split /api/geolayer/view/{view_slug}/ into 4 endpoints :

  • /api/geolayer/view/{view_slug}/
  • /api/geolayer/view/{view_slug}/layersTree/layer/{id}
  • /api/geolayer/view/{view_slug}/customStyle/layers/{id}
  • /api/geolayer/view/{view_slug}/customStyle/source/{id}

⚠️ Breaking changes :

  • customStyle data has been moved from /api/geolayer/view/{view_slug}/ to /api/geolayer/view/{view_slug}/customStyle/layer/{id} and /api/geolayer/view/{view_slug}/customStyle/source/{id}
  • layers data has been simplified in /api/geolayer/view/{view_slug}/ and the full content has been moved to /api/geolayer/view/{view_slug}/layersTree/layer/{id}

@Chatewgne Chatewgne changed the title Optim split endpoints Optimize layers API endpoints Feb 26, 2026
@Chatewgne Chatewgne changed the base branch from master to develop February 26, 2026 16:18
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.44%. Comparing base (8af4689) to head (72ce90c).
⚠️ Report is 62 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1127      +/-   ##
===========================================
+ Coverage    96.18%   96.44%   +0.25%     
===========================================
  Files           86       87       +1     
  Lines         4222     4441     +219     
===========================================
+ Hits          4061     4283     +222     
+ Misses         161      158       -3     
Flag Coverage Δ
backend-unittests 96.44% <100.00%> (+0.25%) ⬆️

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.

@Chatewgne Chatewgne added the enhancement New feature or request label Feb 27, 2026
@Chatewgne Chatewgne marked this pull request as ready for review February 27, 2026 13:30
@Bo-Duke
Copy link
Copy Markdown
Member

Bo-Duke commented Mar 12, 2026

@Chatewgne I updated the front submodule to the branch in visu-front that handles the slip endpoints without breaking everything.

Currently it sends all the requests all at once at load so it's good enough to test but not ready for a merge yet. Terralego/visu-front#225

@Bo-Duke
Copy link
Copy Markdown
Member

Bo-Duke commented Apr 30, 2026

@Chatewgne I did a back-end change! 😱😱😱😱

I just needed the variables in the split endpoint, but I don't know if that's the way to do it or if tests are needed

(It did work well enough for my tests though)

@Bo-Duke
Copy link
Copy Markdown
Member

Bo-Duke commented May 4, 2026

Added optim_split_endpoints to release.yml to test deployments, branch must not be merged with this change still here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants