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

fix(api): remove JsonIgnore annotations to fix Pipeline deserialization regression #1042

Merged
merged 1 commit into from
Jul 16, 2021

Conversation

mochacat
Copy link
Contributor

This deserialization regression was introduced when I migrated the the @jsonIgnore annotations for the getter/setters in the front50-core Pipeline class to @JsonIgnoreProperties on the PipelineMixin class here: #1035.

I got reports that pipelines were still producing errors due to missing fields and that the fields that we were supposed to ignore actually needed to be serialized/deserialized (ie name, application, etc). I checked out the previous code prior to the front50-api package creation PR and noticed that the @jsonIgnore field was masking behavior and wasn't actually ignoring those fields for serialization/deserialization.

Introducing @JsonIgnoreProperties to the PipelineMixin class enforced the behavior of ignoring these fields, so I need to revert this back to the old behavior.

Unfortunately I wasn't able to determine why @JsonIgnore wasn't working prior to that PR with the time I had.

@ajordens ajordens merged commit e23d323 into spinnaker:master Jul 16, 2021
pemmasanikrishna pushed a commit to pemmasanikrishna/front50 that referenced this pull request Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants