2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

CI updates (#3087)

* Add pre-commit to the stack

* exclude static

* Add locales to excludes

* fix style errors

* rename pipeline steps

* also wait on precommit

* make template matching simpler

* Use the same code for python setup everywhere

* use step and cache for python setup

* move regular settings up into general envs

* just use full update

* Use invoke instead of static references

* make setup actions more similar

* use python3

* refactor names to be similar

* fix runner version

* fix references

* remove incidential change

* use matrix for os

* Github can't do this right now

* ignore docstyle errors

* Add seperate docstring test

* update flake call

* do not fail on docstring

* refactor setup into workflow

* update reference

* switch to action

* resturcture

* add bash statements

* remove os from cache

* update input checks

* make code cleaner

* fix boolean

* no relative paths

* install wheel by python

* switch to install

* revert back to simple wheel

* refactor import export tests

* move setup keys back to not disturbe tests

* remove docstyle till that is fixed

* update references

* continue on error

* use relativ action references

* Change step / job docstrings
This commit is contained in:
Matthias Mair
2022-05-28 02:38:12 +02:00
committed by GitHub
parent 09a4fab0d6
commit 4d8836378b
10 changed files with 221 additions and 191 deletions

View File

@ -2582,7 +2582,7 @@ function loadBuildTable(table, options) {
loaded_calendar = true;
var el = document.getElementById('build-order-calendar');
calendar = new FullCalendar.Calendar(el, {
initialView: 'dayGridMonth',
nowIndicator: true,
@ -2592,7 +2592,7 @@ function loadBuildTable(table, options) {
buildEvents(calendar);
}
});
calendar.render();
} else {
calendar.render();

View File

@ -1522,7 +1522,7 @@ function loadPurchaseOrderTable(table, options) {
setupFilterList('purchaseorder', $(table), target, {download: true});
var display_mode = inventreeLoad('purchaseorder-table-display-mode', 'list');
// Function for rendering PurchaseOrder calendar display
function buildEvents(calendar) {
@ -1538,7 +1538,7 @@ function loadPurchaseOrderTable(table, options) {
filters.supplier_detail = true;
filters.min_date = start;
filters.max_date = end;
// Request purchase orders from the server within specified date range
inventreeGet(
'{% url "api-po-list" %}',
@ -1718,7 +1718,7 @@ function loadPurchaseOrderTable(table, options) {
if (display_mode == 'calendar') {
var el = document.getElementById('purchase-order-calendar');
calendar = new FullCalendar.Calendar(el, {
initialView: 'dayGridMonth',
nowIndicator: true,
@ -1728,7 +1728,7 @@ function loadPurchaseOrderTable(table, options) {
buildEvents(calendar);
}
});
calendar.render();
}
}
@ -2409,7 +2409,7 @@ function loadSalesOrderTable(table, options) {
if (display_mode == 'calendar') {
var el = document.getElementById('purchase-order-calendar');
calendar = new FullCalendar.Calendar(el, {
initialView: 'dayGridMonth',
nowIndicator: true,
@ -2419,7 +2419,7 @@ function loadSalesOrderTable(table, options) {
buildEvents(calendar);
}
});
calendar.render();
}
},
@ -2881,7 +2881,7 @@ function allocateStockToSalesOrder(order_id, line_items, options={}) {
fields.reference.value = ref;
fields.reference.prefix = global_settings.SALESORDER_REFERENCE_PREFIX + options.reference;
return fields;
}
}

View File

@ -27,16 +27,16 @@ function reloadtable(table) {
/*
* Construct a set of extra buttons to display against a list of orders,
* allowing the orders to be displayed in various 'view' modes:
*
*
* - Calendar view
* - List view
* - Tree view
*
*
* Options:
* - callback: Callback function to be called when one of the buttons is pressed
* - prefix: The prefix to use when saving display data to user session
* - display: Which button to set as 'active' by default
*
*
*/
function constructOrderTableButtons(options={}) {
@ -51,10 +51,10 @@ function constructOrderTableButtons(options={}) {
var idx = 0;
var buttons = [];
function buttonCallback(view_mode) {
inventreeSave(key, view_mode);
if (options.callback) {
options.callback(view_mode);
}