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 #10474: Enables strict typescript checks for some files - (9) #13246

Merged
merged 52 commits into from
Jul 5, 2021

Conversation

mridul-netizen
Copy link
Contributor

Overview

  1. This PR fixes or fixes part of Make typescript checks strict #10474 .
  2. This PR does the following: [Make Typescript checks strict for some files]

Essential Checklist

  • 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: ...".)
  • The linter/Karma presubmit checks have passed locally on your machine.
  • "Allow edits from maintainers" is checked. (See here for instructions on how to enable it.)
    • This lets reviewers restart your CircleCI tests for you.
  • The PR is made from a branch that's not called "develop".

Proof that changes are correct

image

PR Pointers

  • Make sure to follow the instructions for making a code change.
  • Oppiabot will notify you when you don't add a PR_CHANGELOG label. If you are unable to do so, please @-mention a code owner (who will be in the Reviewers list), or ask on Gitter.
  • For what code owners will expect, see the Code Owner's wiki page.
  • Make sure your PR follows conventions in the style guide, otherwise this will lead to review delays.
  • Never force push. If you do, your PR will be closed.
  • Oppiabot can assign anyone for review/help if you leave a comment like the following: "{{Question/comment}} @{{reviewer_username}} PTAL"
  • Some of the e2e tests are flaky, and can fail for reasons unrelated to your PR. We are working on fixing this, but in the meantime, if you need to restart the tests, please check the "If your build fails" wiki page.

Files Covered

    "core/templates/pages/topics-and-skills-dashboard-page/modals/assign-skill-to-topic-modal.component.ts",
    "core/templates/pages/topics-and-skills-dashboard-page/modals/assign-skill-to-topic-modal.component.spec.ts",
    "core/templates/domain/objects/ratio.model.ts",
    "core/templates/domain/objects/ratio.model.spec.ts",
    "extensions/interactions/RatioExpressionInput/directives/ratio-expression-input-rules.service.ts",
    "extensions/interactions/RatioExpressionInput/directives/ratio-expression-input-rules.service.spec.ts",
    "extensions/interactions/PencilCodeEditor/directives/pencil-code-editor-rules.service.ts",
    "extensions/interactions/PencilCodeEditor/directives/pencil-code-editor-rules.service.spec.ts",
    "extensions/interactions/FractionInput/directives/fraction-input-rules.service.ts",
    "extensions/interactions/FractionInput/directives/fraction-input-rules.service.spec.ts",
    "extensions/interactions/CodeRepl/directives/code-repl-rules.service.ts",
    "extensions/interactions/CodeRepl/directives/code-repl-rules.service.spec.ts",
    "core/templates/domain/topics_and_skills_dashboard/newly-created-topic.model.ts",
    "core/templates/domain/topics_and_skills_dashboard/newly-created-topic.model.spec.ts",
    "core/templates/domain/story_viewer/story-playthrough.model.ts",
    "core/templates/domain/story_viewer/story-playthrough.model.spec.ts",

PasteBin to Errors - link

@@ -21,6 +21,8 @@ import { ObjectsDomainConstants } from
import { RatioInputAnswer } from
'interactions/answer-defs';

type GCD = (x: number, y: number) => number;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
type GCD = (x: number, y: number) => number;
type GreatestCommonDivisor = (x: number, y: number) => number;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@EeshaArif EeshaArif 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 nit, otherwise LGTM!

@oppiabot
Copy link

oppiabot bot commented Jun 29, 2021

Unassigning @EeshaArif since they have already approved the PR.

@oppiabot
Copy link

oppiabot bot commented Jun 29, 2021

Assigning @kevintab95, @nithusha21, @srijanreddy98, @iamprayush for code owner reviews. Thanks!

Copy link
Member

@kevintab95 kevintab95 left a comment

Choose a reason for hiding this comment

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

LGTM for codeowner files. Thanks @mridul-netizen!

@oppiabot
Copy link

oppiabot bot commented Jun 29, 2021

Unassigning @kevintab95 since they have already approved the PR.

Copy link
Member

@srijanreddy98 srijanreddy98 left a comment

Choose a reason for hiding this comment

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

LGTM

@oppiabot
Copy link

oppiabot bot commented Jul 2, 2021

Unassigning @srijanreddy98 since they have already approved the PR.

@mridul-netizen
Copy link
Contributor Author

@nithusha21 @iamprayush PTAL

@mridul-netizen mridul-netizen removed their assignment Jul 2, 2021
@oppiabot
Copy link

oppiabot bot commented Jul 2, 2021

Unassigning @nithusha21 since they have already approved the PR.

@oppiabot
Copy link

oppiabot bot commented Jul 3, 2021

Hi @mridul-netizen. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks!

Copy link
Contributor

@iamprayush iamprayush left a comment

Choose a reason for hiding this comment

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

LGTM for code-owner file!

@iamprayush iamprayush merged commit 9a889d2 into oppia:develop Jul 5, 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.

6 participants