You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now when a user adds a new package to the catalog there is no way to detect that the docstring is not valid (for instance it doesn't have parameterized dics) and the package is in the catalog file but it is not shown in the catalog site because the indexer fails when it tries to parse de function docstring.
Note: Reuse the validation in the indexer.
Update the catalog documentation describing this validation.
This is the Polkadot example of a not valid docstring
`def run(plan, chain_type = "local", relaychain = None, parachains = None, explorer = False):
"""
Main function to run the Polkadot relay and parachain setup.
Args:
plan (object): The Kurtosis plan object for orchestrating the test.
chain_type (str): The type of chain (local, testnet or mainnet). Default is local.
relaychain (dict): A dict containing data for relay chain config.
- name (str): Name of relay chain.
- node (dict): A dict of node details.
- name (str): Name of node.
- node_type (str): Type of node.
- prometheus (bool): Boolean value to enable metrics for a given node.
parachains (list): A list containing data for para chain config. Each item in the list has the following:
- name (str): Name of para chain.
- node (dict): A dict of node details.
- name (str): Name of node.
- node_type (str): Type of node.
- prometheus (bool): Boolean value to enable metrics for a given node.
explorer (bool): A boolean value indicating whether to enable polkadot js explorer or not.
Returns:
dict: Service details containing information about relay chains, parachains, and Prometheus.
"""
service_details = run_polkadot_setup(plan, chain_type, relaychain, parachains, explorer)
return service_details`
The text was updated successfully, but these errors were encountered:
Now when a user adds a new package to the catalog there is no way to detect that the docstring is not valid (for instance it doesn't have parameterized dics) and the package is in the catalog file but it is not shown in the catalog site because the indexer fails when it tries to parse de function docstring.
Note: Reuse the validation in the indexer.
Update the catalog documentation describing this validation.
This is the Polkadot example of a not valid docstring
`def run(plan, chain_type = "local", relaychain = None, parachains = None, explorer = False):
"""
Main function to run the Polkadot relay and parachain setup.
The text was updated successfully, but these errors were encountered: