-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
fix: use Lead Style from MP tick import instead of Style #1259
fix: use Lead Style from MP tick import instead of Style #1259
Conversation
Should we also coerce imported fields from MP into the set of possible values defined in OpenBeta/openbeta-graphql#444? That could also be a separate PR, but it is necessary in order to make the change to allowable types |
8b3c22d
to
9826bc3
Compare
Update: I allowed null for both |
9826bc3
to
010ed46
Compare
can you also increase the timeout to 180000 (3 mins)? |
010ed46
to
da987e5
Compare
The issue of null vs 'N/A'...etc should be coordinated among these 3 PRs:
Probably best discussed with mouth words if we meet this week. |
da987e5
to
7d12e43
Compare
* convert 'Fell/Hung' to 'Attempt' since thats what OB uses * add .tool-versions to gitignore for anyone using asdf * somewhat complicated logic for other edge cases * references md document in openbeta-graphql for ease of understanding the logic
7d12e43
to
4ccfb95
Compare
name: Pull request
about: Create a pull request
title: 'correctly import attemptStyle from MP tick import'
labels: ''
assignees: ''
What type of PR is this?(check all applicable)
Description
When importing ticks from Mountain Project, the
attemptStyle
field was being populated with theStyle
field from MP. It should use theLead Style
field instead.Related Issues
Issue #
The issue was created in openbeta-graphql, but the code is in open-tacos.
OpenBeta/openbeta-graphql#424
What this PR achieves
When converting a MPTick to a Tick object, set
attemptStyle
on Tick to be the value fromLead Style
on MPTick (if present).Notes
I don't see an obvious way to write tests for this. everything in tests/ticks.ts mocks out Tick objects after the conversion from MPTick has already happened, so a new test would probably have to be more of an end-to-end tests.
Below screenshot shows imported ticks locally, and the attemptType fields being populated with correct values.
