-
Notifications
You must be signed in to change notification settings - Fork 97
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
feat: introduce WorkflowsChangelog & WorkflowsChangelogEntry #1206
Conversation
7ce4cfd
to
2c91c4e
Compare
import { wrapCollection } from '../common-utils' | ||
import enhanceWithMethods from '../enhance-with-methods' | ||
|
||
export type WorkflowsChangelogQueryOptions = Omit<PaginationQueryOptions, 'order'> & { |
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.
This has unfortunately changed a bit after the latest discussion I had with @ronaldronson . For now we agreed on this final shape:
export type WorkflowsChangelogQueryOptions = Omit<PaginationQueryOptions, 'order'> & {
'entity.sys.linkType': string
'entity.sys.id': string
'workflow.sys.id': string
}
i.e. entityId, entityType and workflowId all required params for this first iteration.
Other than this PR looks good 🔥 🏅
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.
You mean @ronaldronson ? :P
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.
You mean @ronaldronson ? :P
damn yes 😆 always tricky to find him
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.
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.
PR looks good overall just a change needed for the params shape
🎉 This PR is included in version 7.54.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
Bring our new WorkflowsChangelog to CMA to use it in our frontend app.
Description
We're right now implementing the API
/.../:environmentId/workflows_changelog/
which is a pure read endpoint withgetMany
being the only method. It allows paginating, ordering, and filtering byworkflow
/workflowDefinition
/entity
.Checklist (check all before merging)
When adding a new method:
./lib/export-types.ts