Expand "across" functionality for more introspection/leaf-comparison

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

Maintainers usually reply within 7 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
python
Domain
tooling

Research direction

Start by reading the existing “across” comparison linked as issue #100, then review the referenced config_override_check/utils.py example and glom’s field specification documentation. Define how the requested scopes and modes combine before implementing the comparisons. Done means supporting the four listed use cases and combinations of multiple scopes and modes.

Written by the indexing model from the issue text.

Description

enhancement

Bruno added an "across" comparison here. We should expand this to the following use cases:

  1. Deep diff merged configs for two different environments (rig A vs B)
  2. Find leaves within a scope where a specific field exists
  3. Find redundant overrides (leaf value matches the default config).
  4. Find and list real overrides (leaf value is different than default).

Plus we'll need to handle combinations of multiple scopes and modes.

I did 2, 3, and 4 for the old mpeconfig zookeeper here (UI screenshot below), which is a simpler case. I did however discover glom, which I think we should use for config-field specifications as it handles edge cases nicely.

image
Dominant language
Python
Stars
1
Forks
0
Avg merge
4d 21h
Merged PRs (30d)
17

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

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 AllenNeuralDynamics/ficus

All issues in AllenNeuralDynamics/ficus

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.