PolyAPI  >  Developers  >  Release Notes

PolyAPI – Release 13

Release Notes 

July 30, 2024
Days since last major release: 33 days

Client Improvements

Node

Improvements:

  • Execution ID in Logs – each log statement within server functions now includes execution ID for easier troubleshooting. Filtering with query parameter executionId also allows for easier log consumption.
  • Execution ID in code – ability to read-only access the Poly assigned executionId at runtime within the server functions by using polyCustom.executionId

Bug Fixes

  • Invalid Commands – now explicitly error instead of silently failing. 
  • Spaces in Folder Names – generation of the library was failing when the project directory had spaces in the name on mac. 

Java

Improvements:

  • Any Type – added support for functions which return any to make Java client more compatible with other more flexible language return types. 

Bug Fixes

  • Cross Langage Server Functions – fixed a bug where non-Java server functions were not included in the generated library.  

Python

Improvements:

  • Function Execute – Added the ability to execute a function from the CLI. 

C# (Beta)

Improvements:

  • Server Function Consumption – Ability to invoke and consume server functions from other languages (as C# server functions are not yet supported)

Canopy Service (Poly UI)

Improvements:

  • New UI Pages – Webhooks,  triggers, environments, jobs  
  • Input selector – For example the ability to select the environment for which Keys you would like to see on the api-keys page. 
  • Signup – Configurable signup flow, used for Poly signup at the moment but which could be extended to serve custom signup flows. 
  • Multi-Instance Login page – Ability to link to other instances from login pages to allow users to easily switch to their correct instance. 
  • Logs UI – Ability to view server function logs in the UI. 
  • Timeouts – Configurable idle time and max session times per environment, tenant or instance. 
  • Logo – Ability to set a favicon and login/signup page logo.

Bug Fixes

  • Visibility – Ability to to set the visibility of an app using the API. 

AI Services

Bug Fixes

  • Conversation Classification – Some system level prompts for the AI agent were being stored as user provided prompts in the conversation history. 

 Server & API

Improvements:

  • MFA – Added configurable instance level MFA support for critical actions such as creating, updating, deleting keys, and destructive actions such as deleting environments and tenants. 
  • Audit Logs – Added audit logging and retrieval for create, update and delete operations for primary objects: auth providers, API functions, client functions, server functions, MFA, tenants, users, API keys, applications, and webhooks.  
  • Error Handler Trigger – Ability to configure a trigger of type Error Handler, which will listen for error events across poly and route those to the configured server function with Error Event type. 
  • WhoAmI – added user name, tenant name, environment name, application Id, and application name, and key ID. 
  • Admin API Keys – by default were given all permissions. Now they can be scoped just like user keys. 

Bug Fixes

  • Remove Old Replicas – Server functions that were set to never go to sleep would result in both the old replica and the new one running after a deployment. Now the old ones are automatically terminated.  
  • Immediate FX Availability – Fixed a bug where functions in our European instance were returning 404s if immediately executed after a deploy.

Docs, Public Functions and Content

TS Snippets:

  • Import Statements – showcasing various forms of import options of sub modules, and types.
  • BigTable – sample code of how to do inserts into BigTable. 

Postman Collection

  • More Requests – Added requests to our public Postman API collection for users, keys, and jobs. 

OOB Functions

  • OHIP – Trained an additional 20 operations for Opera Cloud APIs (OHIP): reservations, room availability/assignments, check-outs, folios, payments, and authentication.

Documentation

  • Creating Users and Keys – Added documentation on how to create users and assign API-keys using our management UI here.
  • Configuring and Using MFA – Added a page detailing how to set up and use MFA with Poly. Note that at this time it’s only supported via API usage and will be added to our UI framework in the next release. Doc here.
  • Current Versions – Added info to our versions page for our C# and Java clients here.

Postman Based API Training

Bug Fixes

  • Optional Annotations – //?  within payloads was not being respected on objects and arrays at the time of training. 
  • Variable only in URL –  Urls that only had a {{somevariable}} in the url were appending an extra / at the end, causing some endpoints to not work properly

Infrastructure/DevOps Improvements

Improvements:

  • K8 DB – Moved the Postgres DB into the Kube Application, reducing dependence on external cloud components and reducing self-hosting infra cost. 
  • Server Fx Dashboard – Added invocation counts by user/client application, invocations line chart, and some additional columns to existing tables. 
  • API Key Visibility in KubeCTL – API key was visible to instance admins when doing a describe command for deployed server, now is hidden from plain sight for admins.

Large Scale-up Config – Added a parameter to control container concurrency so that self-hosting customers can scale up to 100s of containers to handle massive loads.