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

warn if not do_scheduler; fix if do_scheduler false; more verbose api error handler; fix update campaign goal #502

Merged
merged 7 commits into from
May 12, 2021

Conversation

deargle
Copy link
Collaborator

@deargle deargle commented May 12, 2021

overrides flask-api's default handle_error, which would just return a
500 error for any exception

deargle added 2 commits May 11, 2021 19:54
overrides flask-api's default `handle_error`, which would just return a 
500 error for any exception
@coveralls
Copy link

coveralls commented May 12, 2021

Coverage Status

Coverage decreased (-0.2%) to 59.8% when pulling 27be242 on api-pass-error-messages into 1188980 on master.

deargle added 5 commits May 11, 2021 20:02
campaign task was not getting updated when the campaign goal was updated
so that tasks can be scheduled, modified, or deleted, even when 
scheduler is not _running_ tasks
@deargle
Copy link
Collaborator Author

deargle commented May 12, 2021

This PR bloated a bit. All changes:

  • Scheduler is started "paused" if do_scheduler is False, so that tasks can still be
    created, modified, and destroyed
  • Campaigns' "update goal" functionality fixed -- the associated task is updated with
    the new goal
  • /dashboard/campaigns and /dashboard/tasks now flash a warning if do_scheduler is False

@deargle deargle changed the title use a custom error handler for the api warn if not do_scheduler; fix if do_scheduler false; more verbose api error handler; fix update campaign goal May 12, 2021
@deargle deargle merged commit 0a39e53 into master May 12, 2021
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.

2 participants