girishramnani / polly

A social poll application
MIT License
45 stars 5 forks source link

Abstracted Storage Mechanism and Updated PollsManager #7

Closed Gaurav1924 closed 1 month ago

Gaurav1924 commented 1 month ago

-Created a new Polly.StorageBehaviour module to define a behavior for storage operations.

-Implemented a new Polly.ETSStorage module that conforms to the Polly.StorageBehaviour. This module handles all storage operations using ETS tables

-Refactored Polly.PollsManager to use the Polly.StorageBehaviour for all storage-related operations.

-Adjusted test suite(test/polly/polls_manager_test.ex) to validate the behavior abstraction, ensuring that Polly.PollsManager interacts correctly with the configured storage module.

Gaurav1924 commented 1 month ago

Found get_poll_votes test suite not to be working right, which can be addressed better in a new Pull request.