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

UI: add deletion_allowed to transform, add tokenization transform type #25436

Merged
merged 6 commits into from
Feb 16, 2024

Conversation

hellobontempo
Copy link
Contributor

@hellobontempo hellobontempo commented Feb 14, 2024

In 1.6 general requests to /transform (without :type) as part of the URL was deprecated docs

I decided against glimmerizing for backportability since this will go back to every supported release. Changes in this PR include:

  • adds deletion_allowed to all transform types
  • adds the third type, tokenization and associated params
  • each transform type makes a request to the specific :type endpoint (e.g./transform/transformations/fpe/:name

enterprise tests ✅

Screenshot 2024-02-14 at 4 00 01 PM

📷

transform

@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Feb 14, 2024
Copy link

Build Results:
All builds succeeded! ✅

Copy link

github-actions bot commented Feb 14, 2024

CI Results:
All Go tests succeeded! ✅

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)}`;
Copy link
Contributor Author

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', {
Copy link
Contributor Author

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!

Copy link
Contributor

@hashishaw hashishaw left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants