-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Updates/removes dependencies throwing errors in Ember 4.4 #17396
Changes from 15 commits
458bca1
9fc5c16
bdeadf8
12d051b
5d96b73
0bd0b1b
1af9889
d2406c4
1546980
a951021
1a825de
8ceef07
0110cd1
1f3e82e
c5360a2
1475f9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import Controller from '@ember/controller'; | ||
|
||
export default class MfaMethodsListController extends Controller { | ||
queryParams = { | ||
page: 'page', | ||
}; | ||
zofskeez marked this conversation as resolved.
Show resolved
Hide resolved
|
||
queryParams = ['page']; | ||
|
||
page = 1; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,53 @@ | ||
import { attr } from '@ember-data/model'; | ||
import Fragment from 'ember-data-model-fragments/fragment'; | ||
import Model, { attr } from '@ember-data/model'; | ||
|
||
export default Fragment.extend({ | ||
defaultLeaseTtl: attr({ | ||
export default class MountConfigModel extends Model { | ||
@attr({ | ||
label: 'Default Lease TTL', | ||
editType: 'ttl', | ||
}), | ||
maxLeaseTtl: attr({ | ||
}) | ||
defaultLeaseTtl; | ||
|
||
@attr({ | ||
label: 'Max Lease TTL', | ||
editType: 'ttl', | ||
}), | ||
auditNonHmacRequestKeys: attr({ | ||
}) | ||
maxLeaseTtl; | ||
|
||
@attr({ | ||
label: 'Request keys excluded from HMACing in audit', | ||
editType: 'stringArray', | ||
helpText: "Keys that will not be HMAC'd by audit devices in the request data object.", | ||
}), | ||
auditNonHmacResponseKeys: attr({ | ||
}) | ||
auditNonHmacRequestKeys; | ||
|
||
@attr({ | ||
label: 'Response keys excluded from HMACing in audit', | ||
editType: 'stringArray', | ||
helpText: "Keys that will not be HMAC'd by audit devices in the response data object.", | ||
}), | ||
listingVisibility: attr('string', { | ||
}) | ||
auditNonHmacResponseKeys; | ||
|
||
@attr('string', { | ||
editType: 'boolean', | ||
label: 'List method when unauthenticated', | ||
trueValue: 'unauth', | ||
falseValue: 'hidden', | ||
}), | ||
passthroughRequestHeaders: attr({ | ||
}) | ||
listingVisibility; | ||
|
||
@attr({ | ||
label: 'Allowed passthrough request headers', | ||
helpText: 'Headers to whitelist and pass from the request to the backend', | ||
editType: 'stringArray', | ||
}), | ||
tokenType: attr('string', { | ||
}) | ||
passthroughRequestHeaders; | ||
|
||
@attr('string', { | ||
label: 'Token Type', | ||
helpText: | ||
"The type of token that should be generated via this role. Can be `service`, `batch`, or `default` to use the mount's default (which unless changed will be `service` tokens).", | ||
possibleValues: ['default', 'batch', 'service'], | ||
defaultFormValue: 'default', | ||
}), | ||
}); | ||
}) | ||
tokenType; | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
import RESTSerializer, { EmbeddedRecordsMixin } from '@ember-data/serializer/rest'; | ||
import { assign } from '@ember/polyfills'; | ||
import { decamelize } from '@ember/string'; | ||
import IdentityManager from '../utils/identity-manager'; | ||
|
||
const uuids = new IdentityManager(); | ||
Comment on lines
+4
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was running into an issue where |
||
|
||
export default RESTSerializer.extend(EmbeddedRecordsMixin, { | ||
keyForAttribute: function (attr) { | ||
|
@@ -9,6 +12,22 @@ export default RESTSerializer.extend(EmbeddedRecordsMixin, { | |
|
||
attrs: { | ||
nodes: { embedded: 'always' }, | ||
dr: { embedded: 'always' }, | ||
performance: { embedded: 'always' }, | ||
}, | ||
|
||
setReplicationId(data) { | ||
if (data) { | ||
data.id = data.cluster_id || uuids.fetch(); | ||
} | ||
}, | ||
|
||
normalize(modelClass, data) { | ||
// embedded records need a unique value to be stored | ||
// set id for dr and performance to cluster_id or random unique id | ||
this.setReplicationId(data.dr); | ||
this.setReplicationId(data.performance); | ||
return this._super(modelClass, data); | ||
}, | ||
|
||
pushPayload(store, payload) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After updating
ember-data
to4.5
an error was thrown stating that the yarn version was too old and the build failed. I ranyarn policies set-version 1.22.19
as per the readme to update the embedded yarn version to the latest.