postmark-cli icon indicating copy to clipboard operation
postmark-cli copied to clipboard

Test variables in meta.json are not stored when pushing

Open michie1 opened this issue 5 years ago • 1 comments

In meta.json I changed the TestRenderModel and I pushed the template to my Postmark environment. I would have expected those would show up when showing the preview in the web UI, but the default value is still being shown "name": "name_Value". If I pull the template my local TestRenderModel is overwritten. Is this wanted behavior?

michie1 avatar Jun 04 '20 09:06 michie1

Hey @michie1,

Postmark doesn't store the TestRenderModel in the web UI as of right now. I don't have an ETA on when this will be available. It's on our list though! The TestRenderModel is only used when rendering your templates using the postmark templates preview <directory> command.

If I pull the template my local TestRenderModel is overwritten. Is this wanted behavior?

Yes, this is the current behavior. Though it's not ideal. Each time you pull we validate your template and generate a suggested TestRenderModel just to make sure you have the latest keys. We have plans to cleanly merge this with the current values in your metadata file.

derekrushforth avatar Jun 08 '20 16:06 derekrushforth