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].