Skip to content

Commit 3535ff6

Browse files
Omri-Levyalonp99Blokhchesterkmr
authoredJun 19, 2023
Omri levy/fix/fix headless example (#551)
* feat(headless-example): checkpoint * feat(*): checkpoint * fix(workflows-service): fixed wrong destination on diskStorage * fix(workflows-service): fixed de-sync between external uploadFile and internal affected the fileNameOnDisk property * fix(*): fixed headless-example file upload flow * fix(headless-example): updated the name of the mock certificate of incorporation pdf file * feat(headless-example): now using the workflow document decisions for rejected/approved/revisions * refactor(headless-example): updated the condition for displaying re-submission ui * refactor(headless-example): replaced header auth with api key auth for the headless example * refactor(headless-example): improved flow behavior and added clear user button * feat(vite.config.ts): added sourcemaps * update common * fix(*): can now see the re-submit ui and re-upload documents * Blokh/fix/refactor update category (#517) * added watch for form * feat: finalized update form of category type * removed log * feat(added usewatchdropdown logic for category to type logic): added usewatchdropdown added usewatchdropdown logic for category to type logic * updated compose to edit naming * feat(merged with dev): merged with dev merged with dev + fixed conflicts + updated code after format changes * updated use initial category set * added types to uniqueArrayByKey * fixed entries to document * minor refactoring * updated common version * added find value * Blokh/feat/test infra (#500) * feat(database-infra): generated infra for test creations ( test & nest ) generate database infra for test creations, generated test for end-user in order to test the test-infra * feat: generated global setup and teardown * updated DATABASE_SCHEMA_NAME using zod * fixed comments * removed unnecessary actions and docker compose * updated lock * feat: running foramt * updated DB_CONTAINER type * feat(added testglobal): added TestGlobal * updated pnpm lock * feat: added TESTCONTAINERS_RYUK_DISABLED true * ran commitlint * removed unnecessary wawait * removed test using windows * updated test runnign strategy * removed windows test as it does not support db request * feat(added support for unit test ing test and e2e test): added support for unit test added support for unit test, integration test and e2e test * added different ci for ubuntu and windows * updated commons * removed unit test from browser sdk * removed unit test from workflow * fixed package json * removed unit test from node-sdk * added crossenv * merged with dev * fixed enduser test * reverted removal of unittest * ran format * updated nx json * added unit test for workflow core * fixed nx json * fixed duplicated tests configuration on nx * reverted remoival of lint * merged with dev * feat: added handling of prisma validation errors to workflow controller (#511) * feat: added handling of prisma validation errors to workflow /run controller * feat: moved prisma validation filter to global level * feat: implemented prisma validation errors parser & added parse output to filter * feat: added handling of unknown arguments exceptions from prisma * feat: added ansi codes removal from exception * use clean ansi fn --------- Co-authored-by: Alon Peretz <[email protected]> * fix(backoffice-v2): no longer rendering an empty block if there's no entity data * fix(*): now displaying the entity data when uploading docs from the headless example * feat(backoffice-v2): fixed the size of the navbar checkboxes * feat(*): checkpoint * add kyb w/ external request (#541) * feat(examples-kyb): kyb example w/ external request * feat(examples-kyb): kyb example w/ external request * fix(headless-example): fixed mock photos' names and removed the type field - broke dropdowns * fix(backoffice-v2): fixed document category initilizing with undefined * revert(backoffice-v2): reverted the changes to useInitialSetCategory * fix(backoffice-v2): fixed errors from the devtools logs due to wrong placement of controller shadcn select form controller placement * fix(backoffice-v2): fixed useWatchDropdownOptions no longer overrides document type to "undefined" * fix(backoffice-v2): fixed document type resetting to "undefined" * fix(*): no longer using hardcoded propertiesSchema * update common lib * feat(workflow-def): enable mulitple active workflows * update pnpm lock * fix(seed.ts): updated seed.ts so information shows and is editable for the example * updated cookie secure to false for testing * added secure proxy to cookie logic * added trust proxy key to app * added trust proxy key to app * added trust proxy key to app * reverted unnecessary changes * reverted unnecessary changes * added secureProxy * removed secured of cookie * updated removed http only * added secured false * remove cookie domaun * fix(*): fixed useUpdateWorkflowByIdMutation previously used the wrong query keys and updated data wrong * fix(*): no longer returning an empty function to appease eslint * fix(remove-ansi-escape-codes.ts): added eslint ignore for no-control-regex - makes sense here * refactor(workflows-service): moved assignIdToDocuments into the repository level for create moved to updateWorkflowRuntimeData for update * fix(setformdata): removed redundant useState * refactor(backoffice-v2): made the parentMachine object have a default of an empty object creating workflows from the api will no longer fail if no parentMachine was specified * revert(backoffice-v2): reverted mistakenly workflow by id schema was removed * refactor(backoffice-v2): replaced default with optional for parentMachine validation --------- Co-authored-by: Alon Peretz <[email protected]> Co-authored-by: Daniel Blokh <[email protected]> Co-authored-by: Ilya Rudnev <[email protected]> Co-authored-by: blokh <[email protected]>
1 parent c03f8fc commit 3535ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎apps/backoffice-v2/src/domains/workflows/fetchers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const WorkflowByIdSchema = z.object({
6262
entity: z.record(z.any(), z.any()),
6363
parentMachine: ObjectWithIdSchema.extend({
6464
status: z.union([z.literal('active'), z.literal('failed'), z.literal('completed')]),
65-
}).default({}),
65+
}).optional(),
6666
}),
6767
entity: ObjectWithIdSchema.extend({
6868
name: z.string(),

0 commit comments

Comments
 (0)
Please sign in to comment.