You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we plan to introduce more workflow types in the backoffice, we need to refactor the current structure to better separate workflows by type. This involves creating dedicated Django apps for each workflow type, updating models, serializers, API endpoints, and ensuring changes are reflected in OpenSearch and the UI.
Separate Workflow Types:
Create a separate Django app for each type of workflow (starting with authors).
Move the existing Workflow model under the authors app.
Update API Endpoints:
Change the current workflows endpoint from /api/workflows to /api/workflows/authors.
Ensure all new workflow types will have dedicated endpoints under /api/workflows/{type}.
Serializer and Model Refactoring:
Separate serializers for each workflow type.
Ensure that models are properly refactored and cleaned, removing unnecessary components like core that are no longer relevant, for example core for authors.
OpenSearch Index Update:
Update Elasticsearch indices to reflect the new workflow structure.
Ensure the indices are properly aligned with the refactored models and endpoints.
UI Update:
Ensure the UI is updated to call the new API endpoint /api/workflows/authors for author workflows.
Test and verify that the UI behaves correctly with the new structure.
Acceptance:
A more modular workflow system with dedicated apps, serializers, and endpoints for each workflow type. The new /api/workflows/authors endpoint should be fully functional, with corresponding updates in Elasticsearch and the UI.
The text was updated successfully, but these errors were encountered:
As we plan to introduce more workflow types in the backoffice, we need to refactor the current structure to better separate workflows by type. This involves creating dedicated Django apps for each workflow type, updating models, serializers, API endpoints, and ensuring changes are reflected in OpenSearch and the UI.
Separate Workflow Types:
Update API Endpoints:
Serializer and Model Refactoring:
OpenSearch Index Update:
UI Update:
Acceptance:
A more modular workflow system with dedicated apps, serializers, and endpoints for each workflow type. The new /api/workflows/authors endpoint should be fully functional, with corresponding updates in Elasticsearch and the UI.
The text was updated successfully, but these errors were encountered: