• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CenterForOpenScience / ember-osf-web / 16118219201

07 Jul 2025 01:24PM UTC coverage: 67.207% (-0.2%) from 67.382%
16118219201

Pull #2595

github

web-flow
Merge 0da7bb715 into 186fd8065
Pull Request #2595: [ENG-6835] [ENG-8060] [ENG-8289] VRL Project PR - FE

3275 of 5343 branches covered (61.3%)

Branch coverage included in aggregate %.

40 of 112 new or added lines in 16 files covered. (35.71%)

3 existing lines in 1 file now uncovered.

8536 of 12231 relevant lines covered (69.79%)

184.39 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

40.0
/app/models/configured-addon.ts
1
import Model, { AsyncBelongsTo, attr, belongsTo } from '@ember-data/model';
2

3
import UserReferenceModel from 'ember-osf-web/models/user-reference';
4
import { tracked } from 'tracked-built-ins';
5
import { SupportedResourceTypes } from 'ember-osf-web/models/external-link-service';
6
import { ConnectedStorageOperationNames, OperationKwargs } from './addon-operation-invocation';
7
import { ConnectedCapabilities } from './authorized-account';
8

9

10
export interface ConfiguredAddonEditableAttrs {
11
    displayName: string;
12
    rootFolder: string;
13
    targetId: string;
14
    resourceType: SupportedResourceTypes;
15
}
16

17
export default class ConfiguredAddonModel extends Model {
18
    @attr('string') displayName!: string;
19
    @attr('fixstring') externalUserId!: string;
20
    @attr('fixstring') externalUserDisplayName!: string;
21

22
    @attr('string') iconUrl!: string;
23
    @attr('string') authorizedResourceUri?: string;
24

25
    @attr('array') connectedCapabilities!: ConnectedCapabilities[];
26
    @attr('array') connectedOperationNames!: ConnectedStorageOperationNames[];
27
    @attr('fixstring') rootFolder!: string;
28
    @attr('fixstring') externalServiceName!: string;
29

30
    @belongsTo('user-reference', { inverse: null })
31
    accountOwner!: AsyncBelongsTo<UserReferenceModel> & UserReferenceModel;
32

33
    @attr('boolean')
34
    currentUserIsOwner!: boolean;
35

36
    async getFolderItems(this: ConfiguredAddonModel, _kwargs?: OperationKwargs) : Promise<any> {
37
        // To be implemented in child classes
38
        return;
×
39
    }
40

41

42
    async getItemInfo(this: ConfiguredAddonModel, _itemId: string) : Promise<any> {
43
        // To be implemented in child classes
44
        return;
×
45
    }
46

47
    get hasRootFolder() {
48
        return true;
4✔
49

50
    }
51

52
    @tracked rootFolderName = '';
3✔
NEW
53
    @tracked targetItemName = '';
×
54
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc