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

Iqss/7952 extended traces api #7953

Merged

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented Jun 18, 2021

What this PR does / why we need it: Extends the api/users/<id>/traces api to allow retrieval of specific types of traces independently.

Which issue(s) this PR closes:

Closes #7952

Special notes for your reviewer: The extension also allows requesting csv or json outputs. CSV is the default, mirroring the metrics API but the default could be switched back to json if preferred.

Adding ?w=1 will help make the changes clearer: https://github.com/IQSS/dataverse/pull/7953/files?w=1

Suggestions on how to test this:
Adding a -H 'Accept:application/json' or -H 'Accept:text/csv' header in your curl call will provide json or csv versions of the outout.
Add any of the types listed in the issue onto a traces api call, e.g. /api/users/<id>/traces/datasetCreator and verify that it produces, with the Accept:application/json header, for all but one type, the same result as in the corresponding section of the existing /traces response.

For the one exception .../guestbookEntries - verify that the total number of entries reported is consistent with what /traces reports (.../guestbookEntries adds per-entry info that isn't in the original /traces response.

Testing could also check that the text/csv header produces the same info, just formatted differently.

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

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

Additional documentation: Can document the new options if this goes forward

@kcondon kcondon self-assigned this Jun 28, 2021
@kcondon kcondon merged commit 4868f6e into IQSS:develop Jun 28, 2021
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from QA 🔎✅ to Done 🚀 Jun 28, 2021
@djbrooke djbrooke added this to the 5.6 milestone Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

More granular access to user traces
4 participants