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

SALTO-7356: block system generated fields deployment #7202

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

IdoZakk
Copy link
Contributor

@IdoZakk IdoZakk commented Feb 3, 2025

Those fields can be created by Atlassian and create duplicates, we should not deploy them


See ticket for more information.
I checked only the 3 templates that were the major ones in the previous one, there might be additional fields in the other templates.
Please also review the article, I will publish it once approved and update the reference in the CV accordingly


Release Notes:
Jira Adapter:

  • Deployment of JSM fields that can be created by Atlassian will be blocked

User Notifications:
None

@coveralls
Copy link

Coverage Status

coverage: 93.631% (+0.001%) from 93.63%
when pulling 1a8f7ac on IdoZakk:7356BlockDuplicateFields
into b7125d3 on salto-io:main.

Copy link
Contributor

@shayc331 shayc331 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the code and the article LGTM,
had some small comments on the code, approve in advance
I think a native English speaker should review the article as well.

})

const jsmFieldToTemplateName = (field: string): string | undefined => {
const map = PROJECT_TEMPLATE_TO_FIELDS()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it a function and not a constant?
I find it weird to use a function with SCREAMING_SNAKE_CASE

})

const jsmFieldToTemplateName = (field: string): string | undefined => {
const map = PROJECT_TEMPLATE_TO_FIELDS()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please rename map to something more informative

@@ -41,12 +38,12 @@ const jsmFieldToTemplateName = (field: string): string => {
}

export const lockedFieldsValidator: ChangeValidator = async changes =>
awu(changes)
changes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants