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

[ESSI-1288] In AllinsonFlex, ensure empty properties return a Hash #292

Closed
wants to merge 1 commit into from

Conversation

aploshay
Copy link
Contributor

When a work class was configured to use AllinsonFlex with no properties configured, the resultant DynamicSchema object had a nil value, instead of an empty Hash, in the properties field of the schema attribute (serialized JSON). Granted, this is an odd situation you probably wouldn't want to create -- but other parts of the stack assume a valid Hash value is present there, and break. This includes the issue prompting the ESSI-1288 story, the form to create new work not rendering. This monkeypatches that issue.

We may not actually want to merge this PR, as we can also simply avoid the situation until such time as it is fixed in AllinsonFlex.

@aploshay
Copy link
Contributor Author

Raised AllinsonFlex issue here:
samvera-labs/allinson_flex#56

@aploshay aploshay requested a review from randalldfloyd April 16, 2021 00:05
@aploshay
Copy link
Contributor Author

Closing as we can just avoid this, and it can be fixed directly in AllinsonFlex later.

@aploshay aploshay closed this Apr 29, 2021
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.

1 participant