Skip to content

Conversation

@alessandroperilli
Copy link
Owner

Summary

  • add a Nodes Contribution utility node that counts workflow nodes by their source suite
  • expose the breakdown as a multiline string output, including suites without any workflow nodes

Testing

  • python -m compileall nodes/nodes_contribution.py

https://chatgpt.com/codex/tasks/task_e_68d6829697088327a68ff0d4a4347b84

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines +70 to +76
def _installed_suites(self) -> Dict[str, set[str]]:
class_map = self._iter_node_class_mappings()
suites: Dict[str, set[str]] = defaultdict(set)
for node_id, cls in class_map.items():
rel_module = getattr(cls, "RELATIVE_PYTHON_MODULE", None)
suite = self._suite_from_python_module(rel_module)
suites[suite].add(node_id)

Choose a reason for hiding this comment

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

[P1] Fails to identify suites for nodes without RELATIVE_PYTHON_MODULE

Suite detection depends entirely on cls.RELATIVE_PYTHON_MODULE, but most node classes (including those defined in this repository) do not set that attribute. When these nodes are inspected, _suite_from_python_module receives None and all such nodes are collapsed under "Unknown", so the returned breakdown cannot differentiate between custom suites. Consider falling back to cls.__module__ (or other metadata) when RELATIVE_PYTHON_MODULE is missing to produce meaningful counts.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant