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

Fix unable to edit schedules with number only name (backport #2914) #2917

Merged
merged 4 commits into from
May 17, 2021

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented May 17, 2021

This is an automatic backport of pull request #2914 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

nichtsfrei and others added 4 commits May 17, 2021 13:08
When adding a new schedule with a numbers only name `1234` and daily
re occurrence and trying to edit the new schedule than a:
```
TypeError: e.replace is not a function
```
occurs because name is a number and not a string.

To fix that name.toString() is called to explicitly cast it to string.

(cherry picked from commit 222ceda)
(cherry picked from commit 5a7327f)
(cherry picked from commit 8e5f1c1)
Using a template literal for converting an object to string is easier to read and imho safer to do.

(cherry picked from commit e948448)
@mergify mergify bot requested a review from a team as a code owner May 17, 2021 13:08
@bjoernricks bjoernricks merged commit 016b421 into gsa-21.10 May 17, 2021
@bjoernricks bjoernricks deleted the mergify/bp/gsa-21.10/pr-2914 branch May 17, 2021 13:29
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