Skip to content

Commit

Permalink
Feat createtrialsubscription (#307)
Browse files Browse the repository at this point in the history
* subscription creation, entitlements package update

* draft new schema

* update index

* more schema updates

* remove object inherited thing

* remove struct tag

* remove index

* nillable

* schema rename

* add inverse edge

* task pr output

* fix(deps): update module github.com/theopenlane/utils to v0.4.1 (#283)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* add new issue form thingy (#288)

* fix mismatched names on request and response (#282)

* fix mismatched names on request and response, duplicate operations

* mockery version update and config file addition to remove deprecation warnings

* Update internal/httpserve/handlers/resendemail.go

Co-authored-by: Sarah Funkhouser <[email protected]>
Signed-off-by: Matt Anderson <[email protected]>

---------

Signed-off-by: Matt Anderson <[email protected]>
Co-authored-by: Sarah Funkhouser <[email protected]>

* limit the builds from renovate (#292)

Signed-off-by: Sarah Funkhouser <[email protected]>

* upgrade iam, entx, utils, fix docker build (#296)

* upgrade iam, entx, utils, fix docker build

Signed-off-by: Sarah Funkhouser <[email protected]>

* put that back

Signed-off-by: Sarah Funkhouser <[email protected]>

* dont build everytime

Signed-off-by: Sarah Funkhouser <[email protected]>

* correct arch

Signed-off-by: Sarah Funkhouser <[email protected]>

---------

Signed-off-by: Sarah Funkhouser <[email protected]>

* fix(deps): update module github.com/99designs/gqlgen to v0.17.58 (#294)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix deprecated functions from latest gqlen (#298)

Signed-off-by: Sarah Funkhouser <[email protected]>

* fix(deps): update module github.com/danielgtaylor/huma/v2 to v2.27.0 (#299)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat: create program members with program (#300)

* feat: create program memmbers with program

Signed-off-by: Sarah Funkhouser <[email protected]>

* remove extra return def

Signed-off-by: Sarah Funkhouser <[email protected]>

* fix idents

Signed-off-by: Sarah Funkhouser <[email protected]>

* generate

Signed-off-by: Sarah Funkhouser <[email protected]>

---------

Signed-off-by: Sarah Funkhouser <[email protected]>

* fix(deps): update module github.com/99designs/gqlgen to v0.17.59 (#301)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update module github.com/99designs/gqlgen to v0.17.60 (#302)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* add create full program, generate-fast (#303)

* add create full program, generate-fast

Signed-off-by: Sarah Funkhouser <[email protected]>

* add env var to disable cache if wanted, move install to tools.go

Signed-off-by: Sarah Funkhouser <[email protected]>

* cleanup generate

Signed-off-by: Sarah Funkhouser <[email protected]>

* use fork

Signed-off-by: Sarah Funkhouser <[email protected]>

* use fork

Signed-off-by: Sarah Funkhouser <[email protected]>

* remove builder line from dockerfile

Signed-off-by: Sarah Funkhouser <[email protected]>

* fixup

Signed-off-by: Sarah Funkhouser <[email protected]>

* fixup the generate

Signed-off-by: Sarah Funkhouser <[email protected]>

---------

Signed-off-by: Sarah Funkhouser <[email protected]>

* remove old handlers, cleanup event ordering

* Feat betterloggingwrapper (#306)

* working version

* cleanup, commit whats ready

* go mod tidy

---------

Signed-off-by: Matt Anderson <[email protected]>

---------

Signed-off-by: Matt Anderson <[email protected]>
Signed-off-by: Sarah Funkhouser <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sarah Funkhouser <[email protected]>
  • Loading branch information
3 people authored Dec 11, 2024
1 parent d57cc5a commit 136c52e
Show file tree
Hide file tree
Showing 80 changed files with 45,879 additions and 14,552 deletions.
23 changes: 23 additions & 0 deletions db/migrations-goose-postgres/20241208150023_orgsubscriptions.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
-- +goose Up
-- create "org_subscription_history" table
CREATE TABLE "org_subscription_history" ("id" character varying NOT NULL, "history_time" timestamptz NOT NULL, "ref" character varying NULL, "operation" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "owner_id" character varying NULL, "stripe_subscription_id" character varying NULL, "product_tier" character varying NULL, "stripe_product_tier_id" character varying NULL, "stripe_subscription_status" character varying NULL, "active" boolean NOT NULL DEFAULT true, "stripe_customer_id" character varying NULL, "expires_at" timestamptz NULL, "features" jsonb NULL, PRIMARY KEY ("id"));
-- create index "orgsubscriptionhistory_history_time" to table: "org_subscription_history"
CREATE INDEX "orgsubscriptionhistory_history_time" ON "org_subscription_history" ("history_time");
-- create "org_subscriptions" table
CREATE TABLE "org_subscriptions" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "stripe_subscription_id" character varying NULL, "product_tier" character varying NULL, "stripe_product_tier_id" character varying NULL, "stripe_subscription_status" character varying NULL, "active" boolean NOT NULL DEFAULT true, "stripe_customer_id" character varying NULL, "expires_at" timestamptz NULL, "features" jsonb NULL, "owner_id" character varying NULL, PRIMARY KEY ("id"), CONSTRAINT "org_subscriptions_organizations_orgsubscriptions" FOREIGN KEY ("owner_id") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL);
-- create index "org_subscriptions_mapping_id_key" to table: "org_subscriptions"
CREATE UNIQUE INDEX "org_subscriptions_mapping_id_key" ON "org_subscriptions" ("mapping_id");
-- create index "org_subscriptions_stripe_customer_id_key" to table: "org_subscriptions"
CREATE UNIQUE INDEX "org_subscriptions_stripe_customer_id_key" ON "org_subscriptions" ("stripe_customer_id");

-- +goose Down
-- reverse: create index "org_subscriptions_stripe_customer_id_key" to table: "org_subscriptions"
DROP INDEX "org_subscriptions_stripe_customer_id_key";
-- reverse: create index "org_subscriptions_mapping_id_key" to table: "org_subscriptions"
DROP INDEX "org_subscriptions_mapping_id_key";
-- reverse: create "org_subscriptions" table
DROP TABLE "org_subscriptions";
-- reverse: create index "orgsubscriptionhistory_history_time" to table: "org_subscription_history"
DROP INDEX "orgsubscriptionhistory_history_time";
-- reverse: create "org_subscription_history" table
DROP TABLE "org_subscription_history";
3 changes: 2 additions & 1 deletion db/migrations-goose-postgres/atlas.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
h1:KRzZoIIUgdqdpTFvoiiWd5WmhulDcNcfzhLCY4q5qus=
h1:Fz9zuMpP/IUJo4CRvWeH9Wl491SxVSKi0xzooAedS3k=
20240827061503_init.sql h1:D0Ce7h0FSKpjtQOHZK5gXOpaPvlNAFHHzqfQQ8re0T4=
20241014185634_object_upload.sql h1:xeeCqYCpQ3RFWgNjnKV1GMHgTEoZK2aWv5a2EvU4DP8=
20241030173034_base.sql h1:+eJ3JGD5lzsP16mz7q+yD78Jvs7sTX8nBZQmS68hjoA=
Expand All @@ -13,3 +13,4 @@ h1:KRzZoIIUgdqdpTFvoiiWd5WmhulDcNcfzhLCY4q5qus=
20241201194400_controls.sql h1:kRChIRC5+5qzcD8IXSIpp7dt1w/xvhBw7F0+YiEoFUc=
20241203221236_creator_groups.sql h1:NNAIP7ISaBf1HuZgPhkGnf8yfLrpps9QY+1UOdSTp3o=
20241204061533_subcontrols.sql h1:gVm6Nxppr9Eh+bhloxn9+NRKYH3vJB9WKSzqD7O3TEI=
20241208150023_orgsubscriptions.sql h1:QUNTzFjvz4B6BIlkgx2IN2i1l2M4iQ/HLfZk+cRN0D8=
10 changes: 10 additions & 0 deletions db/migrations/20241208150021_orgsubscriptions.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- Create "org_subscription_history" table
CREATE TABLE "org_subscription_history" ("id" character varying NOT NULL, "history_time" timestamptz NOT NULL, "ref" character varying NULL, "operation" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "owner_id" character varying NULL, "stripe_subscription_id" character varying NULL, "product_tier" character varying NULL, "stripe_product_tier_id" character varying NULL, "stripe_subscription_status" character varying NULL, "active" boolean NOT NULL DEFAULT true, "stripe_customer_id" character varying NULL, "expires_at" timestamptz NULL, "features" jsonb NULL, PRIMARY KEY ("id"));
-- Create index "orgsubscriptionhistory_history_time" to table: "org_subscription_history"
CREATE INDEX "orgsubscriptionhistory_history_time" ON "org_subscription_history" ("history_time");
-- Create "org_subscriptions" table
CREATE TABLE "org_subscriptions" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "mapping_id" character varying NOT NULL, "tags" jsonb NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "stripe_subscription_id" character varying NULL, "product_tier" character varying NULL, "stripe_product_tier_id" character varying NULL, "stripe_subscription_status" character varying NULL, "active" boolean NOT NULL DEFAULT true, "stripe_customer_id" character varying NULL, "expires_at" timestamptz NULL, "features" jsonb NULL, "owner_id" character varying NULL, PRIMARY KEY ("id"), CONSTRAINT "org_subscriptions_organizations_orgsubscriptions" FOREIGN KEY ("owner_id") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL);
-- Create index "org_subscriptions_mapping_id_key" to table: "org_subscriptions"
CREATE UNIQUE INDEX "org_subscriptions_mapping_id_key" ON "org_subscriptions" ("mapping_id");
-- Create index "org_subscriptions_stripe_customer_id_key" to table: "org_subscriptions"
CREATE UNIQUE INDEX "org_subscriptions_stripe_customer_id_key" ON "org_subscriptions" ("stripe_customer_id");
3 changes: 2 additions & 1 deletion db/migrations/atlas.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
h1:Nj8o8IUgf/f2Z1TSIV+XhC6Ov1STXzZBjyTqj/XtjUk=
h1:qs8r4p4lJWKQ35uTsZqXNe9IP/IrEjb370WnlGUMNdQ=
20240827061437_init.sql h1:9pQTZIsiDF3hW0HraVTzaU3M25iiy3MdxvhsZosxgvo=
20241014185633_object_upload.sql h1:0lzY0vj0gav3gMHGc8gm793zPeSQSMMHjt4c2V+7Eok=
20241108062010_compliance.sql h1:vmJyf1VhoKSRw9zRQKXsRtWJEEUYDbqZmpkyp89O/Tc=
Expand All @@ -12,3 +12,4 @@ h1:Nj8o8IUgf/f2Z1TSIV+XhC6Ov1STXzZBjyTqj/XtjUk=
20241201194355_controls.sql h1:lArKSEyGAIbk0Up6B7/RZTTZgVlB+rE09yJxQvK+30A=
20241203221235_creator_groups.sql h1:a6tKXzTkd+TlOgCfL/Iojb3zAU1DCQ5odiKw6nJvFRw=
20241204061531_subcontrols.sql h1:D+3+ALb+fU/3YugzAwxLMMjQLbniaHLlWaVgEHDwCYQ=
20241208150021_orgsubscriptions.sql h1:mXL7jQ8nE0q77OqFB5gRydrDuJu4hZCHRHhXGlm99oM=
147 changes: 147 additions & 0 deletions internal/ent/generated/auditing.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 136c52e

Please sign in to comment.