Skip to content

Fix accession type option in clipboard export#2255

Merged
anvit merged 4 commits intoartefactual:qa/2.xfrom
danloveg:dev/2221-cant-change-export-type-to-accession
Feb 18, 2026
Merged

Fix accession type option in clipboard export#2255
anvit merged 4 commits intoartefactual:qa/2.xfrom
danloveg:dev/2221-cant-change-export-type-to-accession

Conversation

@danloveg
Copy link
Copy Markdown
Contributor

@danloveg danloveg commented Dec 5, 2025

Closes #2221
Closes #2222

These issues are closely related so I addressed them both in this PR.

There is some JS that watches for changes in the Type selector on the clipboard export page, and "accession" was not one of the expected types, so it always fell back to "informationObject". This is why it wasn't possible to select the Accession option.

And now I'm only showing the Accession option in that dropdown when the user is an editor or admin.

Previously the type would fall back to informationObject when the
selected type was accession.
@danloveg
Copy link
Copy Markdown
Contributor Author

danloveg commented Dec 5, 2025

Looks like a network issue cause the Electron integration tests to fail. I don't have permission to retry the job but I'd expect it to succeed if it was retried

@sarah-mason sarah-mason added the Community Pull requests that have been contributed from community members outside Artefactual label Dec 8, 2025
Copy link
Copy Markdown
Contributor

@anvit anvit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks @danloveg

@anvit anvit added this to the 2.11 milestone Feb 18, 2026
@anvit anvit merged commit 973191b into artefactual:qa/2.x Feb 18, 2026
6 checks passed
@danloveg danloveg deleted the dev/2221-cant-change-export-type-to-accession branch February 18, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Pull requests that have been contributed from community members outside Artefactual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problem: Clipboard export type Accession option is visible to all users Problem: Clipboard export page cannot change type to Accessions

3 participants