Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/lib/database/procedures/flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const flag_insert = (query) => `
BEGIN
select id into pass_id from data_passes where name = '${query.data_pass_name}';
select id into det_id from detectors_subsystems where name = '${query.detector}';
select id into flag_id from flags_types_dictionary where name = '${query.flag_type}';
select id into flag_id from flag_types_dictionary where name = '${query.flag_type}';

INSERT INTO quality_control_flags (data_pass_id, run_number, detector_id, flag_type_id,
time_start, time_end, comment, added_by, addition_time, last_modified_by, last_modification_time)
Expand Down
2 changes: 1 addition & 1 deletion app/lib/database/views/flags_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const flags_view = (query) => {
ON qcf.run_number = r.run_number
INNER JOIN detectors_subsystems AS ds
ON ds.id = qcf.detector_id
INNER JOIN flags_types_dictionary as ftd
INNER JOIN flag_types_dictionary as ftd
ON ftd.id = qcf.flag_type_id
LEFT OUTER JOIN verifications as v
ON qcf.id = v.qcf_id
Expand Down
7 changes: 1 addition & 6 deletions database/design.dbm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
CAUTION: Do not modify this file unless you know what you are doing.
Unexpected results may occur if the code is changed deliberately.
-->
<dbmodel pgmodeler-ver="1.0.4" use-changelog="false" last-position="0,306" last-zoom="1" max-obj-count="31"
<dbmodel pgmodeler-ver="1.0.4" use-changelog="false" last-position="0,292" last-zoom="1" max-obj-count="31"
default-owner="postgres"
layers="Default layer"
active-layers="0"
Expand Down Expand Up @@ -177,11 +177,6 @@ CAUTION: Do not modify this file unless you know what you are doing.
</constraint>
</table>

<sequence name="flags_types_dictionary_id_seq" cycle="false" start="1" increment="1" min-value="1" max-value="2147483647" cache="1">
<schema name="public"/>
<role name="postgres"/>
</sequence>

<table name="flag_types_dictionary" layers="0" collapse-mode="2" max-obj-count="6" z-value="0">
<schema name="public"/>
<role name="postgres"/>
Expand Down
15 changes: 0 additions & 15 deletions database/exported/create-tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -141,21 +141,6 @@ CREATE TABLE public.detectors_subsystems (
ALTER TABLE public.detectors_subsystems OWNER TO postgres;
-- ddl-end --

-- object: public.flags_types_dictionary_id_seq | type: SEQUENCE --
-- DROP SEQUENCE IF EXISTS public.flags_types_dictionary_id_seq CASCADE;
CREATE SEQUENCE public.flags_types_dictionary_id_seq
INCREMENT BY 1
MINVALUE 1
MAXVALUE 2147483647
START WITH 1
CACHE 1
NO CYCLE
OWNED BY NONE;

-- ddl-end --
ALTER SEQUENCE public.flags_types_dictionary_id_seq OWNER TO postgres;
-- ddl-end --

-- object: public.flag_types_dictionary | type: TABLE --
-- DROP TABLE IF EXISTS public.flag_types_dictionary CASCADE;
CREATE TABLE public.flag_types_dictionary (
Expand Down
2 changes: 1 addition & 1 deletion docs/flags/mock.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ VALUES
ON qcf.run_number = r.run_number
INNER JOIN detectors_subsystems AS ds
ON ds.id = qcf.detector_id
INNER JOIN flags_types_dictionary as ftd
INNER JOIN flag_types_dictionary as ftd
ON ftd.id = qcf.flag_type_id
LEFT OUTER JOIN verifications as v
ON qcf.id = v.qcf_id
Expand Down