Skip to content

Iqss/7952 extended traces api - #7953

Merged
kcondon merged 9 commits into
IQSS:developfrom
QualitativeDataRepository:IQSS/7952-extended_traces_api
Jun 28, 2021
Merged

kcondon merged 9 commits into
IQSS:developfrom
QualitativeDataRepository:IQSS/7952-extended_traces_api

Conversation

@qqmyers

@qqmyers qqmyers commented Jun 18, 2021 •

Copy link
Copy Markdown
Member

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
@djbrooke djbrooke added this to the 5.6 milestone Jun 29, 2021
@qqmyers
qqmyers deleted the IQSS/7952-extended_traces_api branch May 17, 2024 18:40
@pdurbin

pdurbin commented Nov 9, 2026

Copy link
Copy Markdown
Member

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

This was never documented. I just added docs in this PR:

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.

More granular access to user traces

5 participants