GithubHelp home page GithubHelp logo

Comments (5)

CV-GPhL avatar CV-GPhL commented on August 23, 2024

Could one enhance that from a binary flag (as far as I understand it) to an enumerator? I.e. instead of having multiple "Log" attachments with one being flagged as "primary", just give each of them a ranking (1,2,...,N). The user can then decide to only look at rank 1 (would be similar to the primary flag proposed above) or maybe at the top 5 ranking attachments.
For Log attachments it is probably quite easy to provide a single (primary, rank 1) attachement - but for "Result" I would already struggle and for "Graph" it seems impossible.

from ispyb-database-modeling.

KarlLevik avatar KarlLevik commented on August 23, 2024

This was discussed at the VC meeting today, and we agreed that Clemen's (@CV-GPhL ) improvement idea was sound - i.e. instead of a 'primary' boolean use a 'rank' integer. It will be up to the processing software and ingester to make sure we only have one single entry with rank 1 for each autoProcProgramId and fileType.

I'll create a PR for this at some point.

from ispyb-database-modeling.

KarlLevik avatar KarlLevik commented on August 23, 2024

Updated SQL:

ALTER TABLE AutoProcProgramAttachment
    MODIFY `fileType` enum('Log','Result','Graph', 'Debug') DEFAULT NULL COMMENT 'Type of file Attachment',
    ADD `importanceRank` tinyint unsigned COMMENT 'For the particular autoProcProgramId and fileType, indicate the importance of the attachment. 1 is most important, higher numbers are less important';

I've renamed the new column to importanceRank as that seems a bit clearer than just rank.

from ispyb-database-modeling.

drnasmith avatar drnasmith commented on August 23, 2024

from ispyb-database-modeling.

KarlLevik avatar KarlLevik commented on August 23, 2024

Updated SQL - specifying in the column comment that higher numbers are more important:

ALTER TABLE AutoProcProgramAttachment
    MODIFY `fileType` enum('Log','Result','Graph', 'Debug') DEFAULT NULL COMMENT 'Type of file Attachment',
    ADD `importanceRank` tinyint unsigned COMMENT 'For the particular autoProcProgramId and fileType, indicate the importance of the attachment. Higher numbers are more important';

from ispyb-database-modeling.

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.