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

Error updating case #51

Closed
npratley opened this issue Dec 4, 2017 · 1 comment
Closed

Error updating case #51

npratley opened this issue Dec 4, 2017 · 1 comment
Assignees
Milestone

Comments

@npratley
Copy link

npratley commented Dec 4, 2017

Have just noticed that in #50 I seem to have broken case creation. The test-case-create.py script fails with:

ko: 400/{"tableName":"case","type":"AttributeCheckingError","errors":[[{"name":"case.updatedAt","value":{"type":"JsonInputValue","value":null},"type":"UnknownAttributeError","message":"Unknown attribute case.updatedAt: {"type":"JsonInputValue","value":null}"},{"name":"case.caseId","value":{"type":"JsonInputValue","value":null},"type":"UnknownAttributeError","message":"Unknown attribute case.caseId: {"type":"JsonInputValue","value":null}"},{"name":"case.id","value":{"type":"JsonInputValue","value":null},"type":"UnknownAttributeError","message":"Unknown attribute case.id: {"type":"JsonInputValue","value":null}"},{"name":"case.createdAt","value":{"type":"JsonInputValue","value":null},"type":"UnknownAttributeError","message":"Unknown attribute case.createdAt: {"type":"JsonInputValue","value":null}"},{"name":"case.createdBy","value":{"type":"JsonInputValue","value":null},"type":"UnknownAttributeError","message":"Unknown attribute case.createdBy: {"type":"JsonInputValue","value":null}"},{"name":"case.updatedBy","value":{"type":"JsonInputValue","value":null},"type":"UnknownAttributeError","message":"Unknown attribute case.updatedBy: {"type":"JsonInputValue","value":null}"}]]}

Sorry @nadouani I didn't run the test scripts before submitting the change.

Rather than setting these attributes to None it may be best to only add the attributes if they exist in the 'json' parameter, or modify create_case to exclude them. I can fix that up.

@nadouani
Copy link
Contributor

nadouani commented Dec 5, 2017

No problem, I'll revert back the changes made on #50

@nadouani nadouani added this to the 1.4.0 milestone Dec 5, 2017
@nadouani nadouani self-assigned this Dec 5, 2017
@nadouani nadouani closed this as completed Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants