Platform 2020.03.30
On production sites
This release simplifies names and folders, and changes a few defaults.
Names come from file paths
The name of admin resources such as authorization policies, notifications, forms and model schemas is now taken from physical_file_path. For example, app/authorization_policies/dir/my_policy.liquid gets the default name dir/my_policy. You can still set your own name with the name attribute.
Simpler folders for notifications
The notifications folder structure is now flat. The new folders are app/emails, app/smses and app/api_calls. For example, instead of app/notifications/email_notifications/my_email.liquid, you can now use app/emails/my_email.liquid.
Change a property type and keep your data
When you change the type of a property, for example from string to integer, Insites updates all the data for you. If a value cannot be converted, you get a validation error and deploy or sync fails until you fix the data, for example with GraphQL mutations.
Deleted records are hidden by default
The models and users queries no longer return deleted objects by default. To get soft deleted records, filter on the deleted_at field.
More JWT algorithms
The JSON Web Token (JWT) filters support more algorithms, and you can set the algorithm for the JWT mutation.
Also in this release
- Extra validation checks that
physical_file_pathhas the right extension, for exampleliquidfor forms and authorization policies andymlfor model schemas - The error message for
layout_pathandlayoutno longer shows the confusinglayouts/prefix in its suggestions - Better validation of domain names