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

Fix part of #6482: button is disable until all requirements are fulfilled - fixed \o/ #7908

Merged
merged 6 commits into from
Nov 7, 2019

Conversation

discombobulateme
Copy link
Contributor

Explanation

Checklist

  • [ x ] The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • [ x ] The PR explanation includes the words "Fixes #bugnum: ..." (or "Fixes part of #bugnum" if the PR only partially fixes an issue).
  • [ x ] The linter/Karma presubmit checks have passed.
    • These should run automatically, but if not, you can manually trigger them locally using python -m scripts.pre_commit_linter and python -m scripts.run_frontend_tests.
  • [ x ] The PR is made from a branch that's not called "develop".
  • [ x ] The PR has an appropriate "PROJECT: Hacktoberfest, frontend, good first issue" label (Please add this label for the first-pass review of the PR).
  • The PR has an appropriate "CHANGELOG: ..." label (If you are unsure of which label to add, ask the reviewers for guidance).
  • [ x ] The PR follows the style guide.
  • The PR addresses the points mentioned in the codeowner checks for the files/folders changed. (See the codeowner's wiki page.)
  • The PR is assigned to an appropriate reviewer.
    • If you're a new contributor, please ask on Gitter for someone to assign a reviewer and don't tick this checkbox.
    • If you're not sure who the appropriate reviewer is, please assign to the issue's "owner" -- see the "talk-to" label on the issue. Do not only request the review but also add the reviewer as an assignee.

@oppiabot
Copy link

oppiabot bot commented Nov 3, 2019

Hi, @discombobulateme. This pull request does not have a "CHANGELOG: ..." label as mentioned in the PR checkbox list. Please add this label. PRs without this label will not be merged. If you are unsure of which label to add, please ask the reviewers for guidance. Thanks!

Copy link
Contributor

@aks681 aks681 left a comment

Choose a reason for hiding this comment

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

Just one comment.

@@ -473,6 +474,12 @@ angular.module('oppia').directive('questionsList', [
}
$uibModalInstance.close();
};
// Checking if Question contains all requirement to enable
// Save and Publish Question
$scope.toggleEnableButton = function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Rename the function to something like isSaveButtonDisabled().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok :)

@codecov
Copy link

codecov bot commented Nov 4, 2019

Codecov Report

Merging #7908 into develop will decrease coverage by <.01%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##           develop    #7908      +/-   ##
===========================================
- Coverage    83.98%   83.98%   -<.01%     
===========================================
  Files         1131     1131              
  Lines        68085    68087       +2     
  Branches      3828     3828              
===========================================
  Hits         57180    57180              
- Misses        9615     9617       +2     
  Partials      1290     1290
Flag Coverage Δ
#backend 100% <ø> (ø) ⬆️
#frontend 73.6% <0%> (ø) ⬇️
Impacted Files Coverage Δ
...ectives/questions-list/questions-list.directive.ts 6.29% <0%> (-0.04%) ⬇️

@discombobulateme
Copy link
Contributor Author

Corrections: changed function name as asked by @aks681 and inserted a simple tooltip for the button

Copy link
Contributor

@vinitamurthi vinitamurthi left a comment

Choose a reason for hiding this comment

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

Looks good thanks @discombobulateme !

@discombobulateme
Copy link
Contributor Author

Hi @kevinlee12 , should I make changes on this failures? Or thoes it has something to do with today's devlist post about automatic checking? Please let me know if I can do something :)

@kevinlee12
Copy link
Contributor

@discombobulateme Yup, this is related to the email post, please follow the instructions from there.

@kevinlee12 kevinlee12 assigned discombobulateme and unassigned aks681 Nov 6, 2019
@kevinlee12
Copy link
Contributor

kevinlee12 commented Nov 6, 2019

@discombobulateme can you please 1) pull from the latest develop 2) merge those changes into this branch and 3) push the changes? That should solve the Travis build issue, do not force push. If you run into any issues, please let us know, thanks!

@discombobulateme
Copy link
Contributor Author

@kevinlee12 just done it, and had no issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants