IQSS / IQSS/dataverse-frontend

metadata blocks are not hidden when dataverseAlias is specified in tsv

Open
#873 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
31
Forks
26
Avg merge
4d 13h
Merged PRs (30d)
4

Description

At https://guides.dataverse.org/en/6.8/admin/metadatacustomization.html#metadatablock-properties we document a property called dataverseAlias that should have this effect:

"If specified, this metadata block will be available only to the Dataverse collection designated here by its alias and to children of that Dataverse collection."

For example, the SAEF metadata block uses dataverseAlias=SAEF: https://github.com/IQSS/dataverse.harvard.edu/blob/96a97bfdfc97773cc58075e54252b4caca3b98e5/metadatablocks/customSAEF.tsv

This results in the SAEF block being hidden (along with many others) in JSF:

Image

However, in the SPA, dataverseAlias (which translates to owner_id in the database) is not respected. All blocks are shown:

Image

See also discussion at https://dataverse.zulipchat.com/#narrow/channel/378866-troubleshooting/topic/Installing.20metadata.20block.20-.20it's.20not.20showing.20up/near/544990351

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 by tracing the SPA entry point that loads and displays metadata blocks, then compare its filtering with the documented dataverseAlias behavior and the SAEF example in customSAEF.tsv. Check how owner_id is represented in the returned data. Done means blocks scoped to a Dataverse alias are shown only there and in its children, matching JSF behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.