Skip to content

Fix capitalize function#339

Merged
bradvogel merged 4 commits into
bee-queue:masterfrom
roggervalf:fix-capitalize-function
Mar 8, 2021
Merged

Fix capitalize function#339
bradvogel merged 4 commits into
bee-queue:masterfrom
roggervalf:fix-capitalize-function

Conversation

@roggervalf
Copy link
Copy Markdown
Collaborator

@roggervalf roggervalf commented Mar 8, 2021

This PR fixes the capitalize function since is not using the real value that is passed. Also I'm adding processed on and finished on values in jobDetails

@@ -1,16 +1,18 @@
{{#unless displayJobInline}}
<h3>{{ this.id }}</h3>
<h3>{{ this.id }}</h3>
Copy link
Copy Markdown
Collaborator Author

@roggervalf roggervalf Mar 8, 2021

Choose a reason for hiding this comment

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

most of the changes are linting changes


capitalize(s) {
capitalize(value) {
if (typeof value !== 'string') {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

the problem is that here, s is not evaluated, so it returns '' string always

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

good catch

@roggervalf roggervalf force-pushed the fix-capitalize-function branch from 314f0ec to 48ca96a Compare March 8, 2021 02:00
@roggervalf
Copy link
Copy Markdown
Collaborator Author

Please @bradvogel when you get a chance, some 👀 on this fix

{{/if}}
</div>

{{#if this.processedOn}}
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

these lines were added

Comment thread README.md
@@ -1,5 +1,7 @@
# Arena

[![NPM](https://img.shields.io/npm/v/bull-arena.svg)](https://www.npmjs.com/package/bull-arena) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![NPM downloads](https://img.shields.io/npm/dm/bull-arena)](https://www.npmjs.com/package/bull-arena) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Maybe it could be nice to have some badgets


capitalize(s) {
capitalize(value) {
if (typeof value !== 'string') {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

good catch

@bradvogel bradvogel merged commit 4c7643c into bee-queue:master Mar 8, 2021
@beequeueci
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 3.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@roggervalf roggervalf deleted the fix-capitalize-function branch March 8, 2021 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants