Skip to content

Refactor ElectionDescription to Manifest#337

Merged
keithrfung merged 5 commits intomainfrom
fix/refactor-election-description
Mar 8, 2021
Merged

Refactor ElectionDescription to Manifest#337
keithrfung merged 5 commits intomainfrom
fix/refactor-election-description

Conversation

@keithrfung
Copy link
Copy Markdown
Contributor

🚨 Please review the guidelines for contributing to this repository.

Issue

Fixes #327

Description

  • Refactor ElectionDescription and InternalElectionDescription to Manifest and Internal Manifest respectively
  • Move the existing files to a manifest.py and the associated tests to test_manifest.py
  • Updated things that referenced election when it was truly a manifest
  • Update documentation
  • Removed use of description_hash instead of manifest_hash
  • Removed use of meta_data for internal_manifest

Testing

Existing test suite. Tests moved but not changed beyond naming

@keithrfung keithrfung force-pushed the fix/refactor-election-description branch from dac01eb to b3620a6 Compare March 4, 2021 23:05
AddressXception
AddressXception previously approved these changes Mar 5, 2021
Copy link
Copy Markdown
Contributor

@AddressXception AddressXception left a comment

Choose a reason for hiding this comment

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

this reads much better

Comment thread src/electionguard/manifest.py Outdated
- Move the files to a manifest file
- Keep election as just context and constants
- Add manifest tests
- Refactor all the old tests. 
- Update the usage of words from description to manifest
@keithrfung keithrfung force-pushed the fix/refactor-election-description branch from 780f406 to 2e5893c Compare March 8, 2021 13:53
@keithrfung keithrfung merged commit e195d3d into main Mar 8, 2021
@keithrfung keithrfung deleted the fix/refactor-election-description branch March 8, 2021 15:26
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.

Refactor ElectionDescription to Manifest

2 participants