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

Channel page fixes #1364

Merged
merged 8 commits into from
May 17, 2019
Merged

Conversation

jayoshih
Copy link
Contributor

Issue Addressed (if applicable)

Fixes #1337
Fixes #1320
Fixes #1319

Before/After Screenshots (if applicable)

Insert images here

Steps to Test

  • Step 1
  • Step 2

Implementation Notes (optional)

At a high level, how did you implement this?

Briefly describe how this works

Does this introduce any tech-debt items?

List anything that will need to be addressed later

Checklist

Delete any items that don't apply

  • Is the code clean and well-commented?
  • Has the docs label been added if this introduces a change that needs to be updated in the user docs?
  • Has the CHANGELOG label been added to this pull request? Items with this label will be added to the CHANGELOG at a later time
  • Are there tests for this change?
  • Are all user-facing strings translated properly (if applicable)?
  • Are all UI components LTR and RTL compliant (if applicable)?
  • Are there any new ways this uses user data that needs to be factored into our Privacy Policy?
  • Are there any new interactions that need to be added to the QA Sheet?
  • Are there opportunities for using Google Analytics here (if applicable)?
  • If the Pipfile has been changed, is the updated Pipfile.lock file also included in this PR?
  • Are the migrations safe for a large db (if applicable)?

@@ -84,7 +84,7 @@ describe('channelEditor', () => {
let nameInput = wrapper.find('.channel-name');
nameInput.element.value = newName;
nameInput.trigger('input');
nameInput.trigger('blur');
nameInput.trigger('change');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This fixes the problem of pressing Enter on the editor as it fires before the submit function is emitted. It still keeps the event from firing super often still though as it will trigger once the user exits the textbox

@@ -4,6 +4,8 @@ import State from 'edit_channel/state';

import Models from 'edit_channel/models';

require('jquery-file-download');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixes channel details exporting as this got removed by the linter originally

@@ -81,6 +83,7 @@ export function deleteChannel(context, channelID) {
new Models.ChannelModel(channel).save(
{ deleted: true },
{
patch: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This fixes channel deletion as we just want to change the 'deleted' field and nothing else

@jayoshih jayoshih requested a review from DXCanas May 15, 2019 17:39
@jayoshih jayoshih added the changelog Needs to be added to the changelog (remove once added) label May 15, 2019
@kollivier kollivier added the qa-ready Create a demo server for this pull request label May 16, 2019
Copy link
Contributor

@kollivier kollivier left a comment

Choose a reason for hiding this comment

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

LGTM! Tested all issues fixed!

@kollivier kollivier merged commit 1897143 into learningequality:develop May 17, 2019
@jayoshih jayoshih removed qa-ready Create a demo server for this pull request changelog Needs to be added to the changelog (remove once added) labels May 17, 2019
@jayoshih jayoshih deleted the channel-page-fixes branch May 28, 2019 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants