ProjectDrawdown / research-platform

Researcher community site setup
Other
6 stars 10 forks source link

As a user, I can upload resources to the data hub (repo) #9

Open colleenskemp opened 2 years ago

colleenskemp commented 2 years ago

Time estimate:

Description: As a user I am able to upload large resource files to the data hub/ repository. These should not be in the main repo, but require some process of forking or branching.

colleenskemp commented 2 years ago

@brodavi - This week, if you could focus on a proof of concept for this item, that would be great!

DentonGentry commented 2 years ago

Note that the repository uses LFS for very large files, which can help with download sizes for files that are not often used.

shrutimehta13 commented 2 years ago

@brodavi @colleenskemp Please define large (Size?)
Need steps where it is used in workflow. Do you mean Project image and resource file uploads?

colleenskemp commented 2 years ago

@shrutimehta13 - Sometimes the resources will be huge excel files for example. Like the excel links of the solutions themselves. I cannot say exactly how large because it doesn't give that information in Gsheets. Here is an example: https://docs.google.com/spreadsheets/d/1GZabywFS5OsgtNKgPAvIMdxoiQxSNYlz/edit?rtpof=true

shrutimehta13 commented 2 years ago

tested with resource

  1. rejecting as file resources (uploaded) show 404 https://modest-roentgen-e63e0e.netlify.app/projects/2021-10-20-map-name-proj-aaa-description-test-desc-video-https-www-youtube-com-embed-bkdoxfyb71y-collaborators-list-shrutim-colleen-skemp-link-https-www-youtube-com-channel-ucag_yk1zjj1zub_xqipb1ta check resource [2]

    Screenshot 2021-11-04 at 2 53 00 AM
  2. @brodavi provide location to confirm the file is being fetched from correct location

brodavi commented 2 years ago

I'm not sure how this happened exactly @shrutimehta13 , but the resource link 2 is currently https://modest-roentgen-e63e0e.netlify.app/projects/img/drawdown_rrs_model_v1.1d_master.xlsm but this is not the right link. I don't know where that came from, but it should be: https://modest-roentgen-e63e0e.netlify.app/img/drawdown_rrs_model_v1.1d_master.xlsm the file downloads fine from there. cc @colleenskemp

shrutimehta13 commented 2 years ago

Not testable as updated resources are not visible/updated on the project detail page cc @litenull @brodavi Im still unclear on test for this. Can you help me with the paths for main repository and data hub repo as mentioned in ticket. For a resource If i upload a large file and a small file i want to see where the files are fetched from

brodavi commented 2 years ago

I'm sorry @shrutimehta13 I am also unclear on this. I don't understand how this works. @litenull can you help explain what the problem is and how we might fix it?

shrutimehta13 commented 2 years ago

@brodavi @litenull Not testable. upload file shows 404

  1. Add a New Resource. Click Choose a File in File Section
  2. Click Upload and select a document/image etc to upload.
  3. select media asset from grid and click Choose Selected. Screenshot 2021-11-17 at 3 00 37 PM
  4. specify a related project and Publish resource.
  5. View Project page for resources https://modest-roentgen-e63e0e.netlify.app/projects/2021-11-08-map-name-example-project-description-what-does-publish-do

Observed: 404 on resource links

Screenshot 2021-11-17 at 3 11 00 PM
brodavi commented 2 years ago

PR https://github.com/ProjectDrawdown/open-collaboratory/pull/344