Skip to content

feat: settings enhancement, config manager#8

Merged
Maximus7474 merged 23 commits into
mainfrom
feat/settings-enhancement
May 4, 2026
Merged

feat: settings enhancement, config manager#8
Maximus7474 merged 23 commits into
mainfrom
feat/settings-enhancement

Conversation

@andreutu

@andreutu andreutu commented May 3, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR restructures all database repositories into singleton classes for easier object programming, allowing for method overriding and other OOP features. Admin methods have also been separated from the settings repository, now residing in their own.

Moreover, a new singleton manager has been introduced, ConfigManager. Despite its "manager" name, it acts more as a cache for settings. At the current point in development, it has an impact in caching values found in environment variables, optionally fetching them from the database:

  • Values used in core's webserver
  • Values used when launching the FXServer process

Tests

  • Tested in development mode
  • Passes typecheck
  • Builds & runs on Windows
  • Builds & runs on Linux

Additional Notes

N/A

@andreutu andreutu added this to the Early Access milestone May 3, 2026
@andreutu andreutu requested a review from Maximus7474 May 3, 2026 18:13
@andreutu andreutu self-assigned this May 3, 2026
@andreutu andreutu added the enhancement New feature or request label May 3, 2026

@Maximus7474 Maximus7474 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good at a first read through, will do another more thorough one tomorrow (04/05).
Just these two things atm that pop out.

Comment thread packages/database/src/repositories/api-tokens.ts Outdated
Comment thread packages/database/src/repositories/audit.ts Outdated
Comment thread apps/core/src/modules/config.manager.ts Outdated
@andreutu andreutu requested a review from Maximus7474 May 4, 2026 12:58

@Maximus7474 Maximus7474 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Maximus7474 Maximus7474 merged commit dd9d8c0 into main May 4, 2026
2 checks passed
@Maximus7474 Maximus7474 deleted the feat/settings-enhancement branch May 21, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants