Skip to content

Bulk adding new routes - ordering of routes gets scrambled and requires reordering#453

Merged
vnugent merged 4 commits intoOpenBeta:developfrom
greghart:sorted-climb-inputs
Mar 18, 2025
Merged

Bulk adding new routes - ordering of routes gets scrambled and requires reordering#453
vnugent merged 4 commits intoOpenBeta:developfrom
greghart:sorted-climb-inputs

Conversation

@greghart
Copy link
Copy Markdown
Contributor

@greghart greghart commented Feb 28, 2025

  • We have a test coverage for adding climbs, but also add test for how new climb gets ordered with existing climbs

name: Pull request
about: Create a pull request
title: Bulk adding new routes - ordering of routes gets scrambled and requires reordering
labels: bug, feature ?
assignees: Greg Hart


What type of PR is this?(check all applicable)

  • refactor
  • feature
  • bug fix
  • documentation
  • optimization
  • other

Description

Per related issue, when adding multiple climbs, we don't persist the ordering

Related Issues

Issue #1255

What this PR achieves

This PR changes addOrUpdateClimbs to persist the order of incoming arrays of climbs using left_right_index (when not already given0.
It also formalizes whether new climbs should come after or before existing climbs (when left_right_index is not given) -- currently it changes this so new climbs come after instead of before.

Screenshots, recordings

image

Notes

@greghart greghart force-pushed the sorted-climb-inputs branch from f53556f to 0fe937f Compare February 28, 2025 07:24
Fix issue that popped up from coverage (new should be +1)
@greghart greghart force-pushed the sorted-climb-inputs branch from 541397d to 5406188 Compare February 28, 2025 18:38
Comment thread src/model/MutableClimbDataSource.ts Outdated
@greghart greghart requested a review from vnugent March 5, 2025 16:09
@vnugent vnugent merged commit 8a1da5e into OpenBeta:develop Mar 18, 2025
@vnugent
Copy link
Copy Markdown
Contributor

vnugent commented Mar 18, 2025

@all-contributors add @greghart for code & ideas

@allcontributors
Copy link
Copy Markdown
Contributor

@vnugent

I've put up a pull request to add @greghart! 🎉

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.

2 participants