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

Refactor entity generation #626

Merged
merged 1 commit into from Sep 14, 2017
Merged

Conversation

andig
Copy link
Contributor

@andig andig commented Sep 12, 2017

This PR is a bigger rewrite of the various methods for creating entities. The current code had become quite complex with creation of entities split across various places and coupled with the request context. That made it hard to use from custom scripts.

With this PR all entity generation is moved into an EntityFactory. The use of entity name instead of UUID (in case of a single, public entity of that name) is now possible throughout the API.

Additional tests have been added to verify exception error messages for empty uuids/ non-existing uuids/ non-existing public entity names.

@andig andig merged commit e2469cb into volkszaehler:master Sep 14, 2017
@andig andig deleted the entityfactory branch September 14, 2017 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant