Skip to content

Revert breaking change in enum deserialization#1541

Closed
PtrTeixeira wants to merge 1 commit into
masterfrom
deploy-resource-config
Closed

Revert breaking change in enum deserialization#1541
PtrTeixeira wants to merge 1 commit into
masterfrom
deploy-resource-config

Conversation

@PtrTeixeira
Copy link
Copy Markdown
Contributor

There appears to have been a change right around Dropwizard 1.0
in how enums are deserialized; my guess is that somehow @JsonCreator
cascades and prevents the FuzzyEnumModule from being applied properly,
but I'm not really sure. The result was that SingularityContainerType
wasn't accepting lowercase mesos, docker as valid values, which was
a breaking change from before - and in particular, prevented creating
deploys from the UI.

See also dropwizard/dropwizard#1985, which is kind-of related, I think

/cc @ssalinas

There appears to have been a change right around Dropwizard 1.0
in how enums are deserialized; my guess is that somehow `@JsonCreator`
cascades and prevents the `FuzzyEnumModule` from being applied properly,
but I'm not really sure. The result was that `SingularityContainerType`
wasn't accepting lowercase `mesos`, `docker` as valid values, which was
a breaking change from before - and in particular, prevented creating
deploys from the UI.
@ssalinas
Copy link
Copy Markdown
Contributor

@PtrTeixeira I can't seem to reproduce this one. I tried the same fields via ui in our staging setup and a lower case docker was correctly read as the SingularityContainerType.DOCKER. Same with a number of other fields. Going to close this one for the moment, if you have more specific examples of failures feel free to reopen

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