Skip to content

Conversation

@sunshowers
Copy link
Contributor

Created using spr 1.3.6-beta.1
@sunshowers sunshowers requested a review from jmpesp August 28, 2025 19:58
Created using spr 1.3.6-beta.1

use super::model::*;
use anyhow::{anyhow, bail, Result};
use crucible_agent_types::region::*;
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd have preferred to keep this as "model", as not all the types in there reference regions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, so I didn't want to call it crucible_agent_types::model because types and model are redundant with each other. What if I move SmfProperty into its own smf module?

Copy link
Contributor

Choose a reason for hiding this comment

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

that works :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created snapshot and smf modules.

// what will be used by other zones. In the future this could be a
// parameter that comes along with the region POST parameters.
properties.push(crate::model::SmfProperty {
properties.push(region::SmfProperty {
Copy link
Contributor

Choose a reason for hiding this comment

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

for example, SmfProperty has nothing to do with regions

Created using spr 1.3.6-beta.1
@sunshowers sunshowers requested a review from jmpesp August 29, 2025 18:43
@sunshowers sunshowers merged commit 7463797 into main Sep 8, 2025
17 checks passed
@sunshowers sunshowers deleted the sunshowers/spr/crucible-agent-migrate-to-api-trait branch September 8, 2025 20:42
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