Skip to content

Conversation

@EliuX
Copy link
Contributor

@EliuX EliuX commented Apr 24, 2020

This PR allows deleting optional ids by specifying null as value. Before that, this was not possible because a string was expected.
In addition, based on a request made by @enriquezrene , I allowed the UUID fields to match an empty string and before saving I matched in the on_create and on_update methods of the Cosmos DB repository whether an attribute was an empty text. If so, that value would be replaced by a null value.

@EliuX EliuX force-pushed the feature/allow-null-id-fields#107 branch from 8aca6cb to 32a80b4 Compare April 24, 2020 22:47
@EliuX EliuX self-assigned this Apr 25, 2020
@EliuX EliuX added bug Something isn't working enhancement New feature or request labels Apr 25, 2020
@EliuX EliuX added this to the basic product setup milestone Apr 25, 2020
@EliuX EliuX linked an issue Apr 25, 2020 that may be closed by this pull request
@EliuX EliuX merged commit 6ecac00 into master Apr 25, 2020
@EliuX EliuX deleted the feature/allow-null-id-fields#107 branch April 25, 2020 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow null as project type

3 participants