Skip to content

Fix error submitting run to empty imported fleet#3661

Merged
jvstme merged 1 commit intomasterfrom
issue_3660_fix_error_when_exported_fleet_empty
Mar 13, 2026
Merged

Fix error submitting run to empty imported fleet#3661
jvstme merged 1 commit intomasterfrom
issue_3660_fix_error_when_exported_fleet_empty

Conversation

@jvstme
Copy link
Collaborator

@jvstme jvstme commented Mar 12, 2026

Fixes #3660

Avoid fleet_model_to_fleet(), since it requires
the fleet project to be loaded from the database,
which is not always the case for imported fleets.
Now, fleet_model_to_fleet() is only used in
API-related services.

Also stop loading the fleet project model where it
was previously necessary only for the redundant
fleet_model_to_fleet() call.

Avoid `fleet_model_to_fleet()`, since it requires
the fleet project to be loaded from the database,
which is not always the case for imported fleets.
Now, `fleet_model_to_fleet()` is only used in
API-related services.

Also stop loading the fleet project model where it
was previously necessary only for the redundant
`fleet_model_to_fleet()` call.
@jvstme jvstme requested a review from r4victor March 12, 2026 20:43
@jvstme jvstme merged commit cd27344 into master Mar 13, 2026
28 checks passed
@jvstme jvstme deleted the issue_3660_fix_error_when_exported_fleet_empty branch March 13, 2026 09:13
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.

[Bug]: Error getting offers with empty imported fleet

2 participants