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

New crag, Edit crag basics #179

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

New crag, Edit crag basics #179

wants to merge 9 commits into from

Conversation

salamca
Copy link
Contributor

@salamca salamca commented Nov 7, 2024

Update crag create and edit input dtos.

Multiple routes update mutation was mutating all routes in parallel which posed a problem with changing position for a bunch of routes. Updates are now processed seqeuentially and in order.

Added merge routes mutation. Although this could also be done through moveToSector mutation, another mutation probably makes things clearer. Also some unneeded input fields can now be omitted.

Added mutation for moving multiple routes to a sector. This could also be done with edit multiple routes mutation but then the moved routes would be positioned into another sector somewhat randomly (because position is sectorwise not crag wise). New mutation also takes care of this by always placing the moved routes at the end of the target sector.

test with plezanje-net/next-web#62

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.

1 participant