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

fix: rename experiment test folders in postman to work on linux machines #161

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions crates/context_aware_config/src/db/schema.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
// @generated automatically by Diesel CLI.

pub mod sql_types {
#[derive(diesel::sql_types::SqlType)]
#[diesel(postgres_type(name = "experiment_status_type"))]
pub struct ExperimentStatusType;

#[derive(diesel::sql_types::SqlType)]
#[diesel(postgres_type(name = "not_null_text"))]
pub struct NotNullText;
}

diesel::table! {
config_versions (id) {
id -> Int8,
Expand Down Expand Up @@ -591,6 +601,27 @@ diesel::table! {
}
}

diesel::table! {
use diesel::sql_types::*;
use super::sql_types::NotNullText;
use super::sql_types::ExperimentStatusType;

experiments (id) {
id -> Int8,
created_at -> Timestamptz,
created_by -> Text,
last_modified -> Timestamptz,
name -> Text,
override_keys -> Array<Nullable<NotNullText>>,
status -> ExperimentStatusType,
traffic_percentage -> Int4,
context -> Json,
variants -> Json,
last_modified_by -> Text,
chosen_variant -> Nullable<Text>,
}
}

diesel::table! {
functions (function_name) {
function_name -> Text,
Expand Down Expand Up @@ -668,6 +699,7 @@ diesel::allow_tables_to_appear_in_same_query!(
event_log_y2026m10,
event_log_y2026m11,
event_log_y2026m12,
experiments,
functions,
type_templates,
);
34 changes: 12 additions & 22 deletions postman/cac.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@
" \"created_by\": \"[email protected]\",",
" \"type_name\": \"Number\",",
" \"type_schema\": {",
" \"type\": \"number\"",
" \"type\": \"integer\"",
" }",
" },",
" {",
Expand All @@ -1252,7 +1252,7 @@
" \"created_by\": \"[email protected]\",",
" \"type_name\": \"Enum\",",
" \"type_schema\": {",
" \"enum\": \"$replacement\",",
" \"enum\": [\"android\", \"ios\"],",
" \"type\": \"string\"",
" }",
" },",
Expand All @@ -1261,7 +1261,7 @@
" \"created_by\": \"[email protected]\",",
" \"type_name\": \"Pattern\",",
" \"type_schema\": {",
" \"pattern\": \"$replacement\",",
" \"pattern\": \".*\",",
" \"type\": \"string\"",
" }",
" }",
Expand Down Expand Up @@ -1306,16 +1306,6 @@
{
"name": "Create Type",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
"// any prerequest js code goes here",
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
Expand Down Expand Up @@ -1361,7 +1351,7 @@
" \"created_by\": \"[email protected]\",",
" \"type_name\": \"Enum\",",
" \"type_schema\": {",
" \"enum\": \"$replacement\",",
" \"enum\": [\"android\", \"ios\"],",
" \"type\": \"string\"",
" }",
" },",
Expand All @@ -1376,14 +1366,14 @@
" \"created_by\": \"[email protected]\",",
" \"type_name\": \"Number\",",
" \"type_schema\": {",
" \"type\": \"number\"",
" \"type\": \"integer\"",
" }",
" },",
" {",
" \"created_by\": \"[email protected]\",",
" \"type_name\": \"Pattern\",",
" \"type_schema\": {",
" \"pattern\": \"$replacement\",",
" \"pattern\": \".*\",",
" \"type\": \"string\"",
" }",
" }",
Expand Down Expand Up @@ -1519,7 +1509,7 @@
" \"created_by\": \"[email protected]\",",
" \"type_name\": \"Enum\",",
" \"type_schema\": {",
" \"enum\": \"$replacement\",",
" \"enum\": [\"android\", \"ios\"],",
" \"type\": \"string\"",
" }",
" },",
Expand All @@ -1534,14 +1524,14 @@
" \"created_by\": \"[email protected]\",",
" \"type_name\": \"Number\",",
" \"type_schema\": {",
" \"type\": \"number\"",
" \"type\": \"integer\"",
" }",
" },",
" {",
" \"created_by\": \"[email protected]\",",
" \"type_name\": \"Pattern\",",
" \"type_schema\": {",
" \"pattern\": \"$replacement\",",
" \"pattern\": \".*\",",
" \"type\": \"string\"",
" }",
" }",
Expand Down Expand Up @@ -1678,22 +1668,22 @@
" \"created_by\": \"[email protected]\",",
" \"type_name\": \"Enum\",",
" \"type_schema\": {",
" \"enum\": \"$replacement\",",
" \"enum\": [\"android\", \"ios\"],",
" \"type\": \"string\"",
" }",
" },",
" {",
" \"created_by\": \"[email protected]\",",
" \"type_name\": \"Number\",",
" \"type_schema\": {",
" \"type\": \"number\"",
" \"type\": \"integer\"",
" }",
" },",
" {",
" \"created_by\": \"[email protected]\",",
" \"type_name\": \"Pattern\",",
" \"type_schema\": {",
" \"pattern\": \"$replacement\",",
" \"pattern\": \".*\",",
" \"type\": \"string\"",
" }",
" }",
Expand Down
Loading
Loading