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

Refresh course setting page on error #1386

Merged
merged 5 commits into from
Sep 23, 2021
Merged

Conversation

xinyis991105
Copy link
Contributor

Description

This PR allows a course setting page to refresh automatically upon receiving erroneous setting information.

Motivation and Context

#1385

How Has This Been Tested?

See the bug report. After following the steps to reproduce, you should now observe the expected behavior.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation, which is located at Autolab Docs
  • I have updated the documentation accordingly, included in this PR

Other issues / help required

If unsure, feel free to submit first and we'll help you along.

@oliverli oliverli requested a review from fanpu September 23, 2021 03:42
Copy link
Contributor

@fanpu fanpu left a comment

Choose a reason for hiding this comment

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

Other than reverting this line, everything else LGTM! Reproduced test plan

Dockerfile Outdated
@@ -54,7 +54,7 @@ RUN mkdir -p /home/app/webapp/log && \
USER app

# precompile the Rails assets
RUN RAILS_ENV=production bundle exec rails assets:precompile
RUN RAILS_ENV=development bundle exec rails assets:precompile
Copy link
Contributor

Choose a reason for hiding this comment

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

Could I check why this change is necessary? It will impact the docker-compose installation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry about that! I was testing my local docker compose! I must've accidentally added this commit. Will remove right away.

@xinyis991105 xinyis991105 merged commit 6eb4ac0 into master Sep 23, 2021
@xinyis991105 xinyis991105 deleted the refresh_page_on_error branch September 23, 2021 16:54
ugogon pushed a commit to ugogon/Autolab that referenced this pull request Oct 13, 2021
* Local docker config

* refresh page after saving on error

* revert accidental change
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