liquidvotingio / decidim-module-liquidvoting

GNU Affero General Public License v3.0
4 stars 0 forks source link

Move remaining ApiClient calls behind the Liquidvoting module #95

Closed davefrey closed 3 years ago

davefrey commented 3 years ago

In #48 we stepped up to using the Decidim::Liquidvoting module as a facade, a central place to get Liquidvoting things done. We moved the lv_state part of Decidim::Liquidvoting::ApiClient calls here.

To be consistent, to encapsulate all ApiClient calls, to wrap the vote count update with the api call, and to simplify doing Liquidvoting things, we should move those api calls (currently in controllers and commands) into the Liquidvoting module.