page slug can now consist of any components: Previously the page slug had to be maximum three levels deep. The improvement allows you to provide any slug you want, for example /one/two/three/four/five. However, please note that if you define page /one/two/three/four you won't be able to access /one/two/three/four/five - template slugs still work only for three-level deep slugs.
{{ form }} output improved: The form variable will not include magical keys anymore, the output now corresponds to the fields defined in form configuration.
{{ hash }} and {{ array }} will render proper JSON: You don't need to use the json filter. {{ users | json }} will become {{ users }}. The change is backward compatible, meaning the extra | json is just unnecessary but does not break anything.
added filter by searchable field to admin_pages graphql endpoint: With a new filter you can exclude some pages from being shown in search results.
Platform Update
July 15, 2019
Improvement
pos-cli: the gui serve will return a user friendly message if the port is already taken.
pos-cli: the audit command will be automatically run during deploy; its performance has been greatly improved.
Redesigned emails for modules in Partner Portal
Renamed Customization to Model and CustomModelType to Model Schema - all existing occurrences of deprecated namings were removed from examples, documentation and platform.
New Feature
pos-cli: the old marketplace-kit has been forked into a new package - [pos-cli] ([on github]). From now on marketplace-kit is in archive mode and will no longer be developed.
Follow these steps to migrate from marketplace-kit to pos-cli:
When using local node installation (for example installed using nvm or brew):
`npm r -g @platform-os/marketplace-kit
npm i -g @platformos/pos-cli
`
When using global node installation (use sudo if the version without it does not work):
`sudo npm r -g @platform-os/marketplace-kit
sudo npm i -g @platformos/pos-cli
`
From now on, use the pos-cli command instead of the marketplace-kit command, and remember to update your scripts if they used marketplace-kit.
form_submit mutation was added to GraphQL: This new mutation will trigger a form submission along with invoking authorization policies and validation. It accepts two parameters: form_name and params. This way, you will be able to easily validate any user parameters against a given form configuration and persist it if valid. Most useful for creating API endpoints which re-use existing form configurations.
Added the possibility to fetch related users for the models GraphQL query - [Model]
Bug Fix
Fixed a couple of issues related to ElasticSearch type collision removal - mainly for related models
Removed MIT license hardcoded text in Partner Portal
Platform Update
March 04, 2019
Improvement
form_name optional: No need to duplicate GraphQL mutation input via Form - the form_name attribute is now optional in GraphQL mutations like user_create, user_update, customization_update, etc. You can still use it if you want to leverage existing configuration doing something in a callback/async callback or for sending emails, but you don’t have to.
Set http_status to Authorization Policy: Added possibility to set http_status to Authorization Policy (previously hardcoded to 403). This allows you to render your custom 404 when an Auth Policy is violated. Moreover, now you can also customize 403, 500, and 503 (maintenance) pages by creating a page with the corresponding slug - 403, 500, or 503.
Bug Fix
Double error message: Fixed double error message for image validation (that occurred in some cases).
Platform Update
February 25, 2019
Improvement
Protected context.constants: context.constants are now properly protected from accidental leaking. They won’t be visible when you do {{ context }}, you have to explicitly call {{ context.constants }}. Soon, we will add a UI to add/remove them via the Partner Portal.
New Feature
Added context.device key: It includes information about device type, like desktop, smartphone, etc. Should save you some work.
Search by ID for admin_* queries: Added the possibility to search by ID for admin_* queries. Also, added metadata to all admin_* resources (possible to set them via GraphQL).
User session timeout: You can now change the duration of a user session to control when the user timeouts.
Developer guide icon
Follow our step-by-step tutorial to learn more about [Updating Instance Configuration and setting the duration of a user session].
Platform Update
February 18, 2019
Improvement
Bulk update all data: We have pushed some data import/export improvements. Now, you should be able to use data import to actually bulk update all data, not only the ones which were imported initially.
Deleting line in yml file: Deleting line in a yml file will work as expected - as if it never has been there, instead of pretending it was not deleted. This bug forced you to explicitly set the property to a blank string instead of just removing it, like for callback_actions in Form, etc. It will be applied only to new Instances, because we did not want to risk breaking your Instances with the next deploy if for some reason you unknowingly relied on this bug. We will add a flag to the Partner Portal soon which would allow you to leverage the bug fix in a controlled way for existing Instances.
New Feature
Properties for all users: You can now set properties directly in the user object, no need to go through the user profile. You can define properties all users should have via the app/user.yml file.
Developer guide icon
Follow our step-by-step tutorial to learn more about [Creating a Property for All Users].
Liquid in page metadata: Page metadata now accepts Liquid and it will evaluate it for each page render. Same for layout.
Migration invoked during module installation: Migrations added to the module will now be invoked during module installation, no need to do the full deploy.
Platform Update
November 26, 2018
Improvement
Using parse_json filter while keeping your json tidy and formatted forced you to use capture.
parse_json tag is basically a hybrid of capture and to_hash, it parses json string inside of the tag and converts it to a hash.
Why would you want to convert your json config to a hash?
To be able to iterate over it, use filters that will modify the structure, traverse the tree.
Try to not profile a page on production, as it can result in performance hit. If you absolutely have to, make sure to disable it right after you trigger the request to the page, to minimize the risk of leaving profiling enabled for a long period of time.
Platform Update
October 18, 2018
Improvement
Some users reported issues with running very long tasks in async_callback_actions because the task was too slow to execute.
Before, you had no control or information about limits, errors, timeouts.
You have full control over priority of your async_callback_actions.
If you don't set priority at all, it will be set to default.
You can also set maximum number of attempts if job fails for whatever reason - timeout, error in the code, 3rd party api not responding
Default is 1. Use it with caution, as every attempt uses resources.
`
[...]
async_callback_actions:
delay: 10
priority: low
max_attempts: 2
content: >
{% graphql res = 'long_running_task' %}
[...]
`
Priority
Timeout
high
1 minute
default
5 minutes
low
4 hours
Keep them in mind when writing code so that it runs fast enough for its priority.
Additionally, when a job fails or timeouts it will be logged so you will know when something goes wrong.
You can access the log using pos-cli logs command.
Platform Update
September 20, 2018
Improvement
In this release notes we will focus on new liquid filters, fixed filter and one new feature.
This filter allows you to add new key-value pairs into existing hash.
This filter was returning string that was longer than expected. Now it returns string of length that you want.
`
{{ 10 | random_string }} => '6a1e7e2629'
{{ 2 | random_string }} => '8b'
`
You have the possibility to send binary files in API call. This might be useful when integrating your system with external APIs that require additional data from your users, for example photo.
Read guide [Sending a Binary File Using an API Call Notification] to learn more.
New Feature
Last edit:
Platform Update
September 03, 2018
Improvement
We are introducing two filters to allow you usage of [JSON Web Tokens].