Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(server): runtime setting support #5602

Draft
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

forehalo
Copy link
Member

@forehalo forehalo commented Jan 16, 2024


Generated summary (powered by Graphite)

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.

Copy link

graphite-app bot commented Jan 16, 2024

Your org has enabled the Graphite merge queue for merging into canary

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

You can enable merging using labels in your Graphite merge queue settings.

Copy link
Member Author

forehalo commented Jan 16, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @forehalo and the rest of your teammates on Graphite Graphite

Copy link

codecov bot commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 40.20%. Comparing base (931e996) to head (0f53b93).
Report is 3 commits behind head on canary.

Additional details and impacted files
@@             Coverage Diff             @@
##           canary    #5602       +/-   ##
===========================================
- Coverage   66.63%   40.20%   -26.43%     
===========================================
  Files         583      415      -168     
  Lines       27172     7775    -19397     
  Branches     2528     1292     -1236     
===========================================
- Hits        18105     3126    -14979     
+ Misses       8799     4422     -4377     
+ Partials      268      227       -41     
Flag Coverage Δ
server-test ?
unittest 40.20% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@forehalo forehalo marked this pull request as draft January 16, 2024 05:54
@forehalo forehalo force-pushed the 61/runtime-application-settings branch from 9956a2b to 04ffeae Compare February 7, 2024 02:57
@forehalo forehalo force-pushed the 61/runtime-application-settings branch from 04ffeae to 52e4b59 Compare March 14, 2024 01:44
@forehalo forehalo force-pushed the 61/runtime-application-settings branch from 52e4b59 to 8b63435 Compare April 24, 2024 11:34
@forehalo forehalo force-pushed the 61/runtime-application-settings branch 5 times, most recently from 495aee4 to 6676f03 Compare May 11, 2024 12:16
@github-actions github-actions bot added test Related to test cases app:core labels May 11, 2024
@forehalo forehalo force-pushed the 61/runtime-application-settings branch from 6676f03 to 0f53b93 Compare May 12, 2024 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app:core app:server test Related to test cases
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

None yet

1 participant