mitre / mitre/GraphEx

Add Node to Iterate Key/Value Pairs for Data Containers

Open
#19 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
Python
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Data containers are the GraphEx equivalent of dictionaries. Currently, they are a bit painful to use in practice. One way to make them easier to work with would be to have a node that retrieves the top level key/value pairs of a given data container. Similar to how you can iterate over a ditionary in python.

There is a node called 'Get Data Container Keys' that you can use for reference when writing this new node. Since we don't know the types of the values, perhaps we just cast them into strings.

Open to discussion on the best way to make this node and/or data container access better in general.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing “Get Data Container Keys” node and the data container node implementations it uses. Read how nodes expose outputs and how container values are represented, then determine how top-level key/value pairs should be returned when value types are unknown. Done means the new iteration node works with a data container and has behavior consistent with the reference node.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.