-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Activate/Deactivate workflow and Discard Draft #7022
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Devessier
force-pushed
the
activate-deactivate-workflow
branch
2 times, most recently
from
September 20, 2024 09:40
980f09b
to
df8f2bf
Compare
Devessier
commented
Sep 20, 2024
packages/twenty-front/src/modules/workflow/hooks/useWorkflowWithCurrentVersion.tsx
Outdated
Show resolved
Hide resolved
Devessier
commented
Sep 20, 2024
@@ -48,6 +50,8 @@ export class WorkflowVersionValidationWorkspaceService { | |||
where: { | |||
workflowId: payload.data.workflowId, | |||
status: WorkflowVersionStatus.DRAFT, | |||
// FIXME: soft-deleted rows selection will have to be improved globally | |||
deletedAt: IsNull(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discarded drafts (soft deleted) were corrupting this check.
Devessier
commented
Sep 20, 2024
...c/modules/workflow/workflow-trigger/workspace-services/workflow-trigger.workspace-service.ts
Show resolved
Hide resolved
thomtrp
reviewed
Sep 20, 2024
packages/twenty-front/src/modules/workflow/components/RecordShowPageHeaderWorkflow.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/workflow/components/RecordShowPageHeaderWorkflow.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/pages/object-record/RecordShowPage.tsx
Outdated
Show resolved
Hide resolved
...c/modules/workflow/workflow-trigger/workspace-services/workflow-trigger.workspace-service.ts
Show resolved
Hide resolved
packages/twenty-front/src/modules/workflow/hooks/useWorkflowWithCurrentVersion.tsx
Outdated
Show resolved
Hide resolved
thomtrp
reviewed
Sep 23, 2024
packages/twenty-front/src/modules/workflow/hooks/useCreateStep.tsx
Outdated
Show resolved
Hide resolved
...c/modules/workflow/workflow-trigger/workspace-services/workflow-trigger.workspace-service.ts
Show resolved
Hide resolved
Devessier
force-pushed
the
activate-deactivate-workflow
branch
from
September 24, 2024 08:34
13ab33f
to
a5270fa
Compare
…rsion (no version prior to this one)
This reverts commit d40f90d.
…e component and rename workflow actions
Devessier
force-pushed
the
activate-deactivate-workflow
branch
from
September 25, 2024 10:51
8abdda6
to
f21a854
Compare
charlesBochet
force-pushed
the
activate-deactivate-workflow
branch
from
September 25, 2024 15:28
59361ab
to
5018155
Compare
Thanks @Devessier for your contribution! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Setup
This PR can be tested only if some feature flags have specific values:
IsWorkflowEnabled
equalstrue
IsQueryRunnerTwentyORMEnabled
equalsfalse
These feature flags weren't committed to don't break other branches.
What this PR brings
Spotted bugs that we must dive into
Duplicate workflow versions in Apollo cache
CleanShot.2024-09-20.at.12.18.49.mp4