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: Remove prepended pki- to new engine files #17875

Merged
merged 4 commits into from
Nov 10, 2022

Conversation

hellobontempo
Copy link
Contributor

@hellobontempo hellobontempo commented Nov 10, 2022

Now that all things PKI live in a /pki folder we are no longer prepending filenames with pki-

Any newly created files for the pki redesign will follow this pattern (ex. role.js instead of pki-role.js). Aside from cert.js all of the old pki files are prepended with pki- 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

@hellobontempo hellobontempo changed the title UI: append -old to non-engine pki models UI: Remove prepended pki- to new engine files Nov 10, 2022
@@ -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 {
Copy link
Contributor Author

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

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

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

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

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 {}
Copy link
Collaborator

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

Copy link
Contributor Author

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

Copy link
Collaborator

@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.

Thank you!

@hellobontempo hellobontempo merged commit 8c122a3 into main Nov 10, 2022
@hellobontempo hellobontempo deleted the ui/VAULT-9879/rename-new-pki-engine-files branch November 10, 2022 21:27
hellobontempo added a commit that referenced this pull request Nov 10, 2022
jayant07-yb pushed a commit to jayant07-yb/hashicorp-vault-integrations that referenced this pull request Mar 15, 2023
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants