Skip to content

Commit 7a3bc8d

Browse files
committed
Merge branch 'hotfix/21.5.1'
2 parents 77b1022 + d6bad75 commit 7a3bc8d

File tree

24 files changed

+169
-65
lines changed

24 files changed

+169
-65
lines changed

.github/workflows/CI.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
uses: actions/cache@v2
2424
with:
2525
path: ./node_modules
26-
key: cached_node_modules_${{ hashFiles('**/yarn.lock') }}
27-
restore-keys: cached_node_modules_
26+
key: cached_node_modules_${{ secrets.CACHE_VERSION }}_${{ hashFiles('**/yarn.lock') }}
27+
restore-keys: cached_node_modules_${{ secrets.CACHE_VERSION }}_
2828
- if: steps.cache-node-modules.outputs.cache-hit != 'true'
2929
run: yarn --prefer-offline --frozen-lockfile --ignore-engines
3030

@@ -38,8 +38,8 @@ jobs:
3838
uses: actions/cache@v2
3939
with:
4040
path: ./node_modules
41-
key: cached_node_modules_${{ hashFiles('**/yarn.lock') }}
42-
restore-keys: cached_node_modules_
41+
key: cached_node_modules_${{ secrets.CACHE_VERSION }}_${{ hashFiles('**/yarn.lock') }}
42+
restore-keys: cached_node_modules_${{ secrets.CACHE_VERSION }}_
4343
- run: yarn build:test
4444
- uses: actions/upload-artifact@v2
4545
with:
@@ -55,8 +55,8 @@ jobs:
5555
uses: actions/cache@v2
5656
with:
5757
path: ./node_modules
58-
key: cached_node_modules_${{ hashFiles('**/yarn.lock') }}
59-
restore-keys: cached_node_modules_
58+
key: cached_node_modules_${{ secrets.CACHE_VERSION }}_${{ hashFiles('**/yarn.lock') }}
59+
restore-keys: cached_node_modules_${{ secrets.CACHE_VERSION }}_
6060
- run: yarn lint:es
6161
- run: yarn lint:ts
6262
- run: yarn lint:style
@@ -76,8 +76,8 @@ jobs:
7676
uses: actions/cache@v2
7777
with:
7878
path: ./node_modules
79-
key: cached_node_modules_${{ hashFiles('**/yarn.lock') }}
80-
restore-keys: cached_node_modules_
79+
key: cached_node_modules_${{ secrets.CACHE_VERSION }}_${{ hashFiles('**/yarn.lock') }}
80+
restore-keys: cached_node_modules_${{ secrets.CACHE_VERSION }}_
8181
- uses: percy/[email protected]
8282
with:
8383
custom-command: yarn test --path ./dist --partition 1
@@ -101,8 +101,8 @@ jobs:
101101
uses: actions/cache@v2
102102
with:
103103
path: ./node_modules
104-
key: cached_node_modules_${{ hashFiles('**/yarn.lock') }}
105-
restore-keys: cached_node_modules_
104+
key: cached_node_modules_${{ secrets.CACHE_VERSION }}_${{ hashFiles('**/yarn.lock') }}
105+
restore-keys: cached_node_modules_${{ secrets.CACHE_VERSION }}_
106106
- uses: percy/[email protected]
107107
with:
108108
custom-command: yarn test --path ./dist --partition 2
@@ -126,8 +126,8 @@ jobs:
126126
uses: actions/cache@v2
127127
with:
128128
path: ./node_modules
129-
key: cached_node_modules_${{ hashFiles('**/yarn.lock') }}
130-
restore-keys: cached_node_modules_
129+
key: cached_node_modules_${{ secrets.CACHE_VERSION }}_${{ hashFiles('**/yarn.lock') }}
130+
restore-keys: cached_node_modules_${{ secrets.CACHE_VERSION }}_
131131
- uses: percy/[email protected]
132132
with:
133133
custom-command: yarn test --path ./dist --partition 3
@@ -151,8 +151,8 @@ jobs:
151151
uses: actions/cache@v2
152152
with:
153153
path: ./node_modules
154-
key: cached_node_modules_${{ hashFiles('**/yarn.lock') }}
155-
restore-keys: cached_node_modules_
154+
key: cached_node_modules_${{ secrets.CACHE_VERSION }}_${{ hashFiles('**/yarn.lock') }}
155+
restore-keys: cached_node_modules_${{ secrets.CACHE_VERSION }}_
156156
- uses: percy/[email protected]
157157
with:
158158
custom-command: yarn test --path ./dist --partition 4

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ 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+
## [21.5.1] - 2021-06-21
8+
### Added
9+
- Character Lab: Add new fields for Character Lab ( Study Design and School Type) on Collections Discover page and Collection Submission page. Users should be able to filter by these new fields and see them visible on Collection search cards on the discover page
10+
11+
### Fixed
12+
- Keen analytics: Don't load keen twice on load
13+
14+
### Changed
15+
- Character Lab: Allow moderators to add new registrations when `allowSubmissions` is `false`
16+
717
## [21.5.0] - 2021-05-27
818
### Fixed
919
- registration Detail Page: longer license types spill out of bounds
@@ -1741,7 +1751,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
17411751
### Added
17421752
- Quick Files
17431753

