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

Add support for decisions that take no action #1071

Merged
merged 3 commits into from
Aug 4, 2022

Conversation

area
Copy link
Member

@area area commented Jul 22, 2022

Closes #1068.

Not happy with the ternary, would very much like a function with a more understandable if statement, but can't come up with a semantic name for that function beyond finalizableOrFinalized. Please suggest something!

Should the 'special action' be longer than just a signature? Obviously it's all meaningless, but...

@area area force-pushed the feat/simple-decisions branch from 5348c4d to d128a8b Compare July 22, 2022 15:47
@area area added the feature label Jul 22, 2022
@area area force-pushed the feat/simple-decisions branch from d128a8b to 42bcede Compare July 22, 2022 17:21
@kronosapiens
Copy link
Member

My first comment here is you bought up the idea of having this be a separate extension, so colonies can choose to install these individually. Is this just a prototype implementation for feedback, or do you want to keep the functionality bundled?

@area
Copy link
Member Author

area commented Jul 25, 2022

See my comment on #1068

@area area force-pushed the feat/simple-decisions branch from 42bcede to 7d16570 Compare July 26, 2022 13:37
@area area force-pushed the feat/simple-decisions branch from 7d16570 to 56df1f6 Compare August 2, 2022 09:38
@area area force-pushed the feat/simple-decisions branch from 69cd0f8 to 1051dcf Compare August 2, 2022 10:24
Copy link
Member

@kronosapiens kronosapiens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd actually be inclined to call the function finalizable() because in ~most cases it returns the Finalized state, and so would make getMotionState read a bit better. The intended state in those branches is Finalizable except for this new exception, so Id' say we could justify tucking that exception away in the finalizable function for people who are curious. But I'll leave that up to you.

@kronosapiens kronosapiens merged commit c0f8eee into develop Aug 4, 2022
@kronosapiens kronosapiens deleted the feat/simple-decisions branch August 4, 2022 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Simple Decisions extension
2 participants