Skip to main content

Delayed document indexing makes plugin behaviour unpredictable

Comments

4 comments

  • Richard Moir

    DocumentAction is not intended for generating new documents - it is for modifying existing documents. (see https://assets.geneious.com/developer/geneious/javadoc/latest/index.html )

    I would recommend creating a DocumentOperation instead and doing all the importing during performOperation and only returning the final document once it is completely ready. You will not have to deal with complicated placeholder documents then.

    0
  • Informatiemanagement

    Unfortunately I can't. The placeholder documents are created from spread sheets containing all sort of info regarding the dna samples, BOLD and our collection mgmt system. The requirement is that the sequences and the extraneious info must be importable in arbitrary order. So I create dummy sequence documents with a dummy sequence (that's legacy, I might as well have used you TextDocument class).

    0
  • Richard Moir

    Can you import the spreadsheet AND all ab1/fasta files all in the single operation so that sequence documents can be created immediately?

    Alternatively you could wrap your spreadsheet with a subclass of DatabaseService so the user can search/browse using the retrieve method. Then you can either just import ab1/fasta files for sequences that match their queries or you could make it return a subclass of SummaryDocument (https://assets.geneious.com/developer/geneious/javadoc/latest/com/biomatters/geneious/publicapi/documents/SummaryDocument.html) which is a special kind of dummy document that Geneious will handle nicely.

    0
  • Informatiemanagement

    Hi,

     

    Thanks for the suggestion! No, there may be days or weeks between importing the spreadsheet(s) and the fasta/ab1 sequences. But maybe your alternative is something we could go for

    0

Please sign in to leave a comment.