Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk upload - technical details #124

Open
3 tasks
PaulKiddle opened this issue Jul 1, 2021 · 4 comments
Open
3 tasks

Bulk upload - technical details #124

PaulKiddle opened this issue Jul 1, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@PaulKiddle
Copy link
Contributor

PaulKiddle commented Jul 1, 2021

Goal:

Allow a user to easilly upload and publish a collection of scans
and metadata related to the same publication.

Specifics:

User should be able to submit the following:

  • Publication metadata:
    • Title, year, authors, journal-volume-page, abstract, url
  • Publication PDF
  • Multiple STL files
  • CSV containing metadata related to STL files
    • filename
    • scientific name
    • alternate name
    • location
    • ID
    • URL to other media
    • Description
    • Geologic age
    • Ontogenetic age
    • Elements

Technical aspects:

  • Metadata parsing
    • CSV file must contain a header row
    • filename column must contain filename of one of the stl files in the same form
    • required fields (which?) must be present
    • if any conditions are not met, form submission is blocked and an appropriate error displayed
    • csv may contain extra columns, which are ignored
  • Data upload
    • Scan files should use chunked upload to avoid firewall issues
  • Scan creation
  • Association with publication
    • submitted by same form
  • CTM generation
    • add a task to the task queue for each scan
  • Thumbnail generation
    • This is currently done on the front-end, since it uses canvas/webGL
    • Use a python library to generate these?
    • Can it be done on backend w/ headless browser?
    • If not, can we automate it in the FE?

User interface:

Since a batch of scans are related to a publication,
it makes sense to add the batch upload form to the
existing publication form.

The file upload area has the following responsibilities:

  • file select: allow user to select files, display selected files
  • record list & errors: display the records found in the csv and associated files, and any errors
  • upload progress: show how many files have been uploaded & overall progress
  • ctm generation progress: show how many files have had their ctm generated (can be concurrent with upload)
  • preview image generation progress: show how many files have had their preview image generated

Next steps

  • Investigate possibility of preview/thumbnail generation on the server
    • Check if Anjali is ok with thumbnail mismatch
  • UI mockup of upload form
@alycejenni alycejenni mentioned this issue Jul 5, 2021
@alycejenni alycejenni added the enhancement New feature or request label Jul 5, 2021
@alycejenni
Copy link
Member

image

pyrender/trimesh for server-generated thumbnails?

@PaulKiddle
Copy link
Contributor Author

PaulKiddle commented Jul 13, 2021

That's a good idea.
We should check Anjali doesn't mind the thumbnails looking a little different but TBH I can't see her having a problem - plus might be a good opportunity to change the model viewer component to something that's actually maintained.

@alycejenni
Copy link
Member

I can probably make them look more like the current ones, I was just having fun with lighting 😄

@PaulKiddle
Copy link
Contributor Author

Your ones do look a lot nicer - good to know it's flexible though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants