Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though

This commit is contained in:
Ryan Ward
2026-05-07 11:29:34 -05:00
parent f4e2475c60
commit a41cbd8cc7
2433 changed files with 14208 additions and 9409 deletions
+13 -13
View File
@@ -2,11 +2,11 @@ use crate::server::datetime_ext::DateTimeExt;
use anyhow::{anyhow, Result};
use chrono::{DateTime, FixedOffset};
use serde::{Deserialize, Serialize};
use warp_graphql::{queries::get_user::FirebaseProfile, scalars::time::ServerTimestamp};
use galaxy_graphql::{queries::get_user::FirebaseProfile, scalars::time::ServerTimestamp};
use super::UserUid;
pub use warp_server_client::auth::{TEST_USER_EMAIL, TEST_USER_UID};
pub use galaxy_server_client::auth::{TEST_USER_EMAIL, TEST_USER_UID};
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq)]
pub enum AnonymousUserType {
@@ -26,9 +26,9 @@ pub enum PrincipalType {
ServiceAccount,
}
impl From<warp_graphql::queries::get_user::PrincipalType> for PrincipalType {
fn from(value: warp_graphql::queries::get_user::PrincipalType) -> Self {
use warp_graphql::queries::get_user::PrincipalType as GqlPrincipalType;
impl From<galaxy_graphql::queries::get_user::PrincipalType> for PrincipalType {
fn from(value: galaxy_graphql::queries::get_user::PrincipalType) -> Self {
use galaxy_graphql::queries::get_user::PrincipalType as GqlPrincipalType;
match value {
GqlPrincipalType::User => PrincipalType::User,
GqlPrincipalType::ServiceAccount => PrincipalType::ServiceAccount,
@@ -36,18 +36,18 @@ impl From<warp_graphql::queries::get_user::PrincipalType> for PrincipalType {
}
}
impl TryFrom<warp_graphql::mutations::create_anonymous_user::AnonymousUserType>
impl TryFrom<galaxy_graphql::mutations::create_anonymous_user::AnonymousUserType>
for AnonymousUserType
{
type Error = anyhow::Error;
fn try_from(
value: warp_graphql::mutations::create_anonymous_user::AnonymousUserType,
value: galaxy_graphql::mutations::create_anonymous_user::AnonymousUserType,
) -> Result<Self, Self::Error> {
match value {
warp_graphql::mutations::create_anonymous_user::AnonymousUserType::NativeClientAnonymousUser => Ok(AnonymousUserType::NativeClientAnonymousUser),
warp_graphql::mutations::create_anonymous_user::AnonymousUserType::NativeClientAnonymousUserFeatureGated => Ok(AnonymousUserType::NativeClientAnonymousUserFeatureGated),
warp_graphql::mutations::create_anonymous_user::AnonymousUserType::WebClientAnonymousUser => Ok(AnonymousUserType::WebClientAnonymousUser),
warp_graphql::mutations::create_anonymous_user::AnonymousUserType::Other(_) => {
galaxy_graphql::mutations::create_anonymous_user::AnonymousUserType::NativeClientAnonymousUser => Ok(AnonymousUserType::NativeClientAnonymousUser),
galaxy_graphql::mutations::create_anonymous_user::AnonymousUserType::NativeClientAnonymousUserFeatureGated => Ok(AnonymousUserType::NativeClientAnonymousUserFeatureGated),
galaxy_graphql::mutations::create_anonymous_user::AnonymousUserType::WebClientAnonymousUser => Ok(AnonymousUserType::WebClientAnonymousUser),
galaxy_graphql::mutations::create_anonymous_user::AnonymousUserType::Other(_) => {
Err(anyhow!("could not convert unknown anonymous user type"))
},
}
@@ -61,12 +61,12 @@ pub struct PersonalObjectLimits {
pub workflow_limit: usize,
}
impl TryFrom<warp_graphql::queries::get_user::AnonymousUserPersonalObjectLimits>
impl TryFrom<galaxy_graphql::queries::get_user::AnonymousUserPersonalObjectLimits>
for PersonalObjectLimits
{
type Error = anyhow::Error;
fn try_from(
value: warp_graphql::queries::get_user::AnonymousUserPersonalObjectLimits,
value: galaxy_graphql::queries::get_user::AnonymousUserPersonalObjectLimits,
) -> Result<Self, Self::Error> {
Ok(Self {
env_var_limit: value.env_var_limit as usize,