Skip to content

Commit 9c7021d

Browse files
committed
Merge branch 'release/21.7.0'
2 parents b3857f6 + 167c3da commit 9c7021d

File tree

61 files changed

+444
-557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+444
-557
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
Ticketd PRs should be prefixed with the ticket id, e.g. `[FOO-123] some really great stuff`
88
-->
99

10-
- Ticket: []
11-
- Feature flag: n/a
10+
- Ticket: []
11+
- Feature flag: n/a
1212

1313
## Purpose
1414

@@ -18,6 +18,10 @@
1818

1919
<!-- Briefly describe or list your changes. -->
2020

21+
## Screenshot(s)
22+
23+
<!-- Attach screenshots if applicable. -->
24+
2125
## Side Effects
2226

2327
<!-- Any possible side effects? (https://en.wikipedia.org/wiki/Side_effect_%28computer_science%29) -->

.github/dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
target-branch: dependency_upgrades
9+
versioning-strategy: increase-if-necessary
10+
ignore:
11+
- dependency-name: ember-cli
12+
- dependency-name: ember-source
13+
- dependency-name: ember-data
14+
- dependency-name: ember-cli-htmlbars
15+
- dependency-name: ember-cli-typescript
16+
- dependency-name: ember-cli-babel
17+
- dependency-name: ember-auto-import
18+
- dependency-name: ember-resolver

.github/workflows/CI.yml

Lines changed: 17 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -161,54 +161,20 @@ jobs:
161161
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
162162
timeout-minutes: 10
163163

164-
# Coverage disabled while these are worked out:
165-
# https://github.com/babel/ember-cli-babel/issues/350
166-
# https://github.com/ember-cli/babel-plugin-ember-modules-api-polyfill/issues/112
167-
# test-with-coverage:
168-
# runs-on: ubuntu-latest
169-
# timeout-minutes: 10
170-
# needs: build
171-
# steps:
172-
# - uses: actions/checkout@v2
173-
# - uses: volta-cli/action@v1
174-
# - uses: actions/download-artifact@v2
175-
# with:
176-
# name: dist
177-
# path: ./dist
178-
# - id: cache-node-modules
179-
# uses: actions/cache@v2
180-
# with:
181-
# path: ./node_modules
182-
# key: cached_node_modules_${{ secrets.CACHE_VERSION }}_${{ hashFiles('**/yarn.lock') }}
183-
# restore-keys: cached_node_modules_${{ secrets.CACHE_VERSION }}_
184-
# - run: yarn test:cover --path ./dist
185-
# - name: Save code coverage artifact
186-
# uses: actions/upload-artifact@v2
187-
# with:
188-
# name: coverage-info
189-
# path: ./coverage/lcov.info
190-
#
191-
# send-coverage:
192-
# runs-on: ubuntu-latest
193-
# timeout-minutes: 10
194-
# needs: test
195-
# steps:
196-
# - uses: volta-cli/action@v1
197-
# - uses: actions/download-artifact@v2
198-
# with:
199-
# name: coverage-info
200-
# path: ./lcov.info
201-
# - uses: actions/cache@v2
202-
# with:
203-
# path: ./node_modules
204-
# key: cached_node_modules_${{ secrets.CACHE_VERSION }}_${{ hashFiles('**/yarn.lock') }}
205-
# restore-keys: cached_node_modules_${{ secrets.CACHE_VERSION }}_
206-
# - name: Generate coverage report
207-
# env:
208-
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
209-
# run: yarn coveralls
210-
#
211-
# - name: Send coverage report to coveralls
212-
# uses: coverallsapp/github-action@master
213-
# with:
214-
# github-token: ${{ secrets.GITHUB_TOKEN }}
164+
test-with-coverage:
165+
needs: fetch-dependencies
166+
runs-on: ubuntu-latest
167+
steps:
168+
- uses: actions/checkout@v2
169+
- uses: volta-cli/action@v1
170+
- id: cache-node-modules
171+
uses: actions/cache@v2
172+
with:
173+
path: ./node_modules
174+
key: cached_node_modules_${{ secrets.CACHE_VERSION }}_${{ hashFiles('**/yarn.lock') }}
175+
restore-keys: cached_node_modules_${{ secrets.CACHE_VERSION }}_
176+
- run: yarn test:ember:cover
177+
- name: Send coverage report to coveralls
178+
uses: coverallsapp/github-action@master
179+
with:
180+
github-token: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@ 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.6.3] - 2021-09-14
8+
### Fixed
9+
- A11y: Draft Registration Metadata Page - Critical WCAG 2A Rule Violations - Third Party Libraries
10+
- A11y: Draft Registration Metadata Page - Serious WCAG 2AA Rule Violation
11+
- autosave failed message for draft registrations page
12+
- ensure users are properly logged out when using Log Out link from User Dropdown menu
13+
- clicking "Leave this view" on the VOL of Registration doesn't clear VOL hash from url
14+
15+
### Added
16+
- collection provider description on provider's discover page
17+
- sorting meeting submissions by download count
18+
- add data test locators to elements on My Registrations Page
19+
20+
### Removed
21+
- Feedback button on quickfiles page
22+
23+
### Changed
24+
- (IA/IMLS) update registration creation modal language
25+
- (IA/IMLS) update registration completion modal language
26+
727
## [21.6.3] - 2021-07-09
828
### Fixed
929
- [hotfix] Do not serialize empty node-license
@@ -1770,7 +1790,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
17701790
### Added
17711791
- Quick Files
17721792

1773-
[Unreleased]: https://github.com/CenterForOpenScience/ember-osf-web/compare/21.6.3...develop
1793+
[Unreleased]: https://github.com/CenterForOpenScience/ember-osf-web/compare/21.7.0...develop
1794+
[21.7.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/21.7.0
17741795
[21.6.3]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/21.6.3
17751796
[21.6.2]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/21.6.2
17761797
[21.6.1]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/21.6.1

app/guid-user/quickfiles/template.hbs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,3 @@
2727
/>
2828
</div>
2929
</div>
30-
31-
<FeedbackButton @text={{t 'quickfiles.feedback_dialog_text'}} @pageName={{this.pageName}} />

app/meetings/detail/-components/meeting-submissions-list/template.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
</div>
4242
<div data-test-submissions-list-header-download local-class='HeaderNarrow'>
4343
{{t 'meetings.detail.meeting-submissions-list.downloads'}}
44+
<SortButton @sortBy='download_count' />
4445
</div>
4546
{{/let}}
4647
</list.header>

app/models/collection-provider.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { computed } from '@ember/object';
2+
import { htmlSafe } from '@ember/string';
13
import { belongsTo, AsyncBelongsTo } from '@ember-data/model';
24

35
import CollectionModel from './collection';
@@ -6,6 +8,14 @@ import ProviderModel from './provider';
68
export default class CollectionProviderModel extends ProviderModel {
79
@belongsTo('collection')
810
primaryCollection!: AsyncBelongsTo<CollectionModel> & CollectionModel;
11+
12+
@computed('description')
13+
get htmlSafeDescription() {
14+
if (this.description) {
15+
return htmlSafe(this.description);
16+
}
17+
return '';
18+
}
919
}
1020

1121
declare module 'ember-data/types/registries/model' {

app/models/registration.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export default class RegistrationModel extends NodeModel.extend(Validations) {
8585

8686
// Write-only attributes
8787
@attr('array') includedNodeIds?: string[];
88-
@attr('boolean') createDoi?: boolean;
8988
@attr('fixstring') draftRegistrationId?: string;
9089

9190
@belongsTo('node', { inverse: 'registrations' })

app/services/current-user.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default class CurrentUserService extends Service {
7979

8080
constructor(...args: any[]) {
8181
super(...args);
82-
this.session.on('invalidationSucceeded', this, this.logout);
82+
this.session.on('invalidationSucceeded', this, this._authRedirect.bind(this, AuthRoute.Logout));
8383
}
8484

8585
/**
@@ -92,14 +92,12 @@ export default class CurrentUserService extends Service {
9292
}
9393

9494
/**
95-
* Invalidate the current session and cookie, then redirect to the given URL (or back to the current page).
96-
* Returns a promise that never resolves.
95+
* Invalidate the current session and cookie
9796
*/
98-
async logout(nextUrl?: string) {
97+
async logout() {
9998
if (this.session.isAuthenticated) {
10099
await this.session.invalidate();
101100
}
102-
return this._authRedirect(AuthRoute.Logout, nextUrl);
103101
}
104102

105103
_authRedirect(authRoute: AuthRoute, nextUrl?: string) {

config/environment.d.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ declare const config: {
5656
};
5757
}>;
5858
FB_APP_ID?: string;
59-
microfeedback: {
60-
enabled: boolean;
61-
url: string | null;
62-
pageParams: { [index: string]: {
63-
componentID?: string;
64-
priorityID?: string;
65-
} | undefined };
66-
};
6759
OSF: {
6860
clientId?: string;
6961
scope?: string;

0 commit comments

Comments
 (0)