Skip to content

Commit b6493c5

Browse files
authored
Merge branch '2.x' into fix-upgrade-addpermission
2 parents 82f5964 + 009f854 commit b6493c5

189 files changed

Lines changed: 11979 additions & 2740 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: build and test senaite.storage
2+
on:
3+
- push
4+
- pull_request
5+
env:
6+
PLONE_VERSION: "5.2"
7+
8+
jobs:
9+
build-and-test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Cache pyenv Python builds
17+
uses: actions/cache@v4
18+
with:
19+
path: ~/.pyenv
20+
key: pyenv-2.7.18-${{ runner.os }}
21+
restore-keys: |
22+
pyenv-2.7.18-
23+
24+
- name: Install dependencies
25+
run: |
26+
sudo apt update
27+
sudo apt install -y make build-essential libssl-dev \
28+
zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev \
29+
wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev \
30+
libxmlsec1-dev libffi-dev liblzma-dev
31+
32+
- name: Install pyenv
33+
run: |
34+
if [ ! -d "$HOME/.pyenv" ]; then
35+
curl https://pyenv.run | bash
36+
fi
37+
38+
- name: Install Python 2.7 with pyenv (if not cached)
39+
run: |
40+
export PYENV_ROOT="$HOME/.pyenv"
41+
export PATH="$PYENV_ROOT/bin:$PATH"
42+
eval "$(pyenv init --path)"
43+
pyenv install 2.7.18 || true # Avoid reinstalling if already cached
44+
pyenv global 2.7.18
45+
46+
- name: Verify Python Version
47+
run: |
48+
export PYENV_ROOT="$HOME/.pyenv"
49+
export PATH="$PYENV_ROOT/bin:$PATH"
50+
eval "$(pyenv init --path)"
51+
python --version # Should output Python 2.7.18
52+
53+
- name: Cache eggs
54+
uses: actions/cache@v4
55+
with:
56+
key: eggs-cache-${{ hashFiles('buildout.cfg', 'requirements.txt') }}
57+
path: |
58+
eggs/
59+
60+
- name: Install dependencies and setup virtualenv
61+
run: |
62+
export PYENV_ROOT="$HOME/.pyenv"
63+
export PATH="$PYENV_ROOT/bin:$PATH"
64+
eval "$(pyenv init --path)"
65+
pip install virtualenv
66+
virtualenv -p `which python` .
67+
./bin/pip install --upgrade pip
68+
./bin/pip install -r requirements.txt
69+
./bin/buildout -N -t 3 annotate
70+
./bin/buildout -N -t 3
71+
72+
# - name: Lint
73+
# run: |
74+
# ./bin/pip install flake8
75+
# ./bin/flake8 --config ci_flake8.cfg src/senaite/
76+
77+
- name: Run tests
78+
run: |
79+
./bin/test -s senaite.storage

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ Thumbs.db
2626
bin
2727

2828
# Other sources
29-
src/senaite.core
30-
src/senaite.api
31-
src/senaite.lims
29+
src/senaite.*
3230

3331
# Distribution / packaging
3432
.Python

CHANGES.rst

Lines changed: 88 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,95 @@
11
Changelog
22
=========
33

4-
1.0.2 (unreleased)
4+
2.7.0 (unreleased)
55
------------------
6-
- #14 Refactor folderitem for storage listings to get full object from brain param obj
6+
7+
- #56 Fix UnicodeDecodeError on positions display in storage listing
8+
- #55 Fix Unauthorized error when moving a container across storage
9+
- #54 Fix all storage containers reindexed when other add-ons are upgraded
10+
- #53 Fix AttributeError for containers with more than 25 rows
11+
- #52 Migrate Storage Root Folder to DX
12+
- #51 JS->DX compatibility
13+
- #50 Migrate storage samples container to DX
14+
- #49 Migrate storage container to DX
15+
- #48 Migrate Storage Facility to DX
16+
17+
18+
2.6.0 (2025-04-04)
19+
------------------
20+
21+
- #47 Update permission imports
22+
- #46 Compatibility with core#2584 (SampleType to DX)
23+
- #44 Compatibility with core#2567 (AnalysisCategory to DX)
24+
- #42 Compatibility with core#2471 (Department to DX)
25+
- #39 Add storage settings for auto-store/recover of primary sample
26+
- #38 Remove Script (Python) for guards in favour of guard_handler
27+
28+
29+
2.5.0 (2024-01-11)
30+
------------------
31+
32+
- #37 Migrate Sample/Container Reference Fields to new Widget
33+
34+
35+
2.4.1 (2023-03-11)
36+
------------------
37+
38+
- #36 Remove code headers from Script (Python)
39+
40+
41+
2.4.0 (2023-03-10)
42+
------------------
43+
44+
- Version 2.3.0 -> 2.4.0
45+
46+
47+
2.3.0 (2022-10-03)
48+
------------------
49+
50+
- Version 2.2.0 -> 2.3.0
51+
52+
53+
2.2.0 (2022-06-10)
54+
------------------
55+
56+
- #34 Fix non-lab users can access to storage
57+
58+
59+
2.1.1 (2022-01-08)
60+
------------------
61+
62+
- #32 Fixed catalogs in page templates
63+
64+
65+
2.1.0 (2022-01-05)
66+
------------------
67+
68+
- #30 Compatibility with Senaite catalog migration
69+
- #28 Added upgrade step event subscriber
70+
- #27 Integrate dispatch workflow from senaite.core
71+
- #26 Disallow to modify portal content when stored/booked out samples
72+
- #25 Remove booked out samples from container
73+
- #23 Allow storage container to be booked out
74+
- #22 Allow to move containers
75+
- #21 Allow storage contents to be deactivated
76+
- #20 Added uninstall profile
77+
- #19 Improved storage listing and structuring with positions
78+
79+
80+
2.0.0 (2020-10-19)
81+
------------------
82+
83+
- Added full hierarchy filter in containers listings
84+
- #15 Fixed imports to senaite.app.listing
85+
- Do not display Containers and SampleContainers in navbar by default
86+
- Compatibility with senaite.lims 2.x
87+
88+
89+
1.0.2 (2020-08-11)
90+
------------------
91+
92+
- #14 Refactor folderitem for storage listings to get full object from brain
793

894

995
1.0.1 (2020-03-07)

README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
.. image:: https://img.shields.io/pypi/v/senaite.storage.svg?style=flat-square
1111
:target: https://pypi.python.org/pypi/senaite.storage
1212

13+
.. image:: https://img.shields.io/github/actions/workflow/status/senaite/senaite.storage/build-and-test.yml?branch=2.x
14+
:target: https://github.com/senaite/senaite.storage/actions/workflows/build-and-test.yml?query=branch:2.x
15+
1316
.. image:: https://img.shields.io/github/issues-pr/senaite/senaite.storage.svg?style=flat-square
1417
:target: https://github.com/senaite/senaite.storage/pulls
1518

@@ -105,7 +108,7 @@ Feedback and support
105108
License
106109
=======
107110

108-
**SENAITE.STORAGE** Copyright (C) 2019-2020 RIDING BYTES & NARALABS
111+
**SENAITE.STORAGE** Copyright (C) 2019-2024 RIDING BYTES & NARALABS
109112

110113
This program is free software; you can redistribute it and/or modify it under
111114
the terms of the `GNU General Public License version 2

0 commit comments

Comments
 (0)