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

ui: fix job dispatch page when job doesn't have any meta fields #10934

Merged
merged 1 commit into from
Aug 3, 2021

Conversation

lgfa29
Copy link
Contributor

@lgfa29 lgfa29 commented Jul 23, 2021

When a job doesn't have any meta field declared, the API returns null. The previous logic would not cover this case.

@lgfa29 lgfa29 requested a review from ChaiWithJai July 23, 2021 19:59
@github-actions
Copy link

Ember Asset Size action

As of 26d7eb6

Files that got Bigger 🚨:

File raw gzip
nomad-ui.js +5 B -4 B

Files that stayed the same size 🤷‍:

File raw gzip
vendor.js 0 B 0 B
nomad-ui.css 0 B 0 B
vendor.css 0 B 0 B

@github-actions
Copy link

Ember Test Audit comparison

main 26d7eb6 change
passes 1106 1107 +1
failures 0 0 0
flaky 0 0 0
duration 7m 29s 758ms 8m 45s 969ms +1m 16s 211ms

@@ -47,7 +47,7 @@ export default class JobDispatch extends Component {
super(...arguments);

// Helper for mapping the params into a useable form.
const mapper = (values = [], required) =>
const mapper = (values, required) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we removing the default parameter on this function?

Copy link
Contributor

@ChaiWithJai ChaiWithJai left a comment

Choose a reason for hiding this comment

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

Only one question regarding why we're removing the default parameter in the mapper function. Seemed like it wasn't in line with the rest of code. But not worth blocking this diff.

@lgfa29 lgfa29 merged commit 332dc88 into main Aug 3, 2021
@lgfa29 lgfa29 deleted the fix-ui-dispatch-without-meta branch August 3, 2021 17:50
lgfa29 added a commit that referenced this pull request Aug 4, 2021
lgfa29 added a commit that referenced this pull request Aug 4, 2021
notnoop pushed a commit that referenced this pull request Aug 26, 2021
@schmichael schmichael added this to the 1.1.4 milestone Sep 20, 2021
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants