ngslabex
(Ngslabex)
February 15, 2024, 10:43pm
1
How can I remove sample permanently? And can I change Sample ID?
Thanks
ngslabex
(Ngslabex)
February 16, 2024, 10:36am
2
I have achived from :
https://localhost/senaite_catalog_sample/manage_catalogView
select AnalysisRequest and then Remove
ramonski
(Ramon Bartl)
February 16, 2024, 3:15pm
3
Please note, that this only removes the sample from the catalog.
Physically, it is still in the database, which you can verify by browsing to the path /senaite/clients/client-12/24110K0001
.
If you want to remove it permanently, you have to write an upgrade step to remove it with code, e.g. with the function senaite.core.upgrade.utils.delete_object
.
Also see here:
# -*- coding: utf-8 -*-
#
# This file is part of SENAITE.CORE.
#
# SENAITE.CORE is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 51
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright 2018-2024 by it's authors.
# Some rights reserved, see README and LICENSE.
This file has been truncated. show original
1 Like