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

Improvement/execution and serialization cleanup #289

Merged
merged 11 commits into from
Feb 2, 2023

Conversation

essweine
Copy link
Contributor

@essweine essweine commented Feb 1, 2023

This PR cleans up serialization significantly.

It does NOT change the output of the serialization process, it is simply a reorganization and consolidation of what previously existed. Task data serialization also remains unchanged,

All spec conversions are now specified when creating a workflow spec converter rather than the old mishmash of top-level and localized to task specs, making it much more easily extendable (and hopefully understandable).

It also adds predefined spec configurations for the spiff and camunda packages.

It goes a long way toward realizing my initial vision for the serializer.

It also includes some cleanup of how tasks move to READY. Previously, the method documentation for task_spec._update_hook indicated that it should return True if the task should become ready. Instead, tasks automatically became READY, which means that they automatically moved to COMPLETE, whether they should run or not. Changing this behavior makes it easier to manage state changes and should cut out some useless state transitions.

A few instances of open were changed to use a context.

Finally, I've removed an unused test and a bunch of unused diagrams from the test data.

@essweine essweine requested a review from jbirddog February 1, 2023 23:40
@essweine
Copy link
Contributor Author

essweine commented Feb 2, 2023

There could be some conflicts related to the script engine changes as well. Let's merge that first, and then I'll fix any conflicts in one go.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

97.9% 97.9% Coverage
0.0% 0.0% Duplication

@essweine essweine merged commit 0e61be8 into main Feb 2, 2023
@essweine essweine deleted the improvement/execution-and-serialization-cleanup branch February 2, 2023 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants