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

HCK-7928: ScyllaDB deactivated view fields are not commented out in FE #67

Merged
merged 9 commits into from
Sep 12, 2024

Conversation

Nightlngale
Copy link
Contributor

@Nightlngale Nightlngale commented Sep 10, 2024

Sub-bugHCK-7928 ScyllaDB deactivated view fields are not commented out in FE

forward_engineering/helpers/viewHelper.js Outdated Show resolved Hide resolved
const firstActiveIndex = columnsDefinitions.findIndex(item => item.isActivated);

return columnsDefinitions.map(({ name, isActivated }, index) => {
const statement = `${index === 0 || firstActiveIndex === index ? '' : ','} ${name}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't get it. If I have a deactivated column myColumn will it look like this: /*, myColumn*/ ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. The idea was to have a valid syntax once it's uncommented. Also, I used /* */ instead of -- because this plugin does not have a formating

@taras-dubyk taras-dubyk enabled auto-merge (squash) September 11, 2024 08:19
Copy link

sonarcloud bot commented Sep 11, 2024

@taras-dubyk taras-dubyk merged commit e371b59 into develop Sep 12, 2024
5 of 7 checks passed
@taras-dubyk taras-dubyk deleted the HCK-7928 branch September 12, 2024 09:20
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.

2 participants