Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge dev to staging: Ember 3.28 upgrade #226

Merged
merged 67 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
6bef291
Initial upgrade to 3.28
kaysiz Mar 20, 2024
5a77e35
Initial upgrade to 3.28
kaysiz Mar 20, 2024
9b3f349
Fix test command and run yarn install
kaysiz Mar 20, 2024
2c4d4c4
Codemods output - prior testing
kaysiz Mar 20, 2024
5f8caaa
Update packages in yellow and green
kaysiz Mar 20, 2024
afe0235
Update packages in yellow and green
kaysiz Mar 20, 2024
ffee689
ember-cli-htmlbars-inline-precompile is no longer needed with ember-c…
kaysiz Mar 20, 2024
8eab8db
upgrade ember-bootstrap to 2.8.0
kaysiz Mar 20, 2024
d662d63
WIP
kaysiz Apr 2, 2024
938eaaa
Merge branch 'master' of github.com:ror-community/ror-app into kaysiz…
kaysiz Apr 8, 2024
af82b1c
fix unknown rule for template lint
kaysiz Apr 8, 2024
51633ee
fix depractation warnings with npx @ember/octanify
kaysiz Apr 8, 2024
3af333f
Update ember-bootstrap to 5.x
kaysiz Apr 8, 2024
68469d1
ember-cli-app-version
kaysiz Apr 8, 2024
5fb4663
Add webpack, ember-auto-import depends on it
kaysiz Apr 10, 2024
9b0ab95
Revert changes to the eslintrc file
kaysiz Apr 10, 2024
3089092
Add a dependency helper explode assignable expressesion
kaysiz Apr 10, 2024
c3b8b44
Remove jquery and update truth helper
kaysiz Apr 10, 2024
5412fa5
Remove flash package, seems to be unused
kaysiz Apr 10, 2024
a57fcd3
remove an old package and write own implementation
kaysiz Apr 10, 2024
e3758e5
Remove depracated package
kaysiz Apr 10, 2024
61b6290
Use new format for lint to
kaysiz Apr 10, 2024
3160e41
Update string helper
kaysiz Apr 11, 2024
48eaac3
use this for property lookup in templates, fallback has been depracated
kaysiz Apr 11, 2024
a6c904b
upgrade sentry and sass
kaysiz Apr 15, 2024
a8a4f20
upgrade ember-cli-sass
kaysiz Apr 15, 2024
58738e3
upgrade uglifyer which was renamed to terser
kaysiz Apr 15, 2024
9316dea
upgrade optional features
kaysiz Apr 15, 2024
cbd152a
upgrade dotenv
kaysiz Apr 15, 2024
06445f7
Add this when accessing attributes
kaysiz Apr 17, 2024
c77c11e
Merge branch 'dev' into kaysiz-ember-upgrade-3-28
kaysiz Jun 13, 2024
d1a4f7e
Upgrade to 3.28 (#203)
kaysiz Jun 13, 2024
96b2e39
Update node version for workflows
kaysiz Jun 13, 2024
5868302
Merge branch 'kaysiz-ember-upgrade-3-28' of github.com:ror-community/…
kaysiz Jun 13, 2024
3fc0722
Merge branch 'dev' into kaysiz-ember-upgrade-3-28
kaysiz Jun 13, 2024
1cef2bb
ember upgrade 3 28 (#216)
kaysiz Jun 13, 2024
098b977
Disable test - for now
kaysiz Jun 13, 2024
773e486
Rerun yarn with node 18
kaysiz Jun 13, 2024
8e0905e
Merge branch 'dev' into kaysiz-ember-upgrade-3-28
kaysiz Jun 13, 2024
0593a38
ember upgrade 3 28 (#217)
kaysiz Jun 13, 2024
6f702f2
Fix input tag
kaysiz Jul 2, 2024
130e40c
Merge branch 'kaysiz-ember-upgrade-3-28' of github.com:ror-community/…
kaysiz Jul 2, 2024
2cae046
Fix sidebar filter
kaysiz Jul 17, 2024
165d0bd
Ember upgrade - 3.28 (#218)
kaysiz Jul 17, 2024
9f077b8
fix access to variables
kaysiz Jul 29, 2024
9af2cb2
upgrade launchdarkly
kaysiz Jul 29, 2024
8e556c6
update to use ES6 syntax
kaysiz Jul 29, 2024
ea043b7
Adds Events to nav
amandafrench Aug 1, 2024
28147dd
Fixes spacing on footer socials
amandafrench Aug 1, 2024
2d021a8
Fixes favicon ror-community/ror-roadmap#228
amandafrench Aug 1, 2024
970452c
Resolves ror-community/ror-roadmap#226 updates footer to match ror-site
amandafrench Aug 1, 2024
5aab748
Remove launch darkly and v1 support
kaysiz Aug 9, 2024
a487fae
Merge branch 'dev' into ember-upgrade-without-v1
kaysiz Aug 9, 2024
743412b
Undoes favicon path change
amandafrench Aug 29, 2024
4c5bf83
Merge pull request #219 from ror-community/nav-events
lizkrznarich Aug 30, 2024
46a3bb7
Fix eslint issues by adding a babel-parser
kaysiz Sep 20, 2024
55d0c90
Updates socials in footer
amandafrench Nov 15, 2024
14eee80
Updates subscribe template
amandafrench Nov 15, 2024
1155665
Resolves socials conflict and incorporates dev changes
amandafrench Nov 15, 2024
432e02e
Merge pull request #221 from ror-community/app-socials-subscribe
lizkrznarich Nov 15, 2024
02bd455
udpate fontawesome to v6.6 and add bluesky icon
lizkrznarich Nov 15, 2024
bfb7d91
Merge pull request #222 from ror-community/update-fontawesome-6-6
lizkrznarich Nov 15, 2024
3de2a20
Fix global search
kaysiz Nov 25, 2024
07d6925
udpate header menu and social icons
lizkrznarich Dec 13, 2024
d9656dd
Merge branch 'dev' into ember-upgrade-without-v1
lizkrznarich Dec 13, 2024
60835e1
Merge pull request #220 from ror-community/ember-upgrade-without-v1
lizkrznarich Dec 13, 2024
1d5a9a4
resolve merge conflict
lizkrznarich Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .ember-cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
/**
Ember CLI sends analytics information by default. The data is completely
anonymous, but there are times when you might want to disable this behavior.

Setting `disableAnalytics` to true will prevent any data from being sent.
*/
"disableAnalytics": false
}
4 changes: 1 addition & 3 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
API_URL_V1=https://api.dev.ror.org/v1
API_URL_V2=https://api.dev.ror.org/v2
API_URL=https://api.dev.ror.org/v2
SENTRY_DSN=https://[email protected]/1422597
BASE_URL=https://dev.ror.org
LAUNCH_DARKLY_CLIENT_SIDE_ID=6390f62d05087a11e466bfc9
4 changes: 1 addition & 3 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
API_URL_V1=https://api.ror.org/v1
API_URL_V2=https://api.ror.org/v2
API_URL=https://api.ror.org/v2
SENTRY_DSN=https://[email protected]/1422597
BASE_URL=https://ror.org
LAUNCH_DARKLY_CLIENT_SIDE_ID=636d08a3d56cf611cc88019d
4 changes: 1 addition & 3 deletions .env.staging
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
API_URL_V1=https://api.staging.ror.org/v1
API_URL_V2=https://api.staging.ror.org/v2
API_URL=https://api.staging.ror.org/v2
SENTRY_DSN=https://[email protected]/1422597
BASE_URL=https://staging.ror.org
LAUNCH_DARKLY_CLIENT_SIDE_ID=636d08a3d56cf611cc88019c
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
root: true,
parser: "babel-eslint",
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module'
Expand Down Expand Up @@ -29,7 +30,7 @@ module.exports = {
},
env: {
browser: false,
node: true
node: true,
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '18'

- name: Extract branch name
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '18'

- name: Extract branch name
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '18'

- name: Extract branch name
shell: bash
Expand Down
21 changes: 21 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# unconventional js
/blueprints/*/files/
/vendor/

# compiled output
/dist/
/tmp/

# dependencies
/bower_components/
/node_modules/

# misc
/coverage/
!.*
.eslintcache

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
2 changes: 1 addition & 1 deletion .template-lintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
'no-triple-curlies': false,
'no-unused-block-params': false,
'simple-unless': false,
'no-console': false,
'no-log': false,
'no-bare-strings': false
}
};
11 changes: 3 additions & 8 deletions app/adapters/application.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import DS from 'ember-data';
import JSONAPIAdapter from '@ember-data/adapter/json-api';
import ENV from 'ror-app/config/environment';
import { inject as service } from '@ember/service';
import { computed } from '@ember/object';

export default DS.JSONAPIAdapter.extend({
launchDarkly: service(),
host: computed('launchDarkly.variation', function() {
return this.launchDarkly.variation('v2_ui') ? ENV.API_URL_V2 : ENV.API_URL_V1;
}),
export default JSONAPIAdapter.extend({
host: ENV.API_URL
});
11 changes: 3 additions & 8 deletions app/adapters/organization.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import DS from 'ember-data';
import JSONAPIAdapter from '@ember-data/adapter/json-api';
import ENV from 'ror-app/config/environment';
import { inject as service } from '@ember/service';
import { computed } from '@ember/object';

export default DS.JSONAPIAdapter.extend({
launchDarkly: service(),
host: computed('launchDarkly.variation', function() {
return this.launchDarkly.variation('v2_ui') ? ENV.API_URL_V2 : ENV.API_URL_V1;
}),
export default JSONAPIAdapter.extend({
host: ENV.API_URL,

urlForFindRecord(id, modelName) {
return `${this.host}/${modelName}s/ror.org/${id}`;
Expand Down
4 changes: 2 additions & 2 deletions app/components/application-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export default Component.extend({

actions: {
search() {
this.get('globalSearch').doSearch(this.query);
this.globalSearch.doSearch(this.query);
},
clear() {
this.get('globalSearch').doSearch(null);
this.globalSearch.doSearch(null);
}
}
});
8 changes: 5 additions & 3 deletions app/components/filter-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export default Component.extend({
filterValue: '',

actions: {
toggleStatus(e){
this.set(e.target.name, e.target.checked)
},
applyFilter() {
this.filterValue = ''
if (this.activeStatus == true){
Expand All @@ -22,8 +25,7 @@ export default Component.extend({
}
this.filterValue = this.filterValue.slice(0, -1)
this.set('model.query.filter', this.filterValue)
//this.get('globalSearch').doSearch(this.query, this.allStatus)
this.get('router').transitionTo('organizations.index', { queryParams: { query: this.model.query.query, page: this.model.query.page, all_status: this.model.query.allStatus, filter: this.model.query.filter}});
this.router.transitionTo('organizations.index', { queryParams: { query: this.model.query.query, page: this.model.query.page, all_status: this.model.query.allStatus, filter: this.model.query.filter}});
},
clearFilter() {
this.filterValue = ''
Expand All @@ -32,7 +34,7 @@ export default Component.extend({
this.set('withdrawnStatus', false);
this.filterValue = "status:active"
this.set('model.query.filter', this.filterValue)
this.get('router').transitionTo('organizations.index', { queryParams: { query: this.model.query.query, page: this.model.query.page, all_status: this.model.query.allStatus, filter: this.model.query.filter}});
this.router.transitionTo('organizations.index', { queryParams: { query: this.model.query.query, page: this.model.query.page, all_status: this.model.query.allStatus, filter: this.model.query.filter}});
}
}

Expand Down
15 changes: 8 additions & 7 deletions app/components/page-numbers.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import { alias } from '@ember/object/computed';
import Component from '@ember/component';
import { computed } from '@ember/object';

export default Component.extend({
tagName: 'row',

currentPage: computed.alias("model.query.page"),
totalPages: computed.alias("model.meta.totalPages"),
currentPage: alias("model.query.page"),
totalPages: alias("model.meta.totalPages"),

pageItems: computed("currentPage","totalPages", function() {
const page = Number(this.get("currentPage") || 1);
const totalPages = Number(this.get("totalPages"));
const page = Number(this.currentPage || 1);
const totalPages = Number(this.totalPages);

return Array.from(Array(totalPages).keys()).reduce(function (sum, i) {
if (i < 2 || (i > (page - 4) && i < (page + 2)) || i > (totalPages - 3)) {
Expand All @@ -24,8 +25,8 @@ export default Component.extend({
}),

nextPage: computed("currentPage", "totalPages", function() {
const page = Number(this.get("currentPage"));
const totalPages = Number(this.get("totalPages"));
const page = Number(this.currentPage);
const totalPages = Number(this.totalPages);
if (page < totalPages) {
return page + 1;
} else {
Expand All @@ -34,7 +35,7 @@ export default Component.extend({
}),

previousPage: computed("currentPage", function() {
const page = Number(this.get("currentPage"));
const page = Number(this.currentPage);
if (page > 1) {
return page - 1;
} else {
Expand Down
79 changes: 0 additions & 79 deletions app/components/v1/organization-item.js

This file was deleted.

13 changes: 13 additions & 0 deletions app/helpers/decimal-format.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { helper } from '@ember/component/helper';

export function decimalFormat(params) {
const [number] = params;

if (isNaN(number) || number === '') {
return "";
}

return new Intl.NumberFormat().format(number);
}

export default helper(decimalFormat);
2 changes: 1 addition & 1 deletion app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@

<script src="//rum-static.pingdom.net/pa-5c4d5ca09a3f8300160004e3.js" async></script>
</body>
</html>
</html>
38 changes: 19 additions & 19 deletions app/models/organization.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import DS from 'ember-data';
import Model, { attr } from '@ember-data/model';

export default DS.Model.extend({
meta: DS.attr(),
export default Model.extend({
meta: attr(),

name: DS.attr('string'), //TODO: Remove this when v1 has been retired
names: DS.attr(),
local: DS.attr('string'),
types: DS.attr(),
links: DS.attr(),
aliases: DS.attr(),
acronyms: DS.attr(),
external_ids: DS.attr(),
wikipediaUrl: DS.attr('string'),
labels: DS.attr(),
country: DS.attr(),
addresses: DS.attr(),
relationships: DS.attr(),
status: DS.attr('string'),
admin: DS.attr(),
locations: DS.attr()
name: attr('string'), //TODO: Remove this when v1 has been retired
names: attr(),
local: attr('string'),
types: attr(),
links: attr(),
aliases: attr(),
acronyms: attr(),
external_ids: attr(),
wikipediaUrl: attr('string'),
labels: attr(),
country: attr(),
addresses: attr(),
relationships: attr(),
status: attr('string'),
admin: attr(),
locations: attr()
});

8 changes: 4 additions & 4 deletions app/router.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import EmberRouter from '@ember/routing/router';
import config from './config/environment';

const Router = EmberRouter.extend({
location: config.locationType,
rootURL: config.rootURL
});
class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}

Router.map(function() {
this.route('organizations', { path: '/' }, function() {
Expand Down
11 changes: 2 additions & 9 deletions app/routes/application.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
import Route from '@ember/routing/route';

export default Route.extend({
beforeModel(){
let user = {
key: 'user-key-123abc',
anonymous: true
};
return this.launchDarkly.initialize(user);
}
});
export default class ApplicationRoute extends Route {
}
Loading
Loading