Skip to content

fix: mark properties as transient in CapabilityWizardlet, QuickAgent, and BaseWizardlet#4629

Draft
abdelaziz-mahdy wants to merge 1 commit intodevelopmentfrom
fix-json/j-export-for-service-provider
Draft

fix: mark properties as transient in CapabilityWizardlet, QuickAgent, and BaseWizardlet#4629
abdelaziz-mahdy wants to merge 1 commit intodevelopmentfrom
fix-json/j-export-for-service-provider

Conversation

@abdelaziz-mahdy
Copy link
Collaborator

@abdelaziz-mahdy abdelaziz-mahdy commented Nov 25, 2025

fix json/j export on the client.

dont know if it breaks the normal flows though @jlhughes @noodlemoodle please check since I dont use them

@sarthak-marwaha
Copy link
Collaborator

I think this will break some wizards, testing, please hold off on merging

{
name: 'wao',
hidden: true,
transient: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This can not be transient, it is expected that the server will send this to the client

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think what this really needs is a proper parser to be set for java since wao is a js only concept. So all you should need is an UnknownFObjectParser. Same for the exceptionAgent

{
class: 'foam.util.FObjectSpec',
name: 'exceptionAgent',
transient: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also can't be transient, the idea is that this should be able to be set in a journal per capability, and while that doesn't happen now. I would like to retain the functionality

@abdelaziz-mahdy abdelaziz-mahdy marked this pull request as draft December 2, 2025 14:15
@abdelaziz-mahdy
Copy link
Collaborator Author

converted to draft to avoid merging by mistake.

@kgrgreer
Copy link
Owner

kgrgreer commented Dec 2, 2025

Wouldn't it be easier to just not output to JSON/J if the property doesn't have a dedicated class:? All of these properties don't specify class: so are just instances of foam.lang.Property so wouldn't appear on the server because they wouldn't have Java types.

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.

3 participants