-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: support iteration fields #95
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good, I can take care of the test conflicts
I rebased your PR and removed updated fixtures for now. When I run
I get an error
Can you check that please? |
could you check the failing tests @blombard? Do run a single recorded test you can e.g. do
There have been a few changes since, it might be enough to re-record |
Hi @gr2m, sorry for letting this fall into limbo. Tests are now successful on my side.
|
# Conflicts: # test/snapshots/recorded.test.js.snap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just have one nit, but we can address it in a separate pull request to unblock folks who wait for the iteration field support
@@ -129,6 +129,28 @@ export function projectFieldsNodesToFieldsMap(state, project, nodes) { | |||
); | |||
} | |||
|
|||
// If the field is of type "Iteration", then the `configuration` property will be set. | |||
if (node.configuration) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we maybe should check for node.configuration?.iterations
to be truthy? Just in case the .configuration
will be used by other fields in future?
@all-contributors please add @blombard for code and test |
I've put up a pull request to add @blombard! 🎉 |
🎉 This PR is included in version 5.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Following the issue #94 I created, here is the start of solution.
I'm not used to Typescript so sorry if I make rookie mistakes. :)
Closes #94