bug(core): ado describe space crashes on spaces without an entity space

Open
#1,722 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
cli

Research direction

Start by locating the implementation and tests for the ado describe space command, then trace how its entity space and measurement space sections handle missing optional values. Add coverage for spaces without an entity space or experiments, and check whether constraints belong in the description. Done means valid configurations display without raising the reported TypeError.

Written by the indexing model from the issue text.

Description

bug

Summary

ado describe space fails with TypeError: 'NoneType' object is not iterable when a space has no entity space. A space with no experiments appears to hit the same error in the measurement space section. It may be worth making the space description handle these optional parts gracefully.

Motivation

Both the entity space and the experiments are optional in a space configuration, so such spaces are valid. Describing one should show what is there, not crash. The existing None check on the entity space can never trigger, so it doesn't protect against this case. Constraints also don't seem to be shown in the description, which could be worth looking at too.

Scope

  • It could make sense to skip the entity space and measurement space sections of the space description when they are not defined.
  • Showing constraints alongside the entity space might be a reasonable addition.
  • A test covering the description of spaces with missing optional parts would likely help prevent regressions.
Dominant language
Python
Stars
67
Forks
13
Avg merge
4d 10h
Merged PRs (30d)
37

Getting set up

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.

More from IBM/ado

All issues in IBM/ado

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.