mirror of
https://github.com/inventree/InvenTree.git
synced 2026-05-25 03:10:44 -05:00
27ca0836e7
* Add new Attachment model fields: - is_image - thumbnail * Cache if the attachment is an image * Add new setting for controlling max upload size * Validate uploaded attachment file * Add tqdm for progress bars * Refactor migrations - Don't need is_image field - Can introspect from the thumbnail * Data migration for existing attachments * Bump API version * Update tests and validators * Add "is_image" field to the Attachment model * Offload to background task * Implement unit tests * Docs * Add unit test for data migration * Additional unit test * Omit migration tests from code coverage * Additional unit tests
87 lines
2.0 KiB
YAML
87 lines
2.0 KiB
YAML
ignore:
|
|
- "src/backend/InvenTree/**/test_migrations.py"
|
|
|
|
coverage:
|
|
status:
|
|
project:
|
|
default:
|
|
target: 85%
|
|
patch: off
|
|
|
|
github_checks:
|
|
annotations: true
|
|
|
|
flag_management:
|
|
default_rules:
|
|
carryforward: true
|
|
individual_flags:
|
|
- name: backend
|
|
carryforward: true
|
|
statuses:
|
|
- type: project
|
|
target: 85%
|
|
- name: migrations
|
|
carryforward: true
|
|
statuses:
|
|
- type: project
|
|
target: 40%
|
|
- name: web
|
|
carryforward: true
|
|
statuses:
|
|
- type: project
|
|
target: 45%
|
|
|
|
component_management:
|
|
default_rules:
|
|
statuses:
|
|
- type: project
|
|
target: auto
|
|
branches:
|
|
- "!main"
|
|
individual_components:
|
|
- component_id: backend-apps
|
|
name: Backend Apps
|
|
paths:
|
|
- src/backend/InvenTree/build/**
|
|
- src/backend/InvenTree/company/**
|
|
- src/backend/InvenTree/data_exporter/**
|
|
- src/backend/InvenTree/importer/**
|
|
- src/backend/InvenTree/machine/**
|
|
- src/backend/InvenTree/order/**
|
|
- src/backend/InvenTree/part/**
|
|
- src/backend/InvenTree/plugin/**
|
|
- src/backend/InvenTree/report/**
|
|
- src/backend/InvenTree/stock/**
|
|
- src/backend/InvenTree/users/**
|
|
- src/backend/InvenTree/web/**
|
|
statuses:
|
|
- type: project
|
|
target: 90%
|
|
- component_id: backend-general
|
|
name: Backend General
|
|
paths:
|
|
- src/backend/InvenTree/generic/**
|
|
- src/backend/InvenTree/common/**
|
|
statuses:
|
|
- type: project
|
|
target: 92% # 95%
|
|
- type: patch
|
|
target: 95%
|
|
- component_id: web
|
|
name: Frontend
|
|
paths:
|
|
- src/frontend/**
|
|
statuses:
|
|
- type: project
|
|
target: 68% # 90%
|
|
- type: patch
|
|
target: 80%
|
|
comment:
|
|
require_bundle_changes: True
|
|
bundle_change_threshold: "1Kb"
|
|
layout: "header, diff, flags, components"
|
|
|
|
bundle_analysis:
|
|
warning_threshold: "5%"
|
|
status: "informational"
|