Skip to content

Scriptomation yaml editor#7273

Merged
bramkragten merged 9 commits intodevfrom
scriptomation-yaml-editor
Oct 12, 2020
Merged

Scriptomation yaml editor#7273
bramkragten merged 9 commits intodevfrom
scriptomation-yaml-editor

Conversation

@thomasloven
Copy link
Contributor

Proposed change

This replaces #6986

image

Also fixes a translation error in the script editor menu.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

@thomasloven
Copy link
Contributor Author

The code formatter really did a number on the diff for this one, but with whitespace changes hidden it looks all right.

@thomasloven thomasloven mentioned this pull request Oct 9, 2020
12 tasks
Comment on lines +605 to +609
private _preprocessYaml() {
const cleanConfig = deepClone(this._config);
delete cleanConfig.id;
return cleanConfig;
}
Copy link
Contributor Author

@thomasloven thomasloven Oct 9, 2020

Choose a reason for hiding this comment

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

For explanation of why this is a thing: We do not want the user to mess with the id property, and we don't want it to be copied and pasted either.

I plan more uses for this function. That's why it's present in the script editor even though it has no id.

Copy link
Contributor Author

@thomasloven thomasloven Oct 9, 2020

Choose a reason for hiding this comment

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

Actually, come to think of it those uses won't apply to scripts anyway. But maybe it should be left in there for consistency?

Edit: Actually actually, they might.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes I need this for the grid layout as well. I just didn't know the best way to do it. Thanks! :)

@bramkragten bramkragten merged commit 44166f7 into dev Oct 12, 2020
@bramkragten bramkragten deleted the scriptomation-yaml-editor branch October 12, 2020 09:26
@bramkragten bramkragten mentioned this pull request Oct 21, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants