-
Notifications
You must be signed in to change notification settings - Fork 72
feat: add status and statusMessage to InstructionNode #936
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
Conversation
🦋 Changeset detectedLatest commit: de9dff3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Hey, thanks for tackling this! How would you feel about creating a new Then we can have a helper in We'll also need to update core visitors so that the new node is registered properly and release a matching PR in Finally, I think we can drop the |
yep sounds good to me so status can be transformed/validated separately |
|
hey @lorisleiva created InstructionStatusNode as a separate node attached to InstructionNode as optional status added the helper in @codama/nodes and updated all core visitors. also got the matching codama-rs pr ready will raised later one que changeset bot flagged missing changeset do i need to add one or is that handled separately? |
lorisleiva
left a comment
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.
Hey! Sorry for the late review, I wanted to take my time to review this thoroughly.
I've made a couple of comments but structurally I think this is good!
Regarding changeset, yes could you please run changeset locally and follow the prompts? It'll ask you which packages are being affected by this PR (should auto-suggests the ones that have changes for you) and it will then ask for a bump level and a message.
I'd stay we go for a minor bump here because it's not a breaking change but it's a new feature.
Let me know when you have the Rust PR ready as well please. 🙏
Thanks again for you help with this!
|
@lorisleiva, yes, thank you for the review I’ll run the changeset locally and check it out. Btw the Rust PR is ready as well. I haven’t raised a bcs because I want your feedback, but here it is - codama-idl/codama-rs#75 |
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.
Tysm! Just a couple of small comments and we're there.
EDIT: One of the tests is failing as well I think because of a status residue somewhere.
|
For the lint issues, you should be able to run |
Linting should be fixed now :) |
lorisleiva
left a comment
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.
Thank you!
#263 cc @lorisleiva