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 tests #38

Merged
merged 1 commit into from
Sep 6, 2024
Merged

Fix tests #38

merged 1 commit into from
Sep 6, 2024

Conversation

Antonio171003
Copy link
Contributor

@Antonio171003 Antonio171003 commented Sep 6, 2024

Fix the tests so they don't fail if we send a null in an optional parameter (for create and update). Changed the column to which the null value is sent. The previous column (email) isn't optional, so it was replaced by last_name, which is an optional column.

For updates, it is also necessary to send the null value as a string("null").

client.createItem("users", request).futureValue
val responseMetadata1 =
client.getTableMetadata(usersSettings.tableName, List("name", "ASC"), List(0, 9), "{}").futureValue
val id = responseMetadata1.head("id")

val json = """{"email":null}"""
val json = """{"last_name":"null"}"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create a ticket, we need to find a way to deal with proper null values instead of the string "null"

@AlexITC AlexITC merged commit f95c926 into wiringbits:main Sep 6, 2024
1 check passed
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