pos-cli, new graphql mutation - form_submit
July 15, 2019
NEW
-
pos-cli
: the oldmarketplace-kit
has been forked into a new package - pos-cli (on github). From now onmarketplace-kit
is in archive mode and will no longer be developed.Follow these steps to migrate from
marketplace-kit
topos-cli
:When using local node installation (for example installed using
nvm
orbrew
):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 themarketplace-kit
command, and remember to update your scripts if they usedmarketplace-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
andparams
. 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 themodels
GraphQL query - Model
IMPROVED
pos-cli
: thegui serve
will return a user friendly message if the port is already taken.pos-cli
: theaudit
command will be automatically run duringdeploy
; 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.
FIXED
- Fixed a couple of issues related to ElasticSearch type collision removal - mainly for related models
- Removed MIT license hardcoded text in Partner Portal