-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Move internal dynamic categories to use JSON #5580
Comments
Hi team, I would love to work on this. Thanks |
Hi @bhsingla! This is being worked on in the |
how can i work on this? |
Is this issue still available ? @BeksOmega |
Yep go for it @Apoorvgarg-creator ! |
@BeksOmega Thanks for Assigning it to me, Since it's a feature request and I am new to blockly, I would appreciate if you could give me a brief on how to get started with the feature ! What all should I know and how to test my features. |
Oh whoops, this shouldn't have been marked as a feature request! The issue is to convert toolboxes categories which are currently defined using XML to use JSON. You can see here how XML is being constructed for the variable category. You should refactor the We want to switch all three functions linked in the original issue to use JSON. You can do that all at once, or you can submit PRs for each individual function. Whatever works better for you! Let me know if you have any further questions =) |
@BeksOmega Thank you for the help ! |
@Apoorvgarg-creator are you still interested in working on this? |
@BeksOmega Yes, I took a little break. Sorry for the inconvenience. |
You're good no rush! I was just going through the active issues and seeng if there were any I could mark as available again :P Thanks for your interest in this! |
@BeksOmega, do we have to add unit test cases for this issue ? |
It would be great to add unit tests for this if you have time =) But otherwise that can be split off into a separate issue! |
@BeksOmega, I saw you created common functions to createElement in Xml in a file xml.ts. Should I Use the same approach for creating in JSON ? |
You should just be able to return plain old object literals! so no helpers necessary for JSON. |
@BeksOmega Thank you for the help ! |
To manually test the variables you can open up the variable category, click the "create variable" button, and test that a variable block properly shows up in the flyout. To manually test the procedures you can open up the function category, drag out a function definition block, and then reopen the procedure category and test that the procedure caller block properly shows up in the flyout. |
@BeksOmega Thank you |
How to set variable name in JSON structure |
@BeksOmega, I solved it for variables and dynamic variables, Can you please once check the PR, I am not sure how to proceed for procedures. |
@BeksOmega is this issue available? |
Is your feature request related to a problem? Please describe.
The XML serializaation system is being iceboxed, so internal usages of the XML system should be moved to the new JSON system.
In particular, dynamic categories which are internal to Blockly should be changed to use JSON
Describe the solution you'd like
Describe alternatives you've considered
N/A
Additional context
Note that currently we suport dynamic categories being defined in JSON or XML, but it's good to move the internal definitions to JSON.
The text was updated successfully, but these errors were encountered: