Skip to content

feat: templated external links (draft)#2097

Closed
GBirkel wants to merge 24 commits into
SciCatProject:masterfrom
als-computing:templated-external-links-v2
Closed

feat: templated external links (draft)#2097
GBirkel wants to merge 24 commits into
SciCatProject:masterfrom
als-computing:templated-external-links-v2

Conversation

@GBirkel

@GBirkel GBirkel commented Aug 4, 2025

Copy link
Copy Markdown
Contributor

Description

Add a field for generating dataset links based on admin-configured templates.

See #689 for details.

This has a companion PR for the front end: SciCatProject/frontend#1910 .

Motivation

We get a lot of requests from users and researchers to provide a variety of different types of web-based tools that related directly to datasets. These can be pages that display visualization, pages that provide analysis tools (including AI/ML) and jupyter notebooks on particular JupyterHub instance. In all cases, we would want to take the user to the page with the dataset in context.

Fixes

  • Bug fixed (#X)

Changes:

  • changes made

Tests included

  • Included for each change/fix?
  • Passing?

Documentation

  • swagger documentation updated (required for API changes)
  • official documentation updated

official documentation info

@nitrosx nitrosx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

IT can be approved after fixing the linting and adding some API testing.
Also I would check if dataset schema to obsolete dto works correctly

Comment thread src/datasets/schemas/externallink.class.ts Outdated
@GBirkel GBirkel marked this pull request as draft August 8, 2025 18:10
@GBirkel

GBirkel commented Aug 11, 2025

Copy link
Copy Markdown
Contributor Author

Also I would check if dataset schema to obsolete dto works correctly

It does, though I had to add toObject: { virtuals: true, }
https://github.com/SciCatProject/scicat-backend-next/pull/2097/files#diff-4b9a5b8e6eef69831951cba2b15a48dd5fd9b05d06b5fe10d223171039448199R18

Looks like the current-to-obsolete conversion is the only code that uses toObject on datasets.

GBirkel and others added 20 commits August 13, 2025 15:57
…). Referencing it as one in the APIs causes a validation failure, which prevents the SDK from compiling. I assume this is a new error caused by some package upgrade that made validation more precise.
@Junjiequan

Copy link
Copy Markdown
Member

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.

3 participants