mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 14:11:34 +03:00
638fc62601
--- <details open="true"><summary>Generated summary (powered by <a href="https://app.graphite.dev">Graphite</a>)</summary> > ## TL;DR > This pull request adds a new migration file, a new model, and new modules related to runtime settings. It also introduces a new `Runtime` service that allows getting, setting, and updating runtime configurations. > > ## What changed > - Added a new migration file `migration.sql` that creates a table called `application_settings` with columns `key` and `value`. > - Added a new model `ApplicationSetting` with properties `key` and `value`. > - Added a new module `RuntimeSettingModule` that exports the `Runtime` service. > - Added a new service `Runtime` that provides methods for getting, setting, and updating runtime configurations. > - Modified the `app.module.ts` file to import the `RuntimeSettingModule`. > - Modified the `index.ts` file in the `fundamentals` directory to export the `Runtime` service. > - Added a new file `def.ts` in the `runtime` directory that defines the runtime configurations and provides a default implementation. > - Added a new file `service.ts` in the `runtime` directory that implements the `Runtime` service. > > ## How to test > 1. Run the migration script to create the `application_settings` table. > 2. Use the `Runtime` service to get, set, and update runtime configurations. > 3. Verify that the runtime configurations are stored correctly in the database and can be retrieved and modified using the `Runtime` service. > > ## Why make this change > This change introduces a new feature related to runtime settings. The `Runtime` service allows the application to dynamically manage and modify runtime configurations without requiring a restart. This provides flexibility and allows for easier customization and configuration of the application. </details> |
||
---|---|---|
.. | ||
20230425035217_init | ||
20230621052642_next_auth_integrate | ||
20230628074203_workspace | ||
20230705025556_workspace_id_fkey | ||
20230706065816_workspace_subpage | ||
20230706090316_change_avatar_url_field_name | ||
20230709091238_fix_blob_types | ||
20230713022301_update_manager | ||
20230714065216_snapshot_id | ||
20230717084417_remove_update_fkey | ||
20230822071646_add_new_features_waiting_list | ||
20230824091506_euser_email_is_not_nullable | ||
20230906100042_user_feature_gates | ||
20231009081826_updates_manager | ||
20231018074747_payment | ||
20231019094615_add_inovice_link | ||
20231024095005_updates_pkey | ||
20231027090128_data_migration | ||
20231030104009_user_features | ||
20231103080802_permission | ||
20231121033532_history | ||
20231124091123_soft_delete_opt_blobs | ||
20240103092238_add_workspace_features | ||
20240228065558_new_auth | ||
20240313033631_user_registered_flag | ||
20240319104623_user_subscriptions | ||
20240321065017_ai_prompts | ||
20240325125057_ai_sessions | ||
20240402100608_ai_prompt_session_metadata | ||
20240506051856_add_user_and_features_index | ||
20240520055805_runtime_setting | ||
20240521100307_add_copilot_cost | ||
20240527095524_fix_prompt_schema | ||
migration_lock.toml |