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

7823 dirindex web browsing and docs #7894

Merged
merged 2 commits into from
May 28, 2021
Merged

7823 dirindex web browsing and docs #7894

merged 2 commits into from
May 28, 2021

Conversation

pdurbin
Copy link
Member

@pdurbin pdurbin commented May 21, 2021

What this PR does / why we need it:

This pull request lets people use their web browsers on the "dirindex" API feature. That is, you can navigate to a URL like http://localhost:8080/api/datasets/67/dirindex in your browser and see files (and sometimes folders).

Given a dataset like this with files in folders...

Screen Shot 2021-05-21 at 2 03 37 PM

... here's how "dirindex" looks...

Screen Shot 2021-05-21 at 2 01 02 PM

... and if you drill down into a directory, it looks like this:

Screen Shot 2021-05-21 at 2 04 05 PM

This pull request also corrects the documentation for this feature, adding images that were in the source but not rendered on the page. Compare below (with images) to https://guides.dataverse.org/en/5.5/api/native-api.html#view-dataset-files-and-folders-as-a-directory-index

Screen Shot 2021-05-21 at 2 20 13 PM

Which issue(s) this PR closes:

Closes #7823

Special notes for your reviewer:

We do want images in the docs, right? I assume that was the intention. I made the images live in 86b70b7.

Suggestions on how to test this:

Make sure you can use a web browser on dirindex as described above and in the docs.

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

No but I think we should someday consider linking to this view from the UI since it can be used in a web browser. It would make the feature more discoverable than it is now, somewhat buried in the API Guide.

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

I don't think so. It's just a bug fix. My reading of the docs is that this is how it was intended to work all along, given the screenshots already in the docs.

Additional documentation:

None but (again) I did fix the images.

pdurbin added 2 commits May 21, 2021 14:13
Previously, .index.html files were being downloaded as attachments.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 19.326% when pulling 86b70b7 on 7823-dirindex into b95ba34 on develop.

@kcondon kcondon self-assigned this May 28, 2021
@kcondon kcondon merged commit eea5589 into develop May 28, 2021
@kcondon kcondon deleted the 7823-dirindex branch May 28, 2021 15:10
@djbrooke djbrooke added this to the 5.6 milestone Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dirindexdoes not support web browsing
5 participants