Skip to content

Commit 74a7e76

Browse files
committed
Merge branch 'release/25.12.0'
2 parents c573887 + 14c69fb commit 74a7e76

File tree

25 files changed

+443
-16
lines changed

25 files changed

+443
-16
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ 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+
712
## [25.11.0] - 2025-06-11
813
### Added
914
- Manual GUID and DOI assignment during Preprint and Registration Creation

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/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
@@ -237,6 +237,7 @@ export default class Provider {
237237
accountOwner: this.userReference,
238238
});
239239
await newAccount.save();
240+
newAccount.initiateOauth = null;
240241
return newAccount;
241242
}
242243

config/environment.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ const {
102102
SHARE_SEARCH_URL: shareSearchUrl = 'http://localhost:8003/api/v2/search/creativeworks/_search',
103103
SOURCEMAPS_ENABLED: sourcemapsEnabled = true,
104104
SHOW_DEV_BANNER = false,
105+
106+
GOOGLE_FILE_PICKER_SCOPES,
107+
/* eslint-disable-next-line max-len */
108+
GOOGLE_FILE_PICKER_CLIENT_ID,
109+
GOOGLE_FILE_PICKER_API_KEY,
110+
GOOGLE_FILE_PICKER_APP_ID,
111+
105112
} = { ...process.env, ...localConfig };
106113

107114
module.exports = function(environment) {
@@ -224,6 +231,12 @@ module.exports = function(environment) {
224231
doiUrlPrefix: 'https://doi.org/',
225232
dataciteTrackerRepoId,
226233
dataCiteTrackerUrl,
234+
googleFilePicker: {
235+
GOOGLE_FILE_PICKER_SCOPES,
236+
GOOGLE_FILE_PICKER_CLIENT_ID,
237+
GOOGLE_FILE_PICKER_API_KEY,
238+
GOOGLE_FILE_PICKER_APP_ID,
239+
},
227240
},
228241
social: {
229242
twitter: {

lib/osf-components/addon/components/activity-log/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default class ActivityLogComponent extends Component {
44
public loadEmbeds = {
55
embed:
66
[
7-
'group', 'linked_node', 'linked_registration', 'original_node',
7+
'linked_node', 'linked_registration', 'original_node',
88
'template_node', 'user',
99
],
1010
};

0 commit comments

Comments
 (0)