Skip to content

Commit

Permalink
Revert "SALTO-4386 Handle deployment of issue type with hierarchy lev…
Browse files Browse the repository at this point in the history
…el > 0 (#4760)" (#4788)
  • Loading branch information
alonstern authored Aug 27, 2023
1 parent 5f6924b commit 868a0bb
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 400 deletions.
2 changes: 0 additions & 2 deletions packages/jira-adapter/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ import projectCategoryFilter from './filters/project_category'
import addAliasFilter from './filters/add_alias'
import projectRoleRemoveTeamManagedDuplicatesFilter from './filters/remove_specific_duplicate_roles'
import issueLayoutFilter from './filters/issue_layout/issue_layout'
import issueTypeHierarchyFilter from './filters/issue_type_hierarchy_filter'
import projectFieldContextOrder from './filters/project_field_contexts_order'
import scriptedFieldsIssueTypesFilter from './filters/script_runner/scripted_fields_issue_types'
import scriptRunnerFilter from './filters/script_runner/script_runner_filter'
Expand Down Expand Up @@ -240,7 +239,6 @@ export const DEFAULT_FILTERS = [
notificationSchemeStructureFilter,
notificationSchemeDeploymentFilter,
issueTypeScreenSchemeFilter,
issueTypeHierarchyFilter,
fieldConfigurationFilter,
fieldConfigurationItemsFilter,
fieldConfigurationSchemeFilter,
Expand Down
2 changes: 0 additions & 2 deletions packages/jira-adapter/src/change_validators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ import { projectCategoryValidator } from './project_category'
import { unresolvedFieldConfigurationItemsValidator } from './unresolved_field_configuration_items'
import { fieldSecondGlobalContextValidator } from './field_contexts/second_global_context'
import { customFieldsWith10KOptionValidator } from './field_contexts/custom_field_with_10K_options'
import { issueTypeHierarchyValidator } from './issue_type_hierarchy'

const {
deployTypesNotSupportedValidator,
Expand Down Expand Up @@ -110,7 +109,6 @@ export default (
projectCategory: projectCategoryValidator(client),
unresolvedFieldConfigurationItems: unresolvedFieldConfigurationItemsValidator,
customFieldsWith10KOptions: customFieldsWith10KOptionValidator,
issueTypeHierarchy: issueTypeHierarchyValidator,
}

return createChangeValidator({
Expand Down

This file was deleted.

2 changes: 0 additions & 2 deletions packages/jira-adapter/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ export type ChangeValidatorName = (
| 'projectCategory'
| 'unresolvedFieldConfigurationItems'
| 'customFieldsWith10KOptions'
| 'issueTypeHierarchy'
)

type ChangeValidatorConfig = Partial<Record<ChangeValidatorName, boolean>>
Expand Down Expand Up @@ -273,7 +272,6 @@ const changeValidatorConfigType = createMatchingObjectType<ChangeValidatorConfig
projectCategory: { refType: BuiltinTypes.BOOLEAN },
unresolvedFieldConfigurationItems: { refType: BuiltinTypes.BOOLEAN },
customFieldsWith10KOptions: { refType: BuiltinTypes.BOOLEAN },
issueTypeHierarchy: { refType: BuiltinTypes.BOOLEAN },
},
annotations: {
[CORE_ANNOTATIONS.ADDITIONAL_PROPERTIES]: false,
Expand Down
58 changes: 0 additions & 58 deletions packages/jira-adapter/src/filters/issue_type_hierarchy_filter.ts

This file was deleted.

4 changes: 2 additions & 2 deletions packages/jira-adapter/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ export const isFreeLicense = async (
const mainApplication = accountInfo.value.license.applications.find((app: Value) => app.id === 'jira-software')

if (mainApplication?.plan === undefined) {
log.warn('could not find license of jira-software, treating the account as free one')
return true
log.error('could not find license of jira-software, treating the account as paid one')
return false
}
return mainApplication.plan === JIRA_FREE_PLAN
}
Expand Down

This file was deleted.

Loading

0 comments on commit 868a0bb

Please sign in to comment.