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

Investigation into Svelte re-write #1005

Draft
wants to merge 200 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
200 commits
Select commit Hold shift + click to select a range
7113343
Svelte create-app
chrisvire Oct 11, 2023
7a73aef
npx primsa db pull
chrisvire Oct 11, 2023
210aa83
Simplify model
chrisvire Oct 11, 2023
c682b35
Add Prettier for Prisma
chrisvire Oct 11, 2023
f363a24
Fix schema to match EF
chrisvire Oct 17, 2023
c905081
Add migration and seed data
chrisvire Oct 17, 2023
91d3836
Add WorkflowDefinitions and ProductDefinitions
chrisvire Oct 17, 2023
22a7a5b
Add Default Organizations to Seed (optional)
chrisvire Oct 18, 2023
c368088
Add TailwindCSS and DaisyUI
chrisvire Oct 18, 2023
5fde183
Initial UI
chrisvire Oct 18, 2023
5045e01
Stub out sidebar
chrisvire Oct 20, 2023
130eb0c
Stub out pages and style menu
chrisvire Oct 23, 2023
593ab13
Page Header
chrisvire Oct 27, 2023
a3dba9e
Close Drawer when item selected in drawer
chrisvire Oct 27, 2023
bd66e92
Navbar a little taller
chrisvire Oct 27, 2023
9edd9e3
Add admin menu
chrisvire Oct 28, 2023
9fa1f63
Start the admin UI
chrisvire Nov 1, 2023
ec690dd
Add 7dev7urandom to bootstrap data
7dev7urandom Jun 7, 2024
0af5bc7
Use VITE_ prefix
7dev7urandom Jun 8, 2024
509c508
Implement product definitions
7dev7urandom Jun 8, 2024
67998c7
Restyle and refactor databoxes
7dev7urandom Jun 8, 2024
71d4d5c
Add generic error page
7dev7urandom Jun 9, 2024
b07fbc4
Fix cutoff sidebar and active indicator
7dev7urandom Jun 9, 2024
2ddcb27
Style changes
7dev7urandom Jun 9, 2024
9bca72b
Implement stores, storeTypes and Build Engine Statuses
7dev7urandom Jun 9, 2024
5a45b43
Increase spacing to separate admin settings from title
7dev7urandom Jun 10, 2024
a087d9d
Fix language selector
7dev7urandom Jun 10, 2024
e7ec7a0
Fix layout in spanish language
7dev7urandom Jun 10, 2024
ef2f3bb
Upgrade to sveltekit-v2
7dev7urandom Jun 10, 2024
8a79dce
Switch to adapter-node
7dev7urandom Jun 10, 2024
dc0b0c9
Add svelte-ui to docker
7dev7urandom Jun 10, 2024
209fc93
Fix IDE errors
7dev7urandom Jun 10, 2024
e2a1f7d
Prettier
7dev7urandom Jun 11, 2024
e75cd9e
IDE errors and lint rules
7dev7urandom Jun 12, 2024
87ed9e4
First version of admin settings edit
7dev7urandom Jun 12, 2024
d441dee
Use spaces instead of tabs
7dev7urandom Jun 12, 2024
2aff29f
Reduce dup code
7dev7urandom Jun 12, 2024
2ad0173
Product definitions editing first version
7dev7urandom Jun 12, 2024
59f8834
Componentize input slots
7dev7urandom Jun 12, 2024
39663ae
Miscellaneous fixes
7dev7urandom Jun 12, 2024
e98c4d6
Add Workflow Definition edits
7dev7urandom Jun 13, 2024
d3e49a1
Rename components
7dev7urandom Jun 13, 2024
eb49f4b
Make admin settings stores editable
7dev7urandom Jun 13, 2024
a5428b5
Make admin store types editable
7dev7urandom Jun 13, 2024
b1e278d
Formatting and style
7dev7urandom Jun 13, 2024
1811370
Organizations edit
7dev7urandom Jun 13, 2024
8625fb8
Add description to toggles
7dev7urandom Jun 13, 2024
37d7b45
Add margin around form buttons in admin settings
7dev7urandom Jun 13, 2024
7c054d3
Add organization
7dev7urandom Jun 13, 2024
d3bea62
Product and workflow definitions add page
7dev7urandom Jun 14, 2024
7ec8993
Add menu for stores and store types
7dev7urandom Jun 14, 2024
a8e4ed0
Add errors to forms
7dev7urandom Jun 14, 2024
7b88e59
Implement working auth0 auth
7dev7urandom Jun 19, 2024
0b25a1d
Add home page
7dev7urandom Jun 19, 2024
1314384
Fix colors and appearance
7dev7urandom Jun 19, 2024
492693e
Add ability to login with a new oauth session
7dev7urandom Jun 19, 2024
3dbfd5d
User db connection
7dev7urandom Jun 19, 2024
72a17bd
Add organization selector
7dev7urandom Jun 20, 2024
3d6142b
Tasks screen
7dev7urandom Jun 21, 2024
9b559a9
Fix organizations selector
7dev7urandom Jun 21, 2024
ebeb03f
Add no tasks message and icons
7dev7urandom Jun 21, 2024
a6bd4f0
Selected organization store
7dev7urandom Jun 26, 2024
f705c5e
Change i18n library to inlang paraglide
7dev7urandom Jun 26, 2024
d79ef55
Remove selectedOrganization
7dev7urandom Jun 27, 2024
b992025
Refactor settings menu component
7dev7urandom Jun 27, 2024
041e422
Start organization settings page
7dev7urandom Jun 27, 2024
2a8dba7
Add stores and groups
7dev7urandom Jun 28, 2024
07ce765
Add infrastructure
7dev7urandom Jun 28, 2024
dcc29d7
Opensource page
7dev7urandom Jun 28, 2024
119cd74
Add users page
7dev7urandom Jul 1, 2024
9104da6
Only show authorized organizations
7dev7urandom Jul 1, 2024
2121676
Add organization filter selector
7dev7urandom Jul 1, 2024
1ad8986
First version of projects page
7dev7urandom Jul 3, 2024
83a3a96
Split specific projects from project menu
7dev7urandom Jul 3, 2024
5ef7a34
Add inputs to project menu
7dev7urandom Jul 3, 2024
fa4bcc7
Cards with information
7dev7urandom Jul 8, 2024
101d6cf
Use flex-wrap for project information and add prisma typings to compo…
7dev7urandom Jul 8, 2024
eab5fc7
Prune projects
7dev7urandom Jul 8, 2024
8bbcabf
Update css, form and svelte packages to fix errors
7dev7urandom Jul 11, 2024
785681e
Customize daisyui theme and use it consistently
7dev7urandom Jul 11, 2024
eabf4a1
Add dark theme
7dev7urandom Jul 16, 2024
304dd5b
Refactor icons
7dev7urandom Jul 16, 2024
f159b9e
Styling and padding changes
7dev7urandom Jul 16, 2024
eda007a
Add favicon
7dev7urandom Jul 16, 2024
cecbc6f
Restyle login page
7dev7urandom Jul 16, 2024
57a206e
Remove log statements
7dev7urandom Jul 16, 2024
25ff5dc
Overlooked styles
7dev7urandom Jul 16, 2024
8225992
Begin Project Directory
7dev7urandom Jul 18, 2024
58845c3
Redesign projects list with an organization dropdown and always use a…
7dev7urandom Jul 18, 2024
b0c68ed
Add langtags
7dev7urandom Jul 19, 2024
d1549a9
Language code search first version
7dev7urandom Jul 21, 2024
5986b2b
Language code search
7dev7urandom Jul 22, 2024
7b1b057
Add project searching and directory filters
7dev7urandom Jul 22, 2024
f390690
Styling and broken link
7dev7urandom Jul 23, 2024
36f5df7
Projects page first version
7dev7urandom Jul 23, 2024
2d2f922
New and reorganized updated responsive layout for projects page
7dev7urandom Jul 23, 2024
b57b0f3
Prettier format
7dev7urandom Jul 23, 2024
c504a81
Begin project edit screen
7dev7urandom Jul 25, 2024
078792d
Project editing functionality
7dev7urandom Jul 26, 2024
216a4e6
Fix relative time calc for locales
7dev7urandom Jul 26, 2024
1ba73a3
Project page update
7dev7urandom Jul 29, 2024
eb7b874
Add search bar to users page
7dev7urandom Jul 31, 2024
f6c18ba
Restyle checkboxes
7dev7urandom Jul 31, 2024
485fb95
Various fixes
7dev7urandom Aug 2, 2024
335d29b
Start user settings page
7dev7urandom Aug 2, 2024
74ce13f
Change project layout
7dev7urandom Aug 2, 2024
733b043
Switch to a very nice grid layout for projects page
7dev7urandom Aug 2, 2024
286dd9c
Use 302 instead of 303
7dev7urandom Aug 6, 2024
0e8e208
Svelte build docker + use node server and BullMQ
7dev7urandom Aug 7, 2024
3d7aed1
Move prisma types and disallow prisma import from client
7dev7urandom Aug 7, 2024
99b0ef8
Add basic BullWorker
7dev7urandom Aug 7, 2024
6f5dd24
Add BullWorker, create 'common' package for shared code between node-…
7dev7urandom Aug 9, 2024
f5f08d6
Fix common package?
7dev7urandom Aug 9, 2024
4d2e696
User groups
7dev7urandom Aug 10, 2024
6164d25
User profile and user settings auth
7dev7urandom Aug 12, 2024
43d4c7c
Implement project toggles
7dev7urandom Aug 12, 2024
4600945
Phone responsiveness
7dev7urandom Aug 12, 2024
9c3c6b0
Move active toggle to user profile
7dev7urandom Aug 12, 2024
a201f36
Phone responsiveness
7dev7urandom Aug 20, 2024
e4b9a2f
Add email to users page
7dev7urandom Aug 20, 2024
e3f91f0
Use role="button" for dropdown divs
7dev7urandom Aug 20, 2024
d70daa4
Project directory phone appearance
7dev7urandom Aug 20, 2024
60b9f65
Add date picker to project directory
7dev7urandom Aug 24, 2024
f3de697
Svelte checks
7dev7urandom Aug 24, 2024
1b65944
Fix broken bullmq server in dev mode
7dev7urandom Aug 24, 2024
76d2263
Fix langtags.json error on first compile
7dev7urandom Aug 26, 2024
1851ff2
Add svelte-ui to docker
7dev7urandom Jun 10, 2024
a9bd441
Svelte build docker + use node server and BullMQ
7dev7urandom Aug 7, 2024
013221a
Add redis to up:local:start
7dev7urandom Aug 26, 2024
5632e4d
Handle watching common and node-server code from dev mode
7dev7urandom Aug 29, 2024
43219db
Move all database write operations to common package
7dev7urandom Aug 29, 2024
d42e738
Fix docker build and other issues
7dev7urandom Aug 29, 2024
c668dbd
Fix remaining issues from broken commit
7dev7urandom Aug 29, 2024
7be7479
DatabaseWrites replacement
7dev7urandom Aug 30, 2024
85d52f4
Add staging server interim docker container
7dev7urandom Sep 2, 2024
90f2710
Fix/add dev to users (#1017)
FyreByrd Sep 6, 2024
ecfdabf
Feature/svelte task forms (#1016)
FyreByrd Sep 6, 2024
8cbe074
Fix svelte-ui build on fresh clone
7dev7urandom Sep 7, 2024
006efce
Implement DatabaseWrites safety by blocking nested database writes
7dev7urandom Sep 7, 2024
8547384
Begin ReassignUserTasks bull task
7dev7urandom Sep 7, 2024
52fd74c
Finish refactor to DatabaseWrites
7dev7urandom Sep 7, 2024
ba9ac90
Switch to using prisma for migrations (#1018)
chrisvire Sep 11, 2024
532bb02
Allow running prisma commands from root directory
7dev7urandom Sep 12, 2024
e124bf5
Add per-route auth framework
7dev7urandom Sep 12, 2024
5e817ed
Fix tasks link in projects
FyreByrd Sep 17, 2024
9d80e78
Sanitize langtags in language picker
7dev7urandom Sep 13, 2024
a146e1c
Allow editing project owner and group from main project page
7dev7urandom Sep 18, 2024
706f24b
Update some TODOs
FyreByrd Oct 4, 2024
142b3fd
Feature/prisma auto date (#1021)
FyreByrd Oct 25, 2024
b6c5248
Add migration for handling DateCreated field (#1024)
FyreByrd Oct 28, 2024
4b5884b
Workflows with XState (#1019)
FyreByrd Oct 29, 2024
b4dad88
Don't cover navbar with drawer content (#1028)
FyreByrd Oct 31, 2024
600518a
Add workflow configuration data to WorkflowDefinitions table (#1026)
FyreByrd Oct 31, 2024
38b40c1
Refactor WorkflowInstances to split up stored data (#1027)
FyreByrd Nov 1, 2024
962737a
Add JSDoc comment to Session.user.roles (#1030)
FyreByrd Nov 4, 2024
24bee66
Create object to filter WorkflowInstances by terminal states
FyreByrd Nov 5, 2024
ab89f65
Get config data from db when creating product (#1032)
FyreByrd Nov 5, 2024
b43a8f9
DB Changes for refactoring workflow state/transition filtration (#1033)
FyreByrd Nov 6, 2024
f792b97
Refactor filtration of workflow states/transitions (#1034)
FyreByrd Nov 6, 2024
92bb095
Fix missing parentheses in i18n function call
FyreByrd Nov 6, 2024
7731049
Upgrade node version from 18.16.1 to 22.11.0 (#1035)
FyreByrd Nov 8, 2024
f602c47
Fix residual errors from workflow instance refactor (#1037)
FyreByrd Nov 8, 2024
6112371
Correct sorting and add TODO for transitions display
FyreByrd Nov 11, 2024
5999452
Improved UI for WorkflowDefinition Creation/Editing (#1029)
FyreByrd Nov 11, 2024
0e1d001
Sort project settings dropdowns and use full group name
7dev7urandom Nov 12, 2024
565c04c
Fix missing i18n (#1036)
FyreByrd Nov 12, 2024
7cfca61
Split ProjectSelector functionality into ProjectCard (#1025)
FyreByrd Nov 12, 2024
919af7a
Componentize Search input (#1038)
FyreByrd Nov 13, 2024
c00a2f3
Pagination UI component (#1039)
FyreByrd Nov 14, 2024
6f9c11a
BuildEngine API methods (#1040)
FyreByrd Nov 18, 2024
dac0ce7
Anchor size selector to right side on mobile (#1045)
FyreByrd Nov 18, 2024
45a94f5
Paginate /users (#1043)
FyreByrd Nov 18, 2024
9e1c942
Add tooltip to search bar (#1044)
FyreByrd Nov 18, 2024
70f7f94
Paginate project directory (#1042)
FyreByrd Nov 18, 2024
2818905
Paginate projects/filter route (#1041)
FyreByrd Nov 20, 2024
614d5d8
Refactor SortTable (#1047)
FyreByrd Nov 25, 2024
50bba27
Apply link style to anchor elements in instructions (#1048)
FyreByrd Dec 2, 2024
94d7eb2
Use Set methods for state/transition filtration (#1050)
FyreByrd Dec 2, 2024
ad6f015
Remove unneeded check against page.size (#1052)
FyreByrd Dec 2, 2024
946c181
Revert the relationship between Products and WorkflowInstances to be …
FyreByrd Dec 2, 2024
7243ad2
Reorganize BullMQ Jobs and Queues (#1046)
FyreByrd Dec 2, 2024
70ed89e
First version of user creation and organization invites
7dev7urandom Dec 1, 2024
4c8301d
Finish organization invites
7dev7urandom Dec 3, 2024
da556bb
Add i18n keys and use integer[] db type
7dev7urandom Dec 3, 2024
a7f9122
Add check for locked users
7dev7urandom Dec 3, 2024
399046d
Fix migration for arrays
FyreByrd Dec 4, 2024
e4fd19f
Remove unnecessary TODO
FyreByrd Dec 4, 2024
f98820d
Only show invite user button if active user has permission
7dev7urandom Dec 4, 2024
7d53a79
Paginate Workflow Instances display (#1054)
FyreByrd Dec 4, 2024
3b8dcbe
Expose API route to get Project Access Token for SAB (#1055)
FyreByrd Dec 4, 2024
8674eb8
Recurring Job to check system statuses (#1056)
FyreByrd Dec 4, 2024
c4c019e
Job for bulk operations on UserTasks (#1057)
FyreByrd Dec 4, 2024
58d6876
Fix unused style warning in directory
FyreByrd Dec 6, 2024
b3d9ebc
Fix workflow options for product creation
FyreByrd Dec 6, 2024
67feed7
Return null from getSnapshot/restore if no instance
FyreByrd Dec 6, 2024
ecb9bff
Fix check/lint errors in workflow
FyreByrd Dec 6, 2024
666428a
Fix check errors in databaseProxy
FyreByrd Dec 6, 2024
b67683f
Fix check errors in BuildEngineAPI
FyreByrd Dec 6, 2024
a6a1f69
Paginate /product/[id]/files (#1051)
FyreByrd Dec 12, 2024
e2acdb3
Projects must be owned by a member of the project's group
7dev7urandom Dec 5, 2024
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
2 changes: 2 additions & 0 deletions deployment/development/Dockerfile.stg-tunnel
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM alpine
RUN apk --no-cache add openssh-client bash
31 changes: 30 additions & 1 deletion deployment/development/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.4'
version: "3.4"

# NOTE: that --project-directory ./source
# must be passed to every docker-compose command
Expand All @@ -13,8 +13,10 @@ volumes:
ui-node_modules:
ui-yarn-cache:
postgres-data:
redis-data:
outdir:


services:
db:
image: postgres:10
Expand Down Expand Up @@ -91,3 +93,30 @@ services:
- ui-dist:/app/dist
- ui-node_modules:/app/node_modules
- ui-yarn-cache:/.yarn-cache
svelte-ui:
build:
context: ./source/SIL.AppBuilder.Portal/
dockerfile: Dockerfile
ports:
- "5173:3000"
env_file: source/SIL.AppBuilder.Portal/.env
environment:
VITE_DATABASE_URL: "postgresql://db-user:1234@db:5432/development?schema=public"
# MUST be included (the path the application will be accessed on) and MUST NOT have a trailing slash
ORIGIN: "http://localhost:5173"
redis:
image: redis:latest
ports:
- "6379:6379"
command: redis-server --appendonly yes --appendfilename appendonly.aof --maxmemory-policy noeviction
volumes:
- redis-data:/data
stg-tunnel:
build:
context: ./deployment/development
dockerfile: Dockerfile.stg-tunnel
ports:
- "8443:8443"
command: bash -c "ssh -N -L \*:8443:localhost:\$(ssh aps-stg \"docker ps --format '{{.Names}} {{.Ports}}' | grep -E 'buildengine.*web' | awk -F '->' '{print \\$1}' | awk -F ':' '{print \\$2}'\") aps-stg"
volumes:
- ~/.ssh:/root/.ssh
67 changes: 53 additions & 14 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@

UI_PATH="source/SIL.AppBuilder.Portal.Frontend"
API_PATH="source/OptimaJet.DWKit.StarterApplication"
SVELTE_PATH="source/SIL.AppBuilder.Portal"
COMPOSE="docker compose -f deployment/development/docker-compose.yml --project-directory . -p appbuilder-portal"
COMPOSE_SERVICES="db adminer api ui"
COMPOSE_SERVICES="db adminer api ui svelte-ui redis stg-tunnel"

CI_COMPOSE="docker compose -f deployment/ci/docker-compose.yml --project-directory . -p appbuilder-portal-ci"

Expand All @@ -26,7 +27,7 @@ function runstuff {
up:build) ${COMPOSE} up --build $arguments ${COMPOSE_SERVICES} ;;
up) ${COMPOSE} up $arguments ${COMPOSE_SERVICES} ;;
up:local:start)
runstuff dc up -d db adminer
runstuff dc up -d db adminer redis

echo "db and adminer have been started. please make sure you have /etc/hosts entries"
echo ""
Expand Down Expand Up @@ -66,7 +67,25 @@ function runstuff {

bootstrap)
set -e
runstuff bootstrap:stop-api
runstuff bootstrap:drop
runstuff bootstrap:svelte
runstuff bootstrap:dwkit-data
runstuff bootstrap:restart-api
runstuff bootstrap:data
runstuff bootstrap:workflow
runstuff bootstrap:sample
runstuff bootstrap:dev
runstuff bootstrap:ui-static
set +e
;;

bootstrap:s1)
set -e
runstuff bootstrap:stop-api
runstuff bootstrap:drop
runstuff bootstrap:dwkit
runstuff bootstrap:restart-api
runstuff bootstrap:api
runstuff bootstrap:sample
runstuff bootstrap:dev
Expand All @@ -84,11 +103,12 @@ function runstuff {
set +e
;;

bootstrap:dwkit)
bootstrap:stop-api)
echo "api must not be running in order to run the initial db scripts ..."
runstuff dc stop api
;;


bootstrap:drop)
# Setup Database
${COMPOSE} exec db bash -c "\
${PSQL} -d postgres -tc \
Expand All @@ -98,28 +118,47 @@ function runstuff {
&& ${PSQL} -d postgres -c \"DROP DATABASE \$POSTGRES_DB\""

${COMPOSE} exec db bash -c "${PSQL} -d postgres -c \"CREATE DATABASE \$POSTGRES_DB WITH ENCODING 'UTF8'\""
;;

bootstrap:dwkit)
echo "Setting up DWKit..."
${COMPOSE} exec db bash -c "${PSQL} -d \$POSTGRES_DB -f /scripts/PostgreSQL/DWKitScript.sql" \
&& ${COMPOSE} exec db bash -c "${PSQL} -d \$POSTGRES_DB -f /scripts/PostgreSQL/Workflow_CreatePersistenceObjects.sql" \
&& ${COMPOSE} exec db bash -c "${PSQL} -d \$POSTGRES_DB -f /scripts/PostgreSQL/DWKitUpdate_2.6.sql" \
&& echo "DB setup with DWKit Scripts"
runstuff bootstrap:dwkit-data
runstuff bootstrap:dwkit-migrate
echo "DB setup with DWKit Scripts"
;;
bootstrap:dwkit-data)
${COMPOSE} exec db bash -c "${PSQL} -d \$POSTGRES_DB -f /scripts/PostgreSQL/DWKitScript.sql"
;;

bootstrap:api)
bootstrap:dwkit-migrate)
${COMPOSE} exec db bash -c "${PSQL} -d \$POSTGRES_DB -f /scripts/PostgreSQL/Workflow_CreatePersistenceObjects.sql"
${COMPOSE} exec db bash -c "${PSQL} -d \$POSTGRES_DB -f /scripts/PostgreSQL/DWKitUpdate_2.6.sql"
;;

bootstrap:restart-api)
echo "api must be running in order to run the db migration scripts ..."
runstuff dc start api
;;

bootstrap:api)
echo "Running migrations..."
runstuff db:update
runstuff bootstrap:data
runstuff bootstrap:workflow
echo "DB setup for json:api"
;;

runstuff db:update \
&& ${COMPOSE} exec db bash -c "${PSQL} -d \$POSTGRES_DB -f /scripts/bootstrap.sql" \
&& ${COMPOSE} exec db bash -c "${PSQL} -d \$POSTGRES_DB -f /scripts/default_workflow.sql" \
&& echo "DB setup for json:api"
bootstrap:data)
${COMPOSE} exec db bash -c "${PSQL} -d \$POSTGRES_DB -f /scripts/bootstrap.sql"
;;

bootstrap:workflow)
${COMPOSE} exec db bash -c "${PSQL} -d \$POSTGRES_DB -f /scripts/default_workflow.sql"
${COMPOSE} exec db bash -c "${PSQL} -d \$POSTGRES_DB -f /scripts/default_workflow.sql"
;;

bootstrap:svelte)
(cd $SVELTE_PATH \
&& npx prisma migrate dev --schema common/prisma/schema.prisma)
;;

bootstrap:sample)
Expand Down
78 changes: 45 additions & 33 deletions scripts/DB/default_workflow.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Type", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId") VALUES
(1, 'sil_android_google_play', 1, '1', 'SIL Default Workflow for Publishing to Google Play', 'SIL_Default_AppBuilders_Android_GooglePlay', 'SIL_Default_AppBuilders_Android_GooglePlay_Flow', 1)
INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Type", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "WorkflowOptions") VALUES
(1, 'sil_android_google_play', 1, '1', 'SIL Default Workflow for Publishing to Google Play', 'SIL_Default_AppBuilders_Android_GooglePlay', 'SIL_Default_AppBuilders_Android_GooglePlay_Flow', 1, '{1, 2}')
ON CONFLICT ("Id")
DO UPDATE SET
"Name" = excluded."Name",
Expand All @@ -8,7 +8,8 @@ DO UPDATE SET
"Description" = excluded."Description",
"WorkflowScheme" = excluded."WorkflowScheme",
"WorkflowBusinessFlow" = excluded."WorkflowBusinessFlow",
"StoreTypeId" = excluded."StoreTypeId";
"StoreTypeId" = excluded."StoreTypeId",
"WorkflowOptions" = excluded."WorkflowOptions";

INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Type", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId") VALUES
(2, 'sil_android_google_play_rebuild', 2, '1', 'SIL Default Workflow for Rebuilding to Google Play', 'SIL_Default_AppBuilders_Android_GooglePlay_Rebuild', 'SIL_Default_AppBuilders_Android_GooglePlay_Flow', 1)
Expand All @@ -33,8 +34,8 @@ DO UPDATE SET
"WorkflowBusinessFlow" = excluded."WorkflowBusinessFlow",
"StoreTypeId" = excluded."StoreTypeId";

INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Type", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId") VALUES
(4, 'sil_android_s3', 1, '1', 'SIL Default Workflow for Publish to Amazon S3 Bucket', 'SIL_Default_AppBuilders_Android_S3', 'SIL_Default_AppBuilders_Android_S3_Flow', 2)
INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Type", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "ProductType", "WorkflowOptions") VALUES
(4, 'sil_android_s3', 1, '1', 'SIL Default Workflow for Publish to Amazon S3 Bucket', 'SIL_Default_AppBuilders_Android_S3', 'SIL_Default_AppBuilders_Android_S3_Flow', 2, 1, '{2}')
ON CONFLICT ("Id")
DO UPDATE SET
"Name" = excluded."Name",
Expand All @@ -43,10 +44,12 @@ DO UPDATE SET
"Description" = excluded."Description",
"WorkflowScheme" = excluded."WorkflowScheme",
"WorkflowBusinessFlow" = excluded."WorkflowBusinessFlow",
"StoreTypeId" = excluded."StoreTypeId";
"StoreTypeId" = excluded."StoreTypeId",
"ProductType" = excluded."ProductType",
"WorkflowOptions" = excluded."WorkflowOptions";

INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Type", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId") VALUES
(5, 'sil_android_s3_rebuild', 2, '1', 'SIL Default Workflow for Rebuilding to Amazon S3 Bucket', 'SIL_Default_AppBuilders_Android_S3_Rebuild', 'SIL_Default_AppBuilders_Android_S3_Flow', 2)
INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Type", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "ProductType") VALUES
(5, 'sil_android_s3_rebuild', 2, '1', 'SIL Default Workflow for Rebuilding to Amazon S3 Bucket', 'SIL_Default_AppBuilders_Android_S3_Rebuild', 'SIL_Default_AppBuilders_Android_S3_Flow', 2, 1)
ON CONFLICT ("Id")
DO UPDATE SET
"Name" = excluded."Name",
Expand All @@ -55,10 +58,11 @@ DO UPDATE SET
"Description" = excluded."Description",
"WorkflowScheme" = excluded."WorkflowScheme",
"WorkflowBusinessFlow" = excluded."WorkflowBusinessFlow",
"StoreTypeId" = excluded."StoreTypeId";
"StoreTypeId" = excluded."StoreTypeId",
"ProductType" = excluded."ProductType";

INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type") VALUES
(6, 'la_android_google_play', '1', 'Low Admin Workflow for Publishing to Google Play', 'SIL_LowAdmin_AppBuilders_Android_GooglePlay', 'SIL_Default_AppBuilders_Android_GooglePlay_Flow', 1, 1)
INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type", "WorkflowOptions") VALUES
(6, 'la_android_google_play', '1', 'Low Admin Workflow for Publishing to Google Play', 'SIL_LowAdmin_AppBuilders_Android_GooglePlay', 'SIL_Default_AppBuilders_Android_GooglePlay_Flow', 1, 1, '{1}')
ON CONFLICT ("Id")
DO UPDATE SET
"Name" = excluded."Name",
Expand All @@ -67,7 +71,8 @@ DO UPDATE SET
"WorkflowScheme" = excluded."WorkflowScheme",
"WorkflowBusinessFlow" = excluded."WorkflowBusinessFlow",
"StoreTypeId" = excluded."StoreTypeId",
"Type" = excluded."Type";
"Type" = excluded."Type",
"WorkflowOptions" = excluded."WorkflowOptions";

INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type") VALUES
(7, 'oa_android_google_play', '1', 'Owner Admin Workflow for Publishing to Google Play', 'SIL_OwnerAdmin_AppBuilders_Android_GooglePlay', 'SIL_Default_AppBuilders_Android_GooglePlay_Flow', 1, 1)
Expand All @@ -81,8 +86,8 @@ DO UPDATE SET
"StoreTypeId" = excluded."StoreTypeId",
"Type" = excluded."Type";

INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type") VALUES
(8, 'na_android_s3', '1', 'No Admin Workflow for Publishing to S3', 'SIL_NoAdmin_AppBuilders_Android_S3', 'SIL_Default_AppBuilders_Android_S3_Flow', 2, 1)
INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type", "ProductType") VALUES
(8, 'na_android_s3', '1', 'No Admin Workflow for Publishing to S3', 'SIL_NoAdmin_AppBuilders_Android_S3', 'SIL_Default_AppBuilders_Android_S3_Flow', 2, 1, 1)
ON CONFLICT ("Id")
DO UPDATE SET
"Name" = excluded."Name",
Expand All @@ -91,10 +96,11 @@ DO UPDATE SET
"WorkflowScheme" = excluded."WorkflowScheme",
"WorkflowBusinessFlow" = excluded."WorkflowBusinessFlow",
"StoreTypeId" = excluded."StoreTypeId",
"Type" = excluded."Type";
"Type" = excluded."Type",
"ProductType" = excluded."ProductType";

INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type") VALUES
(9, 'pwa_cloud', '1', 'SIL Default Workflow for Publishing PWA to Cloud', 'SIL_Default_AppBuilders_Pwa_Cloud', 'SIL_AppBuilders_Web_Flow', 3, 1)
INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type", "ProductType") VALUES
(9, 'pwa_cloud', '1', 'SIL Default Workflow for Publishing PWA to Cloud', 'SIL_Default_AppBuilders_Pwa_Cloud', 'SIL_AppBuilders_Web_Flow', 3, 1, 3)
ON CONFLICT ("Id")
DO UPDATE SET
"Name" = excluded."Name",
Expand All @@ -103,10 +109,11 @@ DO UPDATE SET
"WorkflowScheme" = excluded."WorkflowScheme",
"WorkflowBusinessFlow" = excluded."WorkflowBusinessFlow",
"StoreTypeId" = excluded."StoreTypeId",
"Type" = excluded."Type";
"Type" = excluded."Type",
"ProductType" = excluded."ProductType";

INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type") VALUES
(10, 'pwa_cloud_rebuild', '1', 'SIL Default Workflow for Rebuilding PWA to Cloud', 'SIL_Default_AppBuilders_Pwa_Cloud_Rebuild', 'SIL_AppBuilders_Web_Flow', 3, 2)
INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type", "ProductType") VALUES
(10, 'pwa_cloud_rebuild', '1', 'SIL Default Workflow for Rebuilding PWA to Cloud', 'SIL_Default_AppBuilders_Pwa_Cloud_Rebuild', 'SIL_AppBuilders_Web_Flow', 3, 2, 3)
ON CONFLICT ("Id")
DO UPDATE SET
"Name" = excluded."Name",
Expand All @@ -115,10 +122,11 @@ DO UPDATE SET
"WorkflowScheme" = excluded."WorkflowScheme",
"WorkflowBusinessFlow" = excluded."WorkflowBusinessFlow",
"StoreTypeId" = excluded."StoreTypeId",
"Type" = excluded."Type";
"Type" = excluded."Type",
"ProductType" = excluded."ProductType";

INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type") VALUES
(11, 'html_cloud', '1', 'SIL Default Workflow for Publishing HTML to Cloud', 'SIL_Default_AppBuilders_Html_Cloud', 'SIL_AppBuilders_Web_Flow', 3, 1)
INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type", "ProductType") VALUES
(11, 'html_cloud', '1', 'SIL Default Workflow for Publishing HTML to Cloud', 'SIL_Default_AppBuilders_Html_Cloud', 'SIL_AppBuilders_Web_Flow', 3, 1, 3)
ON CONFLICT ("Id")
DO UPDATE SET
"Name" = excluded."Name",
Expand All @@ -127,10 +135,11 @@ DO UPDATE SET
"WorkflowScheme" = excluded."WorkflowScheme",
"WorkflowBusinessFlow" = excluded."WorkflowBusinessFlow",
"StoreTypeId" = excluded."StoreTypeId",
"Type" = excluded."Type";
"Type" = excluded."Type",
"ProductType" = excluded."ProductType";

INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type") VALUES
(12, 'html_cloud_rebuild', '1', 'SIL Default Workflow for Rebuilding HTML to Cloud', 'SIL_Default_AppBuilders_Html_Cloud_Rebuild', 'SIL_AppBuilders_Web_Flow', 3, 2)
INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type", "ProductType") VALUES
(12, 'html_cloud_rebuild', '1', 'SIL Default Workflow for Rebuilding HTML to Cloud', 'SIL_Default_AppBuilders_Html_Cloud_Rebuild', 'SIL_AppBuilders_Web_Flow', 3, 2, 3)
ON CONFLICT ("Id")
DO UPDATE SET
"Name" = excluded."Name",
Expand All @@ -139,10 +148,11 @@ DO UPDATE SET
"WorkflowScheme" = excluded."WorkflowScheme",
"WorkflowBusinessFlow" = excluded."WorkflowBusinessFlow",
"StoreTypeId" = excluded."StoreTypeId",
"Type" = excluded."Type";
"Type" = excluded."Type",
"ProductType" = excluded."ProductType";

INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type", "Properties") VALUES
(13, 'asset_package', '1', 'SIL Default Workflow for Publishing Asset Packages', 'SIL_NoAdmin_AppBuilders_Android_S3', 'SIL_AppBuilders_AssetPackage_Flow', 2, 1, '{ "build:targets" : "asset-package" }')
INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type", "Properties", "ProductType") VALUES
(13, 'asset_package', '1', 'SIL Default Workflow for Publishing Asset Packages', 'SIL_NoAdmin_AppBuilders_Android_S3', 'SIL_AppBuilders_AssetPackage_Flow', 2, 1, '{ "build:targets" : "asset-package" }', 2)
ON CONFLICT ("Id")
DO UPDATE SET
"Name" = excluded."Name",
Expand All @@ -152,10 +162,11 @@ DO UPDATE SET
"WorkflowBusinessFlow" = excluded."WorkflowBusinessFlow",
"StoreTypeId" = excluded."StoreTypeId",
"Type" = excluded."Type",
"Properties" = excluded."Properties";
"Properties" = excluded."Properties",
"ProductType" = excluded."ProductType";

INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type", "Properties") VALUES
(14, 'asset_package_rebuild', '1', 'SIL Default Workflow for Rebuilding Asset Packages', 'SIL_Default_AppBuilders_Android_S3_Rebuild', 'SIL_AppBuilders_AssetPackage_Flow', 2, 2, '{ "build:targets" : "asset-package" }')
INSERT INTO "WorkflowDefinitions" ("Id", "Name", "Enabled", "Description", "WorkflowScheme", "WorkflowBusinessFlow", "StoreTypeId", "Type", "Properties", "ProductType") VALUES
(14, 'asset_package_rebuild', '1', 'SIL Default Workflow for Rebuilding Asset Packages', 'SIL_Default_AppBuilders_Android_S3_Rebuild', 'SIL_AppBuilders_AssetPackage_Flow', 2, 2, '{ "build:targets" : "asset-package" }', 3)
ON CONFLICT ("Id")
DO UPDATE SET
"Name" = excluded."Name",
Expand All @@ -165,7 +176,8 @@ DO UPDATE SET
"WorkflowBusinessFlow" = excluded."WorkflowBusinessFlow",
"StoreTypeId" = excluded."StoreTypeId",
"Type" = excluded."Type",
"Properties" = excluded."Properties";
"Properties" = excluded."Properties",
"ProductType" = excluded."ProductType";

INSERT INTO "ProductDefinitions" ("Id", "Name", "TypeId", "Description", "WorkflowId", "RebuildWorkflowId", "RepublishWorkflowId") VALUES
(1, 'Android App to Google Play', 1, 'Build an Android App from a Scripture App Builder project and publish to a Google Play Store. The Organization Admin has to approve of the project and review the store preview. The Organization Admin has access to Google Play Console.', 1, 2, 3)
Expand Down
Loading
Loading