How to implement an override table?

Hey. Business wants to override a table that I'd like to keep free of tampering. So I'm thinking to create a the_table_override that can be merged at some other stage. But of course I'd like to keep the Ash Resources in sync schema wise. So if I chance the main one the other follows. Is there a way to create a new resource that mirrors another one at all times? I imagine macros is the answer, but maybe there's another path?
7 Replies
barnabasj
barnabasj•3mo ago
You can create a fragment with the attributes and other shared things and use that in both places.
kristerv
kristervOP•3mo ago
oh okay, that's pretty clean. nice. i would imagine this doesn't allow to add an attribute to just one of the resources easily, right?
barnabasj
barnabasj•3mo ago
yes you can, the blocks get merged, there can be some quirks around default values though, but I think that doesn't affect attributes
kristerv
kristervOP•3mo ago
oh man, that's amazing. thanks! makes this task super easy.
ZachDaniel
ZachDaniel•3mo ago
I think we fixed that but maybe not I think I thought I fixed it last time too lol
kristerv
kristervOP•3mo ago
i guess i'll be double checking it 🙂
barnabasj
barnabasj•3mo ago
Might have slipped by me

Did you find this page helpful?