enthought / enthought/chaco

Clarify / Remove use of metadata, metadata_changed, etc traits

Open
#596 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
305
Forks
97
PR merge metrics
No merged PRs in 30d

Description

**Problem Description**
Currently Chaco does some pretty confusing things in regards to metadata.
There are:
- traits named metadata
- traits name metadata_changed
- magically named `_metadata_changed` methods which simply set the `metadata_changed` trait to `True` when the `metadata` trait changes
- a method name `metadata_changed` (no leading underscore) that gets hooked up as a change handler listening for changes on the `metadata_changed` trait. (Note this method has been renamed to `metadata_updated`)

All of this is rather confusing, and likely unnecessary.
We need to investigate how all of this is working more closely and see if it can all be replaced with newer traits features.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.