This repository has been archived by the owner on Jun 30, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration/settings endpoints (#515)
* Create Setting table/Schema * Add Setting overlay module * Add Setting.all() * Add initial seeder for settings * Add position * Finalize setting seeds * Skip input requirements when assume_yes is true * Add descriptions * Refactor Standalone and max_per_page settings * Refactor code to handle base_url and standalone settings properly * Create EWalletConfig sub app * Reorganize EWalletConfig and EWalletDB * Use EWalletConfig in all other sub apps * Refactor EWalletConfig to use a GenServer for setting registration * Update EWalletDB to use EWalletConfig GenServer * Fix most of the tests in wallet * Extract Settings loading out of Config * Update EWalletAPI To use EWalletConfig * Fix failing eWallet tests * Finally figured out how to fix all the tests with the Config GenServer… * Reorganize utils tests * Add tests for Setting module * Add config_test * Add type specs in Config * Add multi node test * Add SettingLoader tests * Remove unused alias * Cleanup * Remove multi node test for now * Fix seeds * Add setting validation and remove select type * Fix setting ordering * Fix minor issues * Fix Credo issue in insert_all_defaults * Fix dependencies out of place for emails * Move back validator functions not needed in EWalletConfig * Remove unique index on positions * Update LocalLedger to use EWalletConfig * Fix race condition * Move back Validator in ewallet_db * Update components.md * Add ConfigurationController * Add /configuration.update endpoint * Add result count in responses * Fix Credo offenses * Remove custom error * Handle keyword list properly for config_pid param * Update Swagger with Configuration endpoints * Fix and update open api spec (also convert to json)
- Loading branch information