Update metadata if dataset features are modified
COLLABORATOR
@lhoestq I'll try to add a test later if you think this approach with the wrapper is good.
2021-03-21T16:54:35Z
https://github.com/huggingface/datasets/pull/2087#issuecomment-803621409
https://api.github.com/repos/huggingface/datasets/issues/2087
MDEyOklzc3VlQ29tbWVudDgwMzYyMTQwOQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/803621409/reactions
2021-03-21T16:54:35Z
https://api.github.com/repos/huggingface/datasets/issues/comments/803621409
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
MEMBER
Awesome thank you !
Yes this approach with a wrapper is good :)
2021-03-22T10:15:07Z
https://github.com/huggingface/datasets/pull/2087#issuecomment-803945318
https://api.github.com/repos/huggingface/datasets/issues/2087
MDEyOklzc3VlQ29tbWVudDgwMzk0NTMxOA==
https://api.github.com/repos/huggingface/datasets/issues/comments/803945318/reactions
2021-03-22T10:15:07Z
https://api.github.com/repos/huggingface/datasets/issues/comments/803945318
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
COLLABORATOR
@lhoestq Added a test. To verify that this change fixes the problem, replace:
```
!pip install datasets==1.5
```
with:
```
!pip install git+https://github.com/mariosasko/datasets-1.git@update-metadata
```
in the first cell of the notebook that is attached to the linked issue.

The CI failure is unrelated I think (building the docs locally doesn't throw an error).
2021-04-06T00:13:20Z
https://github.com/huggingface/datasets/pull/2087#issuecomment-813734019
https://api.github.com/repos/huggingface/datasets/issues/2087
MDEyOklzc3VlQ29tbWVudDgxMzczNDAxOQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/813734019/reactions
2021-04-06T00:13:20Z
https://api.github.com/repos/huggingface/datasets/issues/comments/813734019
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
MEMBER
The CI fail for the docs has been fixed on master.
Merging :)
2021-04-08T17:27:43Z
https://github.com/huggingface/datasets/pull/2087#issuecomment-816005122
https://api.github.com/repos/huggingface/datasets/issues/2087
MDEyOklzc3VlQ29tbWVudDgxNjAwNTEyMg==
https://api.github.com/repos/huggingface/datasets/issues/comments/816005122/reactions
2021-04-08T17:27:43Z
https://api.github.com/repos/huggingface/datasets/issues/comments/816005122
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
This PR adds a decorator that updates the dataset metadata if a previously executed transform modifies its features. 
Fixes #2083 
