-
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
UI: add deletion_allowed to transform, add tokenization transform type #25436
Conversation
Build Results: |
CI Results: |
const base = `${this.buildURL()}/${encodePath(backend)}`; | ||
// when type exists, transformations is plural | ||
const url = type ? `${base}/transformations/${type}` : `${base}/transformation`; | ||
if (id) return `${url}/${encodePath(id)}`; |
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.
I find url
easier to read this way, but I can revert to url = url + '/' + encodePath(id);
if folks prefer that! I don't have strong feelings 😄
@@ -83,12 +86,49 @@ export default Model.extend({ | |||
subText: 'Search for an existing role, type a new role to create it, or use a wildcard (*).', | |||
wildcardLabel: 'role', | |||
}), | |||
deletion_allowed: attr('boolean', { |
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.
Wrote these params based on the docs - so a second set of eyes checking them for typos/accuracy would be helpful!
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.
Looks great! Thanks, and not glimmerizing for maximum backportability makes a lot of sense
In 1.6 general requests to
/transform
(without:type
) as part of the URL was deprecated docsI decided against glimmerizing for backportability since this will go back to every supported release. Changes in this PR include:
deletion_allowed
to all transform typestokenization
and associated params:type
endpoint (e.g./transform/transformations/fpe/:name
enterprise tests ✅
📷