ActiveCampaign / postmark-cli

The official CLI tool for Postmark
https://postmarkapp.com
MIT License
79 stars 9 forks source link

Test variables in meta.json are not stored when pushing #29

Open michie1 opened 4 years ago

michie1 commented 4 years ago

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?

derekrushforth commented 4 years ago

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.