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

Begin config migration #1123

Merged
merged 5 commits into from
Feb 20, 2025
Merged

Begin config migration #1123

merged 5 commits into from
Feb 20, 2025

Conversation

Jake-Shadle
Copy link
Collaborator

  • Adds DynamicConfig as a field of Config
  • Moves id and version to DynamicConfig
  • Change phoenix and k8s to only take the fields they actually need instead of an entire config
  • Change admin to only take in a <C: Serialize> as it only cares about dumping the config as JSON

Part of #1117

This doesn't compile so makes workspace level changes annoying to check
This isn't used anywhere
@Jake-Shadle Jake-Shadle enabled auto-merge (squash) February 19, 2025 14:33
@quilkin-bot
Copy link
Collaborator

Build Succeeded 🥳

Build Id: 8786dff1-433f-435a-835b-cf14196842ee

The following development images have been built, and will exist for the next 30 days:

To build this version:

git fetch [email protected]:googleforgames/quilkin.git pull/1123/head:pr_1123 && git checkout pr_1123
cargo build

}

#[cfg(test)]
impl<'de> Deserialize<'de> for Config {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason for the manual impl over a derive?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because the dynamic config will require manual deserialization so just getting it out of the way now.

Comment on lines +741 to +745
dyn_cfg: DynamicConfig {
id: default_id(),
version: Version::default(),
typemap: default_typemap(),
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason DynamicConfig doesn't impl default?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not really, will probably add it eventually.

@Jake-Shadle Jake-Shadle merged commit 2272c27 into main Feb 20, 2025
12 checks passed
@Jake-Shadle Jake-Shadle deleted the specialized-cfg branch February 20, 2025 09:57
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.

3 participants