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

Feature: Refresh schedule - save/cancel actions #3246

Merged
merged 1 commit into from
Jan 6, 2019

Conversation

ranbena
Copy link
Contributor

@ranbena ranbena commented Jan 3, 2019

This is part of a PR batch to finalize the refresh-schedule feature.
After merging all changes in to feature/refresh-schedule/emtwo it should be merged into master.

What changed

Currently any change to schedule params saves it.
Was requested to add footer buttons instead - save on "OK", cancel on "X"/"Cancel".

Test it out

  1. In query page, click the refresh scheduler (usually "Never")

  2. Make some changes, click cancel, make sure scheduler remains unchanged.

  3. Make some changes, click ok, make sure scheduler changed accordingly.

Implementation notes

Instead of updating props.query on every form input change, I let it update a clone of props.query.schedule which upon ok triggers update and upon cancel resets the state to the original schedule stored in props.query.

Extra feature - clicking on ok without any change will not trigger a save. For UX reasons.

@ghost ghost assigned ranbena Jan 3, 2019
@ghost ghost added in progress labels Jan 3, 2019
@ranbena ranbena force-pushed the feature/refresh-schedule/code-opt branch from da6a596 to ff00b0a Compare January 6, 2019 09:04
@ranbena ranbena changed the base branch from feature/refresh-schedule/code-opt to master January 6, 2019 09:22
@ranbena ranbena force-pushed the feature/refresh-schedule/save-cancel branch from 8d83459 to 5971b87 Compare January 6, 2019 09:24
@ranbena ranbena merged commit 9b72dfe into master Jan 6, 2019
@ghost ghost removed in progress labels Jan 6, 2019
@ranbena ranbena deleted the feature/refresh-schedule/save-cancel branch January 6, 2019 10:35
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