IQSS / IQSS/dataverse-frontend

For Dataset Page, handle unauthorized response from the API differently from version not found.

Open
#310 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

pm.GREI-d-2.7.1 pm.GREI-d-2.7.2
Dominant language
TypeScript
Stars
31
Forks
26
Avg merge
4d 13h
Merged PRs (30d)
4

Description

In the SPA, if an unauthenticated user tries to access the draft version of a dataset, the page redirects to the latest published version with a message that the the Draft version wasn't found, for example:

Screenshot 2024-02-14 at 2 19 40 PM

In JSF, instead of showing the latest version, the user is redirected to the login page. We don't have login built into the SPA yet, so maybe we can show an unauthorized page? Or keep the behavior as is, and add the logic to redirect to login when it is available.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the SPA Dataset Page handling for API responses when an unauthenticated user requests a draft version, and compare it with the described JSF behavior. Resolve whether the result should be an unauthorized page or remain the current behavior pending login support. Done means unauthorized access is no longer presented as a missing draft version.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.