Bid Program

Manual Testing Checklist

3D Cabinet Viewer

3D Cabinet Viewer


The Cabinet Viewer component allows you to display a dynamic (or static) 3D model of the currently selected product using the three.js library. You can make your models dynamic by providing formulas for the size and position of each object in the model, these formulas can make use of anything that is found within the context object in the Bid Program as well as any provided scene custom properties (using the 'self' key) or any provided object custom properties (using the 'item' key).

Creating the Model

Upgrading to Python 3.11 & Latest Update

This page will be deleted and is pretty much only for notes. 


sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.11-dev python3.11-full

# Create virtual env
python3.11 -m venv .env 
activate .env/bin/activate
pip install -r requirements.txt


# Clean out old thumbnails
find homestead/media/CACHE/images -maxdepth 1 -mindepth 1 ! -name 'jobs' -type d -exec rm -frv {} +
find homestead/media/CACHE/images -maxdepth 1 -mindepth 1 ! -name 'jobs' ! -type d -exec rm -v {} +
rm homstead/media/CACHE/images/Jobs/None -rf

pm migrate

# Regenerate all thumbnails: use "--script-args clear" to remove the old cached files
pm runscript update_thumbnails --script-args clear

# Set COMBINE_COMPONENTS settings to True

Upgrade Server to latest Ubuntu version

sudo apt update && sudo apt full-upgrade -y
# needs reboot after update and before upgrade
sudo reboot


do-release-upgrade

# If you continue, an additional ssh daemon will be started at port '1022'.

# Answer yes to all questions other than when it asks to overwrite configuration files
# In this case overwrite everything other than the nginx files

# You will likely need to recreate the virtual environment 
python3.11 -m venv env


# Start the services after reboot

systemctl --user start celery 
systemctl --user start npm-homestead
systemctl --user start gunicorn-homestead-dev

# You might also need to re-enable the services...
systemctl --user enable SERVICENAME



# DB SERVER
# ---------


sudo apt install postgresql-14    
sudo pg_renamecluster 14 main main_backup
sudo pg_upgradecluster 12 main
sudo pg_dropcluster 12 main --stop
sudo pg_dropcluster 14 main_backup --stop

# PostgreSQL upgrade to new (Only applicable to database server)
# │ Obsolete major version 12                                                                                            │
# │                                                                                                                      │
# │ The PostgreSQL version 12 is obsolete, but the server or client packages are still installed. Please install the     │
# │ latest packages (postgresql-14 and postgresql-client-14) and upgrade the existing  clusters with pg_upgradecluster   │
# │ (see manpage).                                                                                                       │
# │                                                                                                                      │
# │ Please be aware that the installation of postgresql-14 will automatically create a default cluster 14/main. If you   │
# │ want to upgrade the 12/main cluster, you need to remove the already existing 14 cluster (pg_dropcluster --stop 14    │
# │ main, see manpage for details).                                                                                      │
# │                                                                                                                      │
# │ The old server and client packages are no longer supported. After the existing clusters are upgraded, the            │
# │ postgresql-12 and postgresql-client-12 packages should be removed.                                                   │
# │                                                                                                                      │
# │ Please see /usr/share/doc/postgresql-common/README.Debian.gz for details.