refactor(SQL): Staging tables and Calc stored procedures used for modular stored procedure archicture for scalability. Implemented for Product Catalogue. \n BREAKING CHANGE: BIT argument a_debug added to all but basic stored procedures for analysis of performance and results.
This commit is contained in:
115
app.log.2
115
app.log.2
@@ -1,52 +1,63 @@
|
||||
Request: 127.0.0.1 GET http /store/categories? Host: 127.0.0.1:5000
|
||||
|
||||
Connection: keep-alive
|
||||
|
||||
Pragma: no-cache
|
||||
|
||||
Cache-Control: no-cache
|
||||
|
||||
Sec-Ch-Ua: "Chromium";v="128", "Not;A=Brand";v="24", "Google Chrome";v="128"
|
||||
|
||||
Sec-Ch-Ua-Mobile: ?0
|
||||
|
||||
Sec-Ch-Ua-Platform: "Windows"
|
||||
|
||||
Dnt: 1
|
||||
|
||||
Upgrade-Insecure-Requests: 1
|
||||
|
||||
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
|
||||
|
||||
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
|
||||
|
||||
Sec-Fetch-Site: same-origin
|
||||
|
||||
Sec-Fetch-Mode: navigate
|
||||
|
||||
Sec-Fetch-User: ?1
|
||||
|
||||
Sec-Fetch-Dest: document
|
||||
|
||||
Referer: http://127.0.0.1:5000/store/categories
|
||||
|
||||
Accept-Encoding: gzip, deflate, br, zstd
|
||||
|
||||
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
|
||||
|
||||
Cookie: session=.eJytVlnTqkgS_SsdRnQ_tV5WgS_ixgyKoAioyP5iQBXIDrIp9Nz_PoXf7b790LNFTIQLVZlknqw8mZW_Lfy-i6smaUNotmGz-PhtAfzy5sMiKW9tVzXh4qNr-vDXP233b8XP3bDwk3zxsQjh02_gqkggzMOuKtsi6eK_32fpClTF4tdFlDRtV_oFMrgwQghHtJfAG-ibJizBeINh5Pd5t_go-zx_i5rwnlTlX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EvcW3b9_-CTbvo8I.ZumzNg.3EndhjI8QnbotIPyN-mo04fvFAg
|
||||
|
||||
|
||||
|
||||
|
||||
Request data: b''
|
||||
Traceback: Traceback (most recent call last):
|
||||
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 1473, in wsgi_app
|
||||
response = self.full_dispatch_request()
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 882, in full_dispatch_request
|
||||
rv = self.handle_user_exception(e)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask_cors\extension.py", line 178, in wrapped_function
|
||||
return cors_after_request(app.make_response(f(*args, **kwargs)))
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
Traceback: Traceback (most recent call last):
|
||||
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 1473, in wsgi_app
|
||||
response = self.full_dispatch_request()
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 882, in full_dispatch_request
|
||||
rv = self.handle_user_exception(e)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask_cors\extension.py", line 178, in wrapped_function
|
||||
return cors_after_request(app.make_response(f(*args, **kwargs)))
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 880, in full_dispatch_request
|
||||
rv = self.dispatch_request()
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 865, in dispatch_request
|
||||
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\controllers\store\stock_item.py", line 40, in stock
|
||||
model = Model_View_Store_Stock_Items(filters_stock_item=filters)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\models\model_view_store_stock_items.py", line 54, in __init__
|
||||
tmp_category_list_stock_item, errors = datastore_store.get_many_product(Filters_Product.from_filters_stock_item(filters_stock_item))
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\business_objects\store\product.py", line 812, in from_filters_stock_item
|
||||
return cls.from_form_filters_product_permutation(filters_stock_item)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\business_objects\store\product.py", line 691, in from_form_filters_product_permutation
|
||||
av.val_instance(form, 'form', 'Filters_Product.from_form', Filters_Product_Permutation)
|
||||
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\lib\argument_validation.py", line 816, in val_instance
|
||||
raise ValueError(error_message)
|
||||
ValueError: Invalid Filters_Product.from_form argument argument form. Type = <class 'business_objects.store.stock_item.Stock_Item_Filters'>. Value = Stock_Item_Filters(get_all_category=True, get_inactive_category=False, get_first_category_only=False, ids_category='', get_all_product=True, get_inactive_product=False, get_first_product_only=False, ids_product='', get_all_permutation=True, get_inactive_permutation=False, get_first_permutation_only=False, ids_permutation='', get_all_stock_item=True, get_inactive_stock_item=False, get_first_stock_item_only=False, ids_stock_item='', get_all_region_storage=True, get_inactive_region_storage=False, get_first_region_storage_only=False, ids_region_storage='', get_all_plant_storage=True, get_inactive_plant_storage=False, get_first_plant_storage_only=False, ids_plant_storage='', get_all_location_storage=True, get_inactive_location_storage=False, get_first_location_storage_only=False, ids_location_storage='', date_received_to=None, get_sealed_stock_item_only=False, get_unsealed_stock_item_only=False, get_expired_stock_item_only=False, get_nonexpired_stock_item_only=False, get_consumed_stock_item_only=False, get_nonconsumed_stock_item_only=False)
|
||||
|
||||
Exception on /store/stock_items [GET]
|
||||
Traceback (most recent call last):
|
||||
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 1473, in wsgi_app
|
||||
response = self.full_dispatch_request()
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 882, in full_dispatch_request
|
||||
rv = self.handle_user_exception(e)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask_cors\extension.py", line 178, in wrapped_function
|
||||
return cors_after_request(app.make_response(f(*args, **kwargs)))
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 880, in full_dispatch_request
|
||||
rv = self.dispatch_request()
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 865, in dispatch_request
|
||||
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\controllers\store\stock_item.py", line 40, in stock
|
||||
model = Model_View_Store_Stock_Items(filters_stock_item=filters)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\models\model_view_store_stock_items.py", line 54, in __init__
|
||||
tmp_category_list_stock_item, errors = datastore_store.get_many_product(Filters_Product.from_filters_stock_item(filters_stock_item))
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\business_objects\store\product.py", line 813, in from_filters_stock_item
|
||||
return cls.from_form_filters_product_permutation(filters_stock_item)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\business_objects\store\product.py", line 692, in from_form_filters_product_permutation
|
||||
av.val_instance(form, 'form', 'Filters_Product.from_form', Form_Base)
|
||||
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\lib\argument_validation.py", line 816, in val_instance
|
||||
raise ValueError(error_message)
|
||||
ValueError: Invalid Filters_Product.from_form argument argument form. Type = <class 'business_objects.store.stock_item.Stock_Item_Filters'>. Value = Stock_Item_Filters(get_all_category=True, get_inactive_category=False, get_first_category_only=False, ids_category='', get_all_product=True, get_inactive_product=False, get_first_product_only=False, ids_product='', get_all_permutation=True, get_inactive_permutation=False, get_first_permutation_only=False, ids_permutation='', get_all_stock_item=True, get_inactive_stock_item=False, get_first_stock_item_only=False, ids_stock_item='', get_all_region_storage=True, get_inactive_region_storage=False, get_first_region_storage_only=False, ids_region_storage='', get_all_plant_storage=True, get_inactive_plant_storage=False, get_first_plant_storage_only=False, ids_plant_storage='', get_all_location_storage=True, get_inactive_location_storage=False, get_first_location_storage_only=False, ids_location_storage='', date_received_to=None, get_sealed_stock_item_only=False, get_unsealed_stock_item_only=False, get_expired_stock_item_only=False, get_nonexpired_stock_item_only=False, get_consumed_stock_item_only=False, get_nonconsumed_stock_item_only=False)
|
||||
Server Error: 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
|
||||
|
||||
Reference in New Issue
Block a user