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

View unpublished data through search API #6301

Closed
tainguyenbui opened this issue Oct 21, 2019 · 5 comments · Fixed by #6333
Closed

View unpublished data through search API #6301

tainguyenbui opened this issue Oct 21, 2019 · 5 comments · Fixed by #6333

Comments

@tainguyenbui
Copy link
Contributor

tainguyenbui commented Oct 21, 2019

Given that I am searching for information in Dataverse
When I perform a search through the Search native API
Then I would like to have the ability to see Published, Unpublished or both information

What is currently happening:
I am only able to search for published information

What we would love to have
A more flexible approach for search that allows us to search for any kind of data, having only published by default and then having a potential flag that can be set on the request

Thanks a lot! 🚀

@djbrooke
Copy link
Contributor

Thanks @tainguyenbui! I think you mean through the search API based on the nature of your integration. Feel free to edit the issue if appropriate. I'll let someone more technical get into the details about how we could approach this. Note that in the UI at least, we have some facets available for different publication statuses.

Screen Shot 2019-10-21 at 6 29 55 PM

@tainguyenbui tainguyenbui changed the title View unpublished data through search View unpublished data through search API Oct 22, 2019
@tainguyenbui
Copy link
Contributor Author

@djbrooke thanks! yes you are right, through the API, I just updated the issue

@djbrooke djbrooke self-assigned this Oct 22, 2019
@djbrooke
Copy link
Contributor

  • A dev setting exists now that could be used here (nonPublicSearchAllowed), but we'd need to bring it up to a production level, this would be the main part of this work
  • See for context of how this is currently structured
  • This exists in the front end now (you can see your own content, or all content if you have superuser access)

@pdurbin
Copy link
Member

pdurbin commented Oct 31, 2019

I just made pull request #6333.

The "AccessIT" test failure at https://jenkins.dataverse.org/job/IQSS-Dataverse-Develop-PR/view/change-requests/job/PR-6333/1/ is pre-existing in the "develop" branch and being tracked at #6322.

@tainguyenbui the optional "flag" to pass in will be your API token. 😄 You are very welcome to review the doc change (and the code change, if you feel like it). Thanks for reporting this issue! I've wanted to get this improvement in for years. 😄

@pdurbin pdurbin removed their assignment Oct 31, 2019
pdurbin added a commit that referenced this issue Nov 1, 2019
kcondon added a commit that referenced this issue Nov 1, 2019
Search API no longer limited to published data #6301
@tainguyenbui
Copy link
Contributor Author

tainguyenbui commented Nov 1, 2019

thanks a lot everyone! /cc @pdurbin @djbrooke

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 a pull request may close this issue.

3 participants