1744-
[Unreleased]: https://github.com/CenterForOpenScience/ember-osf-web/compare/21.5.0...develop
1754+
[Unreleased]: https://github.com/CenterForOpenScience/ember-osf-web/compare/21.5.1...develop
1755+
[21.5.1]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/21.5.1
17451756
[21.5.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/21.5.0
17461757
[21.4.1]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/21.4.1
17471758
[21.4.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/21.4.0

app/models/collected-metadatum.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export const choiceFields = tuple(
1818
'programArea',
1919
'status',
2020
'volume',
21+
'studyDesign',
22+
'schoolType',
2123
);
2224

2325
const Validations = buildValidations({
@@ -48,6 +50,8 @@ export default class CollectedMetadatumModel extends OsfModel.extend(Validations
4850
@attr('string') programArea?: string;
4951
@attr('string') status?: string;
5052
@attr('string') volume?: string;
53+
@attr('string') studyDesign?: string; // custom field for Character Lab
54+
@attr('string') schoolType?: string; // custom field for Character Lab
5155

5256
@belongsTo('collection') collection!: Collection;
5357
@belongsTo('node') guid!: Node;

app/models/collection.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ export type ChoicesFields =
1414
'issueChoices' |
1515
'programAreaChoices' |
1616
'statusChoices' |
17-
'volumeChoices';
17+
'volumeChoices' |
18+
'studyDesignChoices' |
19+
'schoolTypeChoices';
1820

1921
export const choicesFields = choiceFields.map(field => `${field}Choices`) as ChoicesFields[];
2022

@@ -30,6 +32,8 @@ export default class CollectionModel extends OsfModel {
3032
@attr('array') programAreaChoices!: string[];
3133
@attr('array') statusChoices!: string[];
3234
@attr('array') volumeChoices!: string[];
35+
@attr('array') studyDesignChoices!: string[]; // custom field for Character Lab
36+
@attr('array') schoolTypeChoices!: string[]; // custom field for Character Lab
3337

3438
@belongsTo('collection-provider')
3539
provider!: DS.PromiseObject<CollectionProviderModel> & CollectionProviderModel;

lib/analytics-page/addon/components/analytics-charts/x-chart-wrapper/component.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ export default class ChartWrapper extends Component {
7171
.title(' '); // Prevent keen-dataviz from adding a default title
7272

7373
this.initSkeletonChart();
74-
if (this.chartEnabled) {
75-
this.loadKeen.perform();
76-
}
7774
}
7875

7976
didUpdateAttrs() {
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { layout } from 'ember-osf-web/decorators/component';
2+
3+
import Base from '../base/component';
4+
import styles from './styles';
5+
import template from './template';
6+
7+
@layout(template, styles)
8+
export default class ActiveFilterStatus extends Base {
9+
}

lib/collections/addon/components/discover-page/active-filters/school-type/styles.scss

Whitespace-only changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{{#each @context.activeFilter as |item|}}
2+
<DiscoverPage::ActiveFilters::Filter
3+
@item={{item}}
4+
@text={{item}}
5+
@ariaLabel={{t 'collections.discover_page.active_filters.remove_school_type'}}
6+
@removeFilterItem={{action this.removeFilterItem item}}
7+
/>
8+
{{/each}}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { layout } from 'ember-osf-web/decorators/component';
2+
3+
import Base from '../base/component';
4+
import styles from './styles';
5+
import template from './template';
6+
7+
@layout(template, styles)
8+
export default class ActiveFilterStatus extends Base {
9+
}

lib/collections/addon/components/discover-page/active-filters/study-design/styles.scss

Whitespace-only changes.

0 commit comments

Comments
 (0)