Skip to content

add file previewers to dev env, more docs#11181

Merged
ofahimIQSS merged 5 commits into
developfrom
10506-previewers
Mar 20, 2025
Merged

add file previewers to dev env, more docs#11181
ofahimIQSS merged 5 commits into
developfrom
10506-previewers

Conversation

@pdurbin

@pdurbin pdurbin commented Jan 23, 2025

Copy link
Copy Markdown
Member

What this PR does / why we need it:

Developers like previewers too! Plus, we're adding some docs.

Which issue(s) this PR closes:

Special notes for your reviewer:

The previewers run on port 9080 in the development environment. In the demo/eval environment, they run on 9000 because MinIO isn't running (also on port 9000).

Suggestions on how to test this:

Try both the dev env and the "demo or eval" env.

Both should have all the previewers available.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Sort of? You can see previewers, like this:

Screenshot 2025-01-23 at 11 19 47 AM

Is there a release notes update needed for this change?:

Yes, included.

Additional documentation:

https://dataverse-guide--11181.org.readthedocs.build/en/11181/container/running/demo.html#file-previewers

@pdurbin pdurbin added Component: Containers Anything related to cloudy Dataverse, shipped in containers. Size: 3 A percentage of a sprint. 2.1 hours. FY25 Sprint 15 FY25 Sprint 15 (2025-01-15 - 2025-01-29) labels Jan 23, 2025
@@ -97,7 +97,8 @@ services:
- DATAVERSE_URL=http://dataverse:8080
- TIMEOUT=10m
- PREVIEWERS_PROVIDER_URL=http://${MACHINE_IP:-localhost}:9000

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we consider removing this MACHINE_IP stuff from this compose file? We already removed it from the dev version.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expect that it would make a lot of sense to be able to provide an alternative IP address (or host name) in a production environment. Leaving it in would be a good idea IMHO.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I suspect we'll dig into this more when we work on fronting Dataverse with some sort of proxy:

@cmbz cmbz added the FY25 Sprint 16 FY25 Sprint 16 (2025-01-29 - 2025-02-12) label Jan 30, 2025
@pdurbin pdurbin assigned pdurbin and unassigned pdurbin Jan 30, 2025

@Kris-LIBIS Kris-LIBIS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend to add the --rm option to the docker run command to clean up the container after running. But besides that, this is a perfect addition.

@pdurbin

pdurbin commented Jan 30, 2025

Copy link
Copy Markdown
Member Author

@Kris-LIBIS great idea. I added the rm in 322b3a6.

@pdurbin

pdurbin commented Feb 6, 2025

Copy link
Copy Markdown
Member Author

Hmm, seeing strange icons for the zip previewer/downloader:

Screenshot 2025-02-06 at 9 42 15 AM

@pdurbin

pdurbin commented Feb 6, 2025

Copy link
Copy Markdown
Member Author

It looks like we're getting a 404 for files like http://localhost:9000/previewers/v1.4/fonts/glyphicons-halflings-regular.ttf

Screenshot 2025-02-06 at 10 46 14 AM

@cmbz cmbz added the FY25 Sprint 17 FY25 Sprint 17 (2025-02-12 - 2025-02-26) label Feb 12, 2025
@stevenwinship stevenwinship self-assigned this Feb 21, 2025
@stevenwinship stevenwinship removed their assignment Feb 21, 2025
@cmbz cmbz added this to the 6.7 milestone Feb 26, 2025
@cmbz cmbz added the FY25 Sprint 18 FY25 Sprint 18 (2025-02-26 - 2025-03-12) label Feb 27, 2025
@pdurbin pdurbin force-pushed the 10506-previewers branch from 322b3a6 to 94c639d Compare March 6, 2025 14:17
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 22.741%. remained the same
when pulling 94c639d on 10506-previewers
into 7a29522 on develop.

@cmbz cmbz added the FY25 Sprint 19 FY25 Sprint 19 (2025-03-12 - 2025-03-26) label Mar 12, 2025
@ofahimIQSS ofahimIQSS self-assigned this Mar 19, 2025
@ofahimIQSS ofahimIQSS moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Mar 19, 2025
@ofahimIQSS

Copy link
Copy Markdown
Contributor

Hello, can you please update 6.5 to 6.6. Thanks!

@pdurbin

pdurbin commented Mar 19, 2025

Copy link
Copy Markdown
Member Author

Sure, done.

@ofahimIQSS

Copy link
Copy Markdown
Contributor

Merging PR, no issues found.

@ofahimIQSS ofahimIQSS merged commit 6ddd86d into develop Mar 20, 2025
@ofahimIQSS ofahimIQSS deleted the 10506-previewers branch March 20, 2025 13:37
@github-project-automation github-project-automation Bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Mar 20, 2025
@ofahimIQSS ofahimIQSS removed their assignment Mar 20, 2025
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Containers Anything related to cloudy Dataverse, shipped in containers. FY25 Sprint 15 FY25 Sprint 15 (2025-01-15 - 2025-01-29) FY25 Sprint 16 FY25 Sprint 16 (2025-01-29 - 2025-02-12) FY25 Sprint 17 FY25 Sprint 17 (2025-02-12 - 2025-02-26) FY25 Sprint 18 FY25 Sprint 18 (2025-02-26 - 2025-03-12) FY25 Sprint 19 FY25 Sprint 19 (2025-03-12 - 2025-03-26) Size: 3 A percentage of a sprint. 2.1 hours.

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

enable previewers in containers

7 participants