Bid Program
- Manual Testing Checklist
- 3D Cabinet Viewer
- Upgrading to Python 3.11 & Latest Update
- Upgrade Server to latest Ubuntu version
Manual Testing Checklist
- Can create new bid
- Can edit existing bid
- Can create new room
- Room Spec fields get populated with compatible items
- Incompatible room specs get invalidated
- Attachments
- User profile image can be added/deleted/updated
- Can attach and remove files from room list
- Can attach and remove files from room specs page
- Can attach and remove files from product list
- Can attach and remove files from product editor
- Create new products
- Price updates correctly
- Can attach files on unsaved product
- Product inherits the reveals from the room specs
- Product status functions correctly, hidden fields not marked as invalid... etc.
- Can edit existing room specs
- Room specs save correctly
- Room options save correctly
- Room options can be removed and save with them removed
- Can attach files
- Can delete files
- Price updates correctly
- Edit existing product
- All fields save when changed and stick when re-opening the item
- Fields get populated with compatible items (toe kick, hinging... etc)
- Incompatible selections get invalidated
- Can attach files
- Can delete files
- Modifications update when quantity changed
- Mod attributes update when changed
- Mod notes save when changed
- Deleting a mod works
- Moving a modification works
- Custom attributes save when changed
- Can convert to another product
- Price updates correctly
- Pricing
- Adjusting price works
- Who changed the price gets set and not changed
- Can change the dealer markup value
- Attributes
- Attribute defaults work correctly
- Attributes change price
- Can create new attributes
- Can edit existing attributes
- Attribute defaults work correctly
- Room, Product and Bid lists
- Copying items updates price
- Deleting items updates price
- Can move
- Shows correctly in list
- Did total cubic ft get updated too?
- Dealer Features
- Can transfer orders
- Can submit orders
- Can delete and restore the following, check that the prices update...
- Bids
- Products
- Rooms
- Create a hot list form some items with mods
- Verify that mods copy correctly
- Verify that price is consistent (plus hotlist markup)
- Verify mod attributes are working correctly
- Dealer Specs
- Make sure any SHOP STAFF ONLY material does not get removed
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
It is recommended that Blender (free 3D modeling / rendering software) is used to create the models because it is able to assign the needed custom properties and export in the required GLTF format. It is also recommended that you use the 3D Model Props Blender add-on. This addon allows you to quickly assign custom position, size, and properties to objects and to the scene.
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.