Skip to content

Commit

Permalink
Move database-helpers into model-helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
hashishaw committed Sep 24, 2024
1 parent 5ce5c26 commit 00178ba
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/app/components/database-role-setting-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import Component from '@glimmer/component';
import { getStatementFields, getRoleFields } from '../utils/database-helpers';
import { getStatementFields, getRoleFields } from '../utils/model-helpers/database-helpers';

/**
* @module DatabaseRoleSettingForm
Expand Down
2 changes: 1 addition & 1 deletion ui/app/models/database/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { computed } from '@ember/object';
import { alias, or } from '@ember/object/computed';
import lazyCapabilities, { apiPath } from 'vault/macros/lazy-capabilities';
import fieldToAttrs, { expandAttributeMeta } from 'vault/utils/field-to-attrs';
import { AVAILABLE_PLUGIN_TYPES } from '../../utils/database-helpers';
import { AVAILABLE_PLUGIN_TYPES } from '../../utils/model-helpers/database-helpers';

/**
* fieldsToGroups helper fn
Expand Down
2 changes: 1 addition & 1 deletion ui/app/models/database/role.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { computed } from '@ember/object';
import { alias } from '@ember/object/computed';
import lazyCapabilities, { apiPath } from 'vault/macros/lazy-capabilities';
import { expandAttributeMeta } from 'vault/utils/field-to-attrs';
import { getRoleFields } from 'vault/utils/database-helpers';
import { getRoleFields } from 'vault/utils/model-helpers/database-helpers';

export default Model.extend({
idPrefix: 'role/',
Expand Down
2 changes: 1 addition & 1 deletion ui/app/serializers/database/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import RESTSerializer from '@ember-data/serializer/rest';
import { AVAILABLE_PLUGIN_TYPES } from '../../utils/database-helpers';
import { AVAILABLE_PLUGIN_TYPES } from '../../utils/model-helpers/database-helpers';

export default RESTSerializer.extend({
primaryKey: 'name',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/

// TODO: move to model-helpers
export const AVAILABLE_PLUGIN_TYPES = [
{
value: 'elasticsearch-database-plugin',
Expand Down

0 comments on commit 00178ba

Please sign in to comment.