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

revert onboarding job #72

Merged
merged 1 commit into from
Feb 20, 2025
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
15 changes: 0 additions & 15 deletions config/config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,3 @@ river:
fromEmail: [email protected]
testDir: fixtures/email
token: ""
onboardingWorker:
config:
apiBaseURL:
ForceQuery: false
Fragment: ""
Host: ""
OmitHost: false
Opaque: ""
Path: ""
RawFragment: ""
RawPath: ""
RawQuery: ""
Scheme: ""
User: null
starterTasks: null
33 changes: 0 additions & 33 deletions configgen/api-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Workers that will be enabled on the server
|----|----|-----------|--------|
|[**emailWorker**](#riverworkersemailworker)|`object`|EmailWorker is a worker to send emails using the resend email provider the config defaults to dev mode, which will write the email to a file using the mock provider a token is required to send emails using the actual resend provider<br/>||
|[**databaseWorker**](#riverworkersdatabaseworker)|`object`|DatabaseWorker is a worker to create a dedicated database for an organization<br/>||
|[**onboardingWorker**](#riverworkersonboardingworker)|`object`|OnboardingWorker is a worker to create tasks for the organization after signup<br/>||

**Additional Properties:** not allowed
<a name="riverworkersemailworker"></a>
Expand Down Expand Up @@ -98,36 +97,4 @@ DatabaseWorker is a worker to create a dedicated database for an organization
|**debug**|`boolean`|Enable debug mode<br/>||

**Additional Properties:** not allowed
<a name="riverworkersonboardingworker"></a>
#### river\.workers\.onboardingWorker: object

OnboardingWorker is a worker to create tasks for the organization after signup


**Properties**

|Name|Type|Description|Required|
|----|----|-----------|--------|
|[**config**](#riverworkersonboardingworkerconfig)|`object`|OnboardingConfig contains the configuration for the onboarding worker<br/>||

**Additional Properties:** not allowed
<a name="riverworkersonboardingworkerconfig"></a>
##### river\.workers\.onboardingWorker\.config: object

OnboardingConfig contains the configuration for the onboarding worker


**Properties**

|Name|Type|Description|Required|
|----|----|-----------|--------|
|[**StarterTasks**](#riverworkersonboardingworkerconfigstartertasks)|`array`|||
|**APIBaseURL**|`string`|the base URL for the Openlane API<br/>Format: `"uri"`<br/>||

**Additional Properties:** not allowed
<a name="riverworkersonboardingworkerconfigstartertasks"></a>
###### river\.workers\.onboardingWorker\.config\.StarterTasks: array

**Items**


59 changes: 0 additions & 59 deletions configgen/riverboat.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/theopenlane/riverboat/config/config.-config",
"$defs": {
"[]jobs.Task": {
"items": {
"$ref": "#/$defs/jobs.Task"
},
"type": "array"
},
"[]river.Queue": {
"items": {
"$ref": "#/$defs/river.Queue"
Expand Down Expand Up @@ -81,55 +75,6 @@
"type": "object",
"description": "EmailWorker is a worker to send emails using the resend email provider the config defaults to dev mode, which will write the email to a file using the mock provider a token is required to send emails using the actual resend provider"
},
"jobs.OnboardingConfig": {
"properties": {
"StarterTasks": {
"$ref": "#/$defs/[]jobs.Task",
"description": "the tasks to create for the organization after signup"
},
"APIBaseURL": {
"type": "string",
"format": "uri",
"description": "the base URL for the Openlane API"
}
},
"additionalProperties": false,
"type": "object",
"description": "OnboardingConfig contains the configuration for the onboarding worker"
},
"jobs.OnboardingWorker": {
"properties": {
"config": {
"$ref": "#/$defs/jobs.OnboardingConfig",
"description": "the configuration for the onboarding worker"
}
},
"additionalProperties": false,
"type": "object",
"description": "OnboardingWorker is a worker to create tasks for the organization after signup"
},
"jobs.Task": {
"properties": {
"Title": {
"type": "string",
"description": "the title of the task to be created"
},
"Description": {
"type": "string",
"description": "a short description of the task to be created"
},
"Details": {
"$ref": "#/$defs/map[string]interface {}",
"description": "the steps the user needs to take to complete the task"
}
},
"additionalProperties": false,
"type": "object",
"description": "Task is the fields that need to be configured for task creation"
},
"map[string]interface {}": {
"type": "object"
},
"river.Config": {
"properties": {
"databaseHost": {
Expand Down Expand Up @@ -173,10 +118,6 @@
"databaseWorker": {
"$ref": "#/$defs/jobs.DatabaseWorker",
"description": "DatabaseWorker configuration for creating databases using openlane/dbx"
},
"onboardingWorker": {
"$ref": "#/$defs/jobs.OnboardingWorker",
"description": "OnboardingWorker configuration for onboarding new organizations in openlane-core"
}
},
"additionalProperties": false,
Expand Down
57 changes: 8 additions & 49 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/theopenlane/riverboat
go 1.23.5

require (
github.com/Yamashou/gqlgenc v0.30.3
github.com/invopop/jsonschema v0.13.0
github.com/invopop/yaml v0.3.1
github.com/jackc/pgx/v5 v5.7.2
Expand All @@ -19,63 +18,35 @@ require (
github.com/rs/zerolog v1.33.0
github.com/spf13/cobra v1.9.1
github.com/stretchr/testify v1.10.0
github.com/theopenlane/core v0.6.24
github.com/theopenlane/dbx v0.1.2
github.com/theopenlane/newman v0.1.2
github.com/theopenlane/utils v0.4.3
)

require (
ariga.io/atlas v0.26.1 // indirect
entgo.io/contrib v0.6.0 // indirect
entgo.io/ent v0.14.1 // indirect
github.com/99designs/gqlgen v0.17.64 // indirect
github.com/XSAM/otelsql v0.36.0 // indirect
github.com/agext/levenshtein v1.2.3 // indirect
github.com/agnivade/levenshtein v1.2.0 // indirect
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
github.com/99designs/gqlgen v0.17.49 // indirect
github.com/Yamashou/gqlgenc v0.24.0 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/bahlo/generic-list-go v0.2.0 // indirect
github.com/buger/jsonparser v1.1.1 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/fsnotify/fsnotify v1.8.0 // indirect
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/inflect v0.21.0 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
github.com/go-webauthn/webauthn v0.11.2 // indirect
github.com/go-webauthn/x v0.1.14 // indirect
github.com/goccy/go-json v0.10.5 // indirect
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/go-tpm v0.9.1 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/css v1.0.1 // indirect
github.com/gorilla/securecookie v1.1.2 // indirect
github.com/hashicorp/hcl/v2 v2.22.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
github.com/jackc/puddle/v2 v2.2.2 // indirect
github.com/knadh/koanf/maps v0.1.1 // indirect
github.com/lestrrat-go/blackmagic v1.0.2 // indirect
github.com/lestrrat-go/httpcc v1.0.1 // indirect
github.com/lestrrat-go/httprc v1.0.6 // indirect
github.com/lestrrat-go/iter v1.0.2 // indirect
github.com/lestrrat-go/jwx/v2 v2.1.3 // indirect
github.com/lestrrat-go/option v1.0.1 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/microcosm-cc/bluemonday v1.0.27 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/oklog/ulid/v2 v2.1.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
Expand All @@ -84,40 +55,28 @@ require (
github.com/resend/resend-go/v2 v2.13.0 // indirect
github.com/riverqueue/river/riverdriver v0.17.0 // indirect
github.com/riverqueue/river/rivershared v0.17.0 // indirect
github.com/segmentio/asm v1.2.0 // indirect
github.com/sosodev/duration v1.3.1 // indirect
github.com/spf13/pflag v1.0.6 // indirect
github.com/stoewer/go-strcase v1.3.0 // indirect
github.com/theopenlane/echox v0.2.1 // indirect
github.com/theopenlane/entx v0.4.3 // indirect
github.com/theopenlane/httpsling v0.2.2 // indirect
github.com/theopenlane/iam v0.7.5 // indirect
github.com/theopenlane/iam v0.1.6 // indirect
github.com/tidwall/gjson v1.18.0 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.1 // indirect
github.com/tidwall/sjson v1.2.5 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
github.com/vektah/gqlparser/v2 v2.5.22 // indirect
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/vektah/gqlparser/v2 v2.5.16 // indirect
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
github.com/x448/float16 v0.8.4 // indirect
github.com/zclconf/go-cty v1.15.0 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/otel v1.34.0 // indirect
go.opentelemetry.io/otel/metric v1.34.0 // indirect
go.opentelemetry.io/otel/trace v1.34.0 // indirect
go.uber.org/goleak v1.3.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/crypto v0.33.0 // indirect
golang.org/x/exp v0.0.0-20241210194714-1829a127f884 // indirect
golang.org/x/mod v0.23.0 // indirect
golang.org/x/net v0.34.0 // indirect
golang.org/x/oauth2 v0.26.0 // indirect
golang.org/x/sync v0.11.0 // indirect
golang.org/x/sys v0.30.0 // indirect
golang.org/x/text v0.22.0 // indirect
golang.org/x/time v0.9.0 // indirect
golang.org/x/tools v0.29.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading