GithubHelp home page GithubHelp logo

Comments (4)

roger-mahler avatar roger-mahler commented on June 15, 2024

This script, added as 20191212_DML_UPDATE_SAMPLE_ALT_REFS must be included as a post-action in the Bugs Import Checklist.

begin;
do $$
begin

    begin

        insert into tbl_alt_ref_types (alt_ref_type_id, alt_ref_type, description)
        	values (9, 'Bugs sample code', 'Unique identifier for (physical) samples in the BugsCEP database')
                on conflict do nothing;

        insert into tbl_sample_alt_refs (alt_ref, physical_sample_id, alt_ref_type_id)
        	select bugs_identifier, sead_reference_id, 9
        	from bugs_import.bugs_trace b
        	where bugs_table = 'TSample'
        	  on conflict (sample_alt_ref_id) do update
        	 	set alt_ref = excluded.alt_ref,
        			physical_sample_id = excluded.physical_sample_id;

    exception when sqlstate 'GUARD' then
        raise notice 'ALREADY EXECUTED';
    end;

end $$;
commit;

from sead_change_control.

roger-mahler avatar roger-mahler commented on June 15, 2024

Solved by 47be102.

Note that this fix (for the time being) must be executed after each Bugs import.

from sead_change_control.

roger-mahler avatar roger-mahler commented on June 15, 2024

Fixed added to 20191213_BUGS_IMPORT_POST_APPLY

from sead_change_control.

roger-mahler avatar roger-mahler commented on June 15, 2024

This CR has been archived.

Deprecates CR to enable a clean import in 202312 release.

from sead_change_control.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.