Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Add Resubmit feature #1448

Merged
merged 15 commits into from
Sep 30, 2018
Merged

Add Resubmit feature #1448

merged 15 commits into from
Sep 30, 2018

Conversation

YitongFeng
Copy link
Contributor

@YitongFeng YitongFeng commented Sep 29, 2018

Add Resubmit feature at job detail page, after click it it will direct to submit job page, and automatically fill the form

Update: login user can resubmit other users' jobs, changed 'resubmit' to 'clone'

@coveralls
Copy link

coveralls commented Sep 29, 2018

Coverage Status

Coverage decreased (-11.7%) to 51.61% when pulling 20bdae0 on yife/rerun into 30043c4 on master.

$(document).on('click', '#resubmitjob_btn', () => {
let url;
let configYaml = yaml.safeLoad(configInfo);
let username = $('#nav-username').text();
Copy link
Member

Choose a reason for hiding this comment

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

Use cookies.get("user") to get the current user without introduce other element ids

<% } %>
<button class="btn btn-default btn-xs" id="resubmitjob_btn" onclick="cloneJob()">Clone</button>
Copy link
Member

Choose a reason for hiding this comment

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

clonejob('<%= namespace %>', '<%= jobName %>')

@@ -36,8 +36,9 @@
<% if (hjss === 'Waiting' || hjss === 'Running') { %>
<button class="btn btn-default btn-xs" onclick="stopJob('<%= namespace %>', '<%= jobName %>')">Stop</button>
<% } else { %>
<button class="btn btn-default btn-xs" disabled>Stop</button>
<button class="btn btn-default btn-xs" disabled>Stop</button>
Copy link
Member

Choose a reason for hiding this comment

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

Is the tailing whitespace required?

Copy link
Member

@Gerhut Gerhut left a comment

Choose a reason for hiding this comment

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

@YitongFeng Make a little change in cloneJob, feel free to merge after test.

@YitongFeng YitongFeng merged commit b1e5ba9 into master Sep 30, 2018
@YitongFeng YitongFeng deleted the yife/rerun branch September 30, 2018 09:25
DongZhaoYu pushed a commit that referenced this pull request Oct 7, 2018
* resubmit any user's job
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.

4 participants