Workaround for FedMsg storypoint (str) values #239
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Attempting to actually use the storypoint sync'ing fails because the storypoint value must be a number, and we're (apparently) presenting it as a string.
The problem arises from the fact that, until we merge #207, there is substantial duplication in the source, and the change in #216 to introduce support for storypoint sync'ing covered only the repo-initialization path and not the FedMsg update path.
This PR introduces a stop-gap into the downstream issue code which attempts to force the story point value to be an
int
, and, if it fails, simply skips the update. Once the upstream/intermediate code is corrected to supply a numeric value (or no value), this conversion can be removed.This PR also tweaks the downstream code for setting Priority values and improves the logging of errors, and it adds some unit tests to detect these problems.
CC: @baijum