Skip to content

Releases: ApiLogicServer/ApiLogicServer-src

Date defaults, Windows Project Start Failure bug fix and Sample App Behave test

27 Feb 03:31
Compare
Choose a tag to compare

This release is available via pip and Docker. It is a re-release of 10.03.04 with an additional bug fix, noted below.

Features

Join Support for the RowDictMapper

This provides simplified support for accessing join fields.

Important: Breaking Change

This change affects existing projects if you want to use it:

  1. Install the revised RowDictMapper: rebuild the sample project, and copy the integration/system/RowDictMapper to your project
  2. Update your RowDictMapper classes as shown below -- the import statement, and the additional parameter on the __init__ function.
from logic_bank.exec_row_logic.logic_row import LogicRow

class OrderShipping(RowDictMapper):
    
    def __init__(self, logic_row: LogicRow = None):

LogicBank defaults for Date, DateTime

This version contains a new version of LogicBank that provides defaults for CURRENT_TIMESTAMP.

 
 


Bug Fixes

This release addresses many issues. The first issue is critical, the others less so.

  1. Windows projects fails to start with Config issue: a config issue in the Windows projects' config directory

  2. Behave Tests on Sample Apps show Optimistic Locking Failures: the Behave tests were improperly coded under the impression that checksum values are platform independent. This is an error in the test coding, not the Optimistic Locking functionality.

  3. ApiLogicServer rebuild-from-database fails if no yaml exists: this is now fixed. If you have not altered your yaml, just delete it for a complete rebuild. (Formerly, you had to rename the merge file.)

  4. Sample App may fail good_order behave test: new in 10.03.06, this fixes a bug generating the sample app, which was missing some sqlite-specific fixes for cascade delete. This manifested in Behave Test Failures for "Good Order".

 

Internal Issues

The following affect API Logic Server internal development, that is, building and testing API Logic Server.

  1. Build and Test platforms: many internal changes so that the Build and Test procedure runs on all 3 platforms. More info TBD.

Date defaults, Windows Project Start Failure bug fix

25 Feb 04:29
Compare
Choose a tag to compare

This release is available via pip and Docker.

Features

Join Support for the RowDictMapper

This provides simplified support for accessing join fields.

Important: Breaking Change

This change affects existing projects if you want to use it:

  1. Install the revised RowDictMapper: rebuild the sample project, and copy the integration/system/RowDictMapper to your project
  2. Update your RowDictMapper classes as shown below -- the import statement, and the additional parameter on the __init__ function.
from logic_bank.exec_row_logic.logic_row import LogicRow

class OrderShipping(RowDictMapper):
    
    def __init__(self, logic_row: LogicRow = None):

LogicBank defaults for Date, DateTime

This version contains a new version of LogicBank that provides defaults for CURRENT_TIMESTAMP.

 
 


Bug Fixes

This release addresses many issues. The first issue is critical, the others less so.

  1. Windows projects fails to start with Config issue: a config issue in the Windows projects' config directory

  2. Behave Tests on Sample Apps show Optimistic Locking Failures: the Behave tests were improperly coded under the impression that checksum values are platform independent. This is an error in the test coding, not the Optimistic Locking functionality.

  3. ApiLogicServer rebuild-from-database fails if no yaml exists: this is now fixed. If you have not altered your yaml, just delete it for a complete rebuild. (Formerly, you had to rename the merge file.)

 

Internal Issues

The following affect API Logic Server internal development, that is, building and testing API Logic Server.

  1. Build and Test platforms: many internal changes so that the Build and Test procedure runs on all 3 platforms. More info TBD.

Bug Fix for Sampi_AI

16 Feb 22:47
Compare
Choose a tag to compare

Fixes an issue in sample_ai, described here.

You do not need to re-install if you are not using this sample.

Docker $Path

14 Feb 03:55
Compare
Choose a tag to compare

This release fixes several doc formatting issues for samples, and issues 41 - Docker Path and 40.

Bug Fix - Name Collision

AI Sample

01 Feb 04:34
Compare
Choose a tag to compare

This release provides a new Tutorial for AI, here.

It fixes this issue in 10.01.27.

It fixes a minor bug in LogicBank, trying to adjust parent sums that are null.

Tutorial Improvements

15 Jan 17:20
Compare
Choose a tag to compare

This release (pip docker) introduces changes to the Tutorial.

  • The sample project is now created without customization
  • The Tutorial reviews the un-customized sample
    • Use this to get understand the level of initial automation for your own projects
  • The Tutorial then shows a command to install the customizations, and reviews them

OptLocking Fix, cleanup

11 Jan 03:50
Compare
Choose a tag to compare

This release is available via pip, and docker. Changes summarized below.

 

Optimistic Locking Bug Fix

This release fixes an issue wherein the ignored option was not honored.

 

Substantial cleanup of created project

This release introduces several changes to improve the structure of the created project:

  • add config directory
  • moved root file utils.py -> api/api_utils.py
  • move row_to_dict from utils to integration.system.RowDictMapper

Simplified startup, allocation bug fix

08 Jan 03:47
Compare
Choose a tag to compare

Released 1/7/2024 to pip and docker hub.

 

Simplified Getting Started

A number of changes designed to make getting started clear and easy:

  1. For VSCode users, the venv is now defaulted.
  2. Fewer messages on ApiLogicServer create
  3. For VSCode users, first project open suggests to click F5 to run
  4. The Sample / Tutorial allocation now has quick ways to find key customization examples by searching the sample for #als

 

Allocation Fix

A bug was fixed in allocation (and auditing).

 

Quoted Column Names, simpler venv

04 Jan 02:58
Compare
Choose a tag to compare

This release is available on pip and docker.

 

Quoted Column Names

Oracle testing has revealed the need for quoted column names. This is now supported with an ApiLogicServer create --quote option.

For more information, click here.

 

Simplified venv handling

By far, our most common support request is setting up the venv. While this is a familiar standard for experienced Python users, new Python users encounter challenges.

This release defaults a project's venv to the ApiLogicServer install venv, for VSCode only. The result is:

  1. Create a project (e.g., ApiLogicServer create --project_name=ApiLogicProject --db_url=nw
  2. Open it in VSCode
  3. Press F5 to run

For more information, click here.