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 default group entity #873

Merged
merged 2 commits into from
May 20, 2019
Merged

Fix default group entity #873

merged 2 commits into from
May 20, 2019

Conversation

Morendil
Copy link
Contributor

Bug fixes

  • Fix incomplete initialization of group entities provided by default when not supplied in YAML tests

Fixes #849

@Morendil Morendil requested a review from sandcha May 13, 2019 11:15
Copy link
Collaborator

@sandcha sandcha left a comment

Choose a reason for hiding this comment

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

Thank you @Morendil for this PR! It fixes the declared issue 🙂

@@ -243,7 +243,8 @@ def add_default_group_entity(self, persons_ids, entity):
persons_count = len(persons_ids)
self.entity_ids[entity.plural] = persons_ids
self.entity_counts[entity.plural] = persons_count
self.memberships[entity.plural] = np.arange(0, persons_count - 1, dtype = np.int32)
self.memberships[entity.plural] = np.arange(0, persons_count, dtype = np.int32)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good catch!

@Morendil Morendil force-pushed the fix-default-groups branch from 32851d1 to 563739f Compare May 20, 2019 13:35
@Morendil Morendil merged commit d47f65a into master May 20, 2019
@Morendil Morendil deleted the fix-default-groups branch May 20, 2019 13:44
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.

Non helping ValueError on missing group entity in test case
2 participants