Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

[ENG-8235] Fix link addon reconfiguration#2586

Merged
cslzchen merged 1 commit into
CenterForOpenScience:feature/verified-resource-linkingfrom
adlius:fix-link-addon-reconfiguration
Jun 20, 2025
Merged

[ENG-8235] Fix link addon reconfiguration#2586
cslzchen merged 1 commit into
CenterForOpenScience:feature/verified-resource-linkingfrom
adlius:fix-link-addon-reconfiguration

Conversation

@adlius

@adlius adlius commented Jun 19, 2025

Copy link
Copy Markdown
Contributor

Purpose

Summary of Changes

Screenshot(s)

Side Effects

QA Notes

@cslzchen cslzchen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good and verified locally ⭐ . Left a couple of questions.

import { tracked } from 'tracked-built-ins';
import { taskFor } from 'ember-concurrency-ts';
import { SupportedResourceTypes } from 'ember-osf-web/models/external-link-service';
// import ConfiguredLinkAddonModel from 'ember-osf-web/models/configured-link-addon';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Any considerations for keeping this?

Comment on lines +55 to +60
@task
@waitFor
async getSelectedItemName(this: ConfiguredCitationAddonModel) {
const response = await taskFor(this.getItemInfo).perform(this.rootFolder);
this.rootFolderName = (response.operationResult as Item).itemName;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Non-blocking: should we define this back in configured-addon.ts while overriding it in `configured-link-addon? In this way, we won't have duplicate code for storage and citation add-ons.

@cslzchen cslzchen merged commit aea44b7 into CenterForOpenScience:feature/verified-resource-linking Jun 20, 2025
9 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants