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

politeiawww: Refactor config for rewrite. #1536

Merged
merged 10 commits into from
Oct 12, 2021
Merged

politeiawww: Refactor config for rewrite. #1536

merged 10 commits into from
Oct 12, 2021

Conversation

lukebp
Copy link
Member

@lukebp lukebp commented Oct 11, 2021

This refactors the politeiawww config to prep it for the user layer
rewrite. It makes the following changes:

  • Moves all code for parsing and verifying the config settings into the
    config package.

  • Separates out the config settings that are for legacy API into a
    LegacyConfig struct. The LegacyConfig struct is embedded onto the
    standard Config struct so that it remains compatible with the legacy
    code while still differentiating between deprecated and non-depreacted
    settings. The LegacyConfig will be deleted in the future.

  • Refactors all config parsing and validation code in order to clean it
    up.

This refactors the politeiawww config to prep it for the user layer
rewrite. It makes the following changes:

- Moves all code for parsing and verifying the config settings into the
  `config` package.

- Separates out the config settings that are for legacy API into a
  `LegacyConfig` struct. The `LegacyConfig` struct is embedded onto the
  standard `Config` struct so that it remains compatible with the legacy
  code while still differentiating between deprecated and non-depreacted
  settings. The `LegacyConfig` will be deleted in the future.

- Refactors all config parsing and validation code in order to clean it
  up.
@lukebp lukebp changed the title [WIP] politeiawww: Refactor config for rewrite. politeiawww: Refactor config for rewrite. Oct 12, 2021
@lukebp lukebp merged commit 7eb4618 into decred:master Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants