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

Add support for show parameter in jobs API to fix #2985 #2986

Merged
merged 2 commits into from
Jun 12, 2018

Conversation

javierluraschi
Copy link
Contributor

Implement suggestion in #2985, what do you think, @jmcphers?

@javierluraschi javierluraschi changed the title Add support for show parameter in jobs api to fix #2985 Add support for show parameter in jobs API to fix #2985 Jun 12, 2018
@@ -27,7 +27,7 @@

# begin tracking job
.Call("rs_addJob", name, status, progressUnits,
actions, estimate, estimateRemaining, running, autoRemove, group, PACKAGE = "(embedding)")
actions, estimate, estimateRemaining, running, autoRemove, group, PACKAGE = "(embedding)", show)
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's put show earlier in the parameter list (PACKAGE should come last)

@@ -90,7 +90,7 @@ public void updateJob(int type, Job job)
list_.addJob(job);

// bring the pane to the front so the new job is visible
bringToFront();
if (job.show) bringToFront();
Copy link
Member

Choose a reason for hiding this comment

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

We should also skip firing the selection event if we aren't showing the job right away -- otherwise it'll still switch to the job if you have the pane open which probably isn't desired.

@jmcphers
Copy link
Member

I'm a fan, I'd been thinking about doing something similar for jobs that are short or unlikely to want babysitting!

@javierluraschi javierluraschi merged commit 556bef4 into master Jun 12, 2018
@valerie-rstudio valerie-rstudio deleted the bugfix/progress-api-show branch January 21, 2022 17:26
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