You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Metadata can appear to be set directly, but doesn't work: unfriendly to the user #993
I see that it looks like I can set metadata properties after creating them, but it doesn't actually update the metadata. I think it should either work, or we should raise an error if possible:
Tough one this as supporting the assignment (recursively) is not that simple, possible though I assume. We could return a frozendict, but would need a nice error message. I'll look into supporting the assignment, if it gets too hairy (for example should `del tc.metadata['foo']['bar'] work?) I'll try freezing.
I'd say a frozendict would be a good first step - actual assigmnent will be hairy and would need some more low-level infrastructure for setting values in rows.
Activity
jeromekelleher commentedon Nov 13, 2020
Thoughts @benjeffery?
benjeffery commentedon Nov 13, 2020
Tough one this as supporting the assignment (recursively) is not that simple, possible though I assume. We could return a frozendict, but would need a nice error message. I'll look into supporting the assignment, if it gets too hairy (for example should `del tc.metadata['foo']['bar'] work?) I'll try freezing.
jeromekelleher commentedon Nov 13, 2020
I'd say a frozendict would be a good first step - actual assigmnent will be hairy and would need some more low-level infrastructure for setting values in rows.
benjeffery commentedon Nov 13, 2020
Ah, yes. I'd only considered the ts-level case.
hyanwong commentedon Nov 13, 2020
Making it read-only would be fine, IMO.
petrelharp commentedon Apr 14, 2025
FWIW here's a situation where (I'm not sure but I suspect) things were hard to figure out for a user because it seems like you can just change metadata but it doesn't do anything: https://groups.google.com/g/slim-discuss/c/N2v0fyiYOoQ/m/pHZ9h5v0CAAJ
A natural thing for this user to try would have been
but those just silently do nothing.
jeromekelleher commentedon Apr 14, 2025
Retuning a frozendict is an easy thing to do for 1.0 I think @benjeffery ?
benjeffery commentedon Jun 6, 2025
Closing for #3156