Skip to content

Commit

Permalink
Relocating module @kbn/user-profile-components
Browse files Browse the repository at this point in the history
  • Loading branch information
gsoldevila committed Dec 5, 2024
1 parent f1c2a73 commit 33582ae
Show file tree
Hide file tree
Showing 29 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,7 @@ module.exports = {
'packages/kbn-mock-idp-plugin/**/*.{js,mjs,ts,tsx}',
'packages/kbn-mock-idp-utils/**/*.{js,mjs,ts,tsx}',
'src/platform/packages/shared/kbn-security-hardening/**/*.{js,mjs,ts,tsx}',
'packages/kbn-user-profile-components/**/*.{js,mjs,ts,tsx}',
'src/platform/packages/shared/kbn-user-profile-components/**/*.{js,mjs,ts,tsx}',

'x-pack/platform/plugins/shared/encrypted_saved_objects/**/*.{js,mjs,ts,tsx}',
'x-pack/test/encrypted_saved_objects_api_integration/**/*.{js,mjs,ts,tsx}',
Expand Down
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,6 @@ packages/kbn-unified-field-list @elastic/kibana-data-discovery
packages/kbn-unsaved-changes-badge @elastic/kibana-data-discovery
packages/kbn-unsaved-changes-prompt @elastic/kibana-management
packages/kbn-use-tracked-promise @elastic/obs-ux-logs-team
packages/kbn-user-profile-components @elastic/kibana-security
packages/kbn-utility-types @elastic/kibana-core
packages/kbn-utility-types-jest @elastic/kibana-operations
packages/kbn-utils @elastic/kibana-operations
Expand Down Expand Up @@ -623,6 +622,7 @@ src/platform/packages/shared/kbn-crypto @elastic/kibana-security
src/platform/packages/shared/kbn-doc-links @elastic/docs
src/platform/packages/shared/kbn-safer-lodash-set @elastic/kibana-security
src/platform/packages/shared/kbn-security-hardening @elastic/kibana-security
src/platform/packages/shared/kbn-user-profile-components @elastic/kibana-security
src/platform/plugins/private/interactive_setup @elastic/kibana-security
src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management
src/plugins/ai_assistant_management/selection @elastic/obs-ai-assistant
Expand Down
2 changes: 1 addition & 1 deletion .i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"uiActionsEnhanced": "src/plugins/ui_actions_enhanced",
"uiActionsExamples": "examples/ui_action_examples",
"usageCollection": "src/plugins/usage_collection",
"userProfileComponents": "packages/kbn-user-profile-components",
"userProfileComponents": "src/platform/packages/shared/kbn-user-profile-components",
"utils": "packages/kbn-securitysolution-utils/src",
"visDefaultEditor": "src/plugins/vis_default_editor",
"visTypeGauge": "src/plugins/vis_types/gauge",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@
"@kbn/usage-collection-plugin": "link:src/plugins/usage_collection",
"@kbn/usage-collection-test-plugin": "link:test/plugin_functional/plugins/usage_collection",
"@kbn/use-tracked-promise": "link:packages/kbn-use-tracked-promise",
"@kbn/user-profile-components": "link:packages/kbn-user-profile-components",
"@kbn/user-profile-components": "link:src/platform/packages/shared/kbn-user-profile-components",
"@kbn/user-profile-examples-plugin": "link:examples/user_profile_examples",
"@kbn/user-profiles-consumer-plugin": "link:x-pack/test/security_api_integration/plugins/user_profiles_consumer",
"@kbn/utility-types": "link:packages/kbn-utility-types",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* IMPORTANT:
*
* The types in this file are duplicated at
* `packages/kbn-user-profile-components/src/user_profile.ts`
* `src/platform/packages/shared/kbn-user-profile-components/src/user_profile.ts`
*
* When making changes please ensure to keep both files in sync.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-user-profile-components'],
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/packages/shared/kbn-user-profile-components'],
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -1998,8 +1998,8 @@
"@kbn/usage-collection-test-plugin/*": ["test/plugin_functional/plugins/usage_collection/*"],
"@kbn/use-tracked-promise": ["packages/kbn-use-tracked-promise"],
"@kbn/use-tracked-promise/*": ["packages/kbn-use-tracked-promise/*"],
"@kbn/user-profile-components": ["packages/kbn-user-profile-components"],
"@kbn/user-profile-components/*": ["packages/kbn-user-profile-components/*"],
"@kbn/user-profile-components": ["src/platform/packages/shared/kbn-user-profile-components"],
"@kbn/user-profile-components/*": ["src/platform/packages/shared/kbn-user-profile-components/*"],
"@kbn/user-profile-examples-plugin": ["examples/user_profile_examples"],
"@kbn/user-profile-examples-plugin/*": ["examples/user_profile_examples/*"],
"@kbn/user-profiles-consumer-plugin": ["x-pack/test/security_api_integration/plugins/user_profiles_consumer"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const getNotesRoute = (
if (createdByFilter) {
// because the notes createdBy property can be either full_name, email or username
// see pickSaveNote (https://github.com/elastic/kibana/blob/main/x-pack/plugins/security_solution/server/lib/timeline/saved_object/notes/saved_object.ts#L302)
// which uses the getUserDisplayName (https://github.com/elastic/kibana/blob/main/packages/kbn-user-profile-components/src/user_profile.ts#L138)
// which uses the getUserDisplayName (https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-user-profile-components/src/user_profile.ts#L138)
const [_, { security }] = await startServices();
const users: UserProfile[] = await security.userProfiles.bulkGet({
uids: new Set([createdByFilter]),
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7812,7 +7812,7 @@
version "0.0.0"
uid ""

"@kbn/user-profile-components@link:packages/kbn-user-profile-components":
"@kbn/user-profile-components@link:src/platform/packages/shared/kbn-user-profile-components":
version "0.0.0"
uid ""

Expand Down

0 comments on commit 33582ae

Please sign in to comment.