-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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: Remove prepended pki- to new engine files #17875
UI: Remove prepended pki- to new engine files #17875
Conversation
@@ -1,7 +1,7 @@ | |||
import ApplicationAdapter from '../application'; | |||
import { encodePath } from 'vault/utils/path-encoding-helpers'; | |||
|
|||
export default class PkiIssuerEngineAdapter extends ApplicationAdapter { | |||
export default class PkiIssuerAdapter extends ApplicationAdapter { |
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.
Following the pattern we've used elsewhere by keeping the folder name in front of the class name so this is PkiIssuerAdapter
instead of IssuerAdapter
@@ -1,3 +0,0 @@ | |||
import PkiCertAdapter from './cert'; |
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.
not deleted, renamed to adapters/pki/certificate.js
@@ -1,3 +0,0 @@ | |||
import CertSerializer from './cert'; |
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.
not deleted, renamed to serializers/pki/certificate.js
@@ -1,3 +0,0 @@ | |||
import ApplicationSerializer from '../application'; |
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.
renamed to serializers/pki/role.js
@@ -2,14 +2,14 @@ import Component from '@glimmer/component'; | |||
import { action } from '@ember/object'; | |||
|
|||
/** | |||
* @module PkiKeyParameters |
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.
all of these components live in the pki/addon
engine
@@ -0,0 +1,3 @@ | |||
import CertSerializer from './cert'; | |||
|
|||
export default class PkiCertificateSerializer extends CertSerializer {} |
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.
Hm, we should probably rewrite this instead of extending but that's just a note for the future
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.
Yeah, I think that was the original intention
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.
Thank you!
This reverts commit 8c122a3.
* append -old to non-engine pki models * revert old file name * remove -engine from all pki component, model, adapter and serializer files * add md file explaining pki naming
Now that all things PKI live in a
/pki
folder we are no longer prepending filenames withpki-
Any newly created files for the pki redesign will follow this pattern (ex.
role.js
instead ofpki-role.js
). Aside fromcert.js
all of the old pki files are prepended withpki-
and these will be removed when the PKI redesign is fully implemented.List of old files:
│── models/
│ │── pki/
│ │ │── cert.js
│ │ │── pki-config.js
│ │ │── pki-role.js
│ │── pki-ca-certificate-sign.js
│ │── pki-ca-certificate.js
│ │── pki-certificate-sign.js
│── serializers/
│ │── pki/
│ │ │── cert.js
│ │ │── pki-config.js
│ │ │── pki-role.js
│── adapters/
│ │── pki/
│ │ │── cert.js
│ │ │── pki-config.js
│ │ │── pki-role.js
│ │── pki-ca-certificate-sign.js
│ │── pki-ca-certificate.js
│ │── pki-certificate-sign.js
│ │── pki.js