Skip to content

Commit 47763b9

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into feature/verified-resource-linking
2 parents eefee2b + 186fd80 commit 47763b9

File tree

33 files changed

+593
-18
lines changed

33 files changed

+593
-18
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [25.12.0] - 2025-06-13
8+
### Added
9+
- Google File Picker workflow
10+
- Misc. improvements
11+
12+
## [25.11.0] - 2025-06-11
13+
### Added
14+
- Manual GUID and DOI assignment during Preprint and Registration Creation
15+
716
## [25.10.0] - 2025-05-13
817
### Added
918
- Re-enable view and download counts for preprints

app/config/environment.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ declare const config: {
141141
doiUrlPrefix: string;
142142
dataciteTrackerRepoId: string;
143143
dataCiteTrackerUrl: string;
144+
googleFilePicker: {
145+
GOOGLE_FILE_PICKER_SCOPES: string;
146+
GOOGLE_FILE_PICKER_CLIENT_ID: string;
147+
GOOGLE_FILE_PICKER_API_KEY: string;
148+
GOOGLE_FILE_PICKER_APP_ID: number;
149+
}
144150
};
145151
social: {
146152
twitter: {

app/guid-node/files/provider/template.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
>
88
<div local-class='FileBrowser'>
99
<FileBrowser
10+
@configuredStorageAddon={{this.model.configuredStorageAddon}}
1011
@manager={{manager}}
1112
@selectable={{not this.model.providerTask.value.currentUser.viewOnlyToken}}
1213
@enableUpload={{true}}

app/models/authorized-account.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Model, { attr } from '@ember-data/model';
1+
import Model, { attr} from '@ember-data/model';
22
import { OperationKwargs } from 'ember-osf-web/models/addon-operation-invocation';
33

44
export enum ConnectedCapabilities {
@@ -36,7 +36,6 @@ export default class AuthorizedAccountModel extends Model {
3636
return;
3737
}
3838

39-
4039
async getItemInfo(this: AuthorizedAccountModel, _itemId: string) : Promise<any> {
4140
// To be implemented in child classes
4241
return;

app/models/authorized-storage-account.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
import { AsyncBelongsTo, belongsTo } from '@ember-data/model';
1+
import { AsyncBelongsTo, attr, belongsTo } from '@ember-data/model';
22
import { waitFor } from '@ember/test-waiters';
33
import { task } from 'ember-concurrency';
44
import { ConnectedStorageOperationNames, OperationKwargs } from 'ember-osf-web/models/addon-operation-invocation';
5+
import ExternalStorageServiceModel from 'ember-osf-web/models/external-storage-service';
56

6-
import ExternalStorageServiceModel from './external-storage-service';
77
import AuthorizedAccountModel from './authorized-account';
88
import UserReferenceModel from './user-reference';
99

1010
export default class AuthorizedStorageAccountModel extends AuthorizedAccountModel {
11+
@attr('fixstring') serializeOauthToken!: string;
12+
@attr('fixstring') oauthToken!: string;
13+
1114
@belongsTo('user-reference', { inverse: 'authorizedStorageAccounts' })
1215
readonly accountOwner!: AsyncBelongsTo<UserReferenceModel> & UserReferenceModel;
1316

app/models/index-card-search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface SearchFilter {
1010
filterType?: string;
1111
}
1212

13-
export const ShareMoreThanTenThousand = 'https://share.osf.io/vocab/2023/trove/ten-thousands-and-more';
13+
export const ShareMoreThanTenThousand = 'trove:ten-thousands-and-more';
1414

1515
export default class IndexCardSearchModel extends Model {
1616
@attr('string') cardSearchText!: string;

app/models/preprint.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ export default class PreprintModel extends AbstractNodeModel {
8282
@attr('string') preregLinkInfo!: PreprintPreregLinkInfoEnum;
8383
@attr('number') version!: number;
8484
@attr('boolean') isLatestVersion!: boolean;
85+
@attr('string') manualDoi!: string;
86+
@attr('string') manualGuid!: string;
8587

8688
@belongsTo('node', { inverse: 'preprints' })
8789
node!: AsyncBelongsTo<NodeModel> & NodeModel;

app/models/registration.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ export default class RegistrationModel extends NodeModel.extend(Validations) {
115115
@attr('boolean') hasAnalyticCode!: boolean;
116116
@attr('boolean') hasPapers!: boolean;
117117
@attr('boolean') hasSupplements!: boolean;
118+
@attr('string') manualDoi!: string;
119+
@attr('string') manualGuid!: string;
118120

119121
// Write-only attributes
120122
@attr('array') includedNodeIds?: string[];

app/models/search-result.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ export default class SearchResultModel extends Model {
314314
}
315315

316316
get isWithdrawn() {
317-
return this.resourceMetadata.dateWithdrawn || this.resourceMetadata['https://osf.io/vocab/2022/withdrawal'];
317+
return this.resourceMetadata.dateWithdrawn || this.resourceMetadata['osf:withdrawal'];
318318
}
319319

320320
get configuredAddonNames() {

app/packages/addons-service/provider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ export default class Provider {
258258
accountOwner: this.userReference,
259259
});
260260
await newAccount.save();
261+
newAccount.initiateOauth = null;
261262
return newAccount;
262263
}
263264

0 commit comments

Comments
 (0)