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 - (6) #13135

Merged
merged 59 commits into from
Jul 3, 2021

Conversation

mridul-netizen
Copy link
Contributor

@mridul-netizen mridul-netizen commented Jun 19, 2021

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

    "extensions/objects/templates/svg-filename-editor.constants.ajs.ts",
    "extensions/interactions/interactions-extension.constants.ajs.ts",
    "extensions/classifiers/python-program.tokenizer.ts",
    "extensions/classifiers/python-program.tokenizer.spec.ts",
    "extensions/interactions/interactions-extension.constants.ajs.ts",
    "core/templates/services/request-interceptor.service.ts",
    "core/templates/services/request-interceptor.service.spec.ts",
    "core/templates/services/contextual/meta-tag-customization.service.ts",
    "core/templates/services/contextual/meta-tag-customization.service.spec.ts",
    "core/templates/services/contextual/document-attribute-customization.service.ts",
    "core/templates/services/contextual/document-attribute-customization.service.spec.ts",
    "core/templates/pages/story-editor-page/services/story-editor-navigation.service.ts",
    "core/templates/pages/story-editor-page/services/story-editor-navigation.service.spec.ts",
    "core/templates/pages/exploration-player-page/services/fatigue-detection.service.ts",
    "core/templates/pages/exploration-player-page/modals/display-solution-interstitial-modal.component.ts",
    "core/templates/pages/exploration-player-page/modals/display-solution-interstitial-modal.component.spec.ts",
    "core/templates/pages/exploration-editor-page/translation-tab/services/translation-tab-active-mode.service.ts",
    "core/templates/pages/exploration-editor-page/translation-tab/services/translation-tab-active-mode.service.spec.ts",
    "core/templates/domain/utilities/stopwatch.model.ts",
    "core/templates/domain/utilities/stopwatch.model.spec.ts",
    "core/templates/domain/user/user-profile.model.ts",
    "core/templates/domain/user/user-profile.model.spec.ts",
    "core/templates/domain/story_viewer/read-only-story-node.model.ts",
    "core/templates/domain/story_viewer/read-only-story-node.model.spec.ts",
    "core/templates/domain/recommendations/exploration-recommendations-backend-api.service.ts",
    "core/templates/domain/recommendations/exploration-recommendations-backend-api.service.spec.ts",
    "core/templates/domain/platform_feature/platform-feature-dummy-backend-api.service.ts",
    "core/templates/domain/platform_feature/platform-feature-dummy-backend-api.service.spec.ts",
    "core/templates/domain/email-dashboard/email-dashboard-query-results.model.ts",
    "core/templates/domain/email-dashboard/email-dashboard-query-results.model.spec.ts",
    "core/templates/services/suggestions.service.ts",
    "core/templates/services/suggestions.service.spec.ts",
    "core/templates/domain/platform_feature/platform-parameter-rule.model.ts",
    "core/templates/domain/platform_feature/platform-parameter-rule.model.spec.ts",
    "extensions/rich_text_components/Skillreview/directives/oppia-noninteractive-skillreview-concept-card-modal.component.spec.ts",

PasteBin to Errors - link

@oppiabot
Copy link

oppiabot bot commented Jun 28, 2021

Unassigning @kevintab95 since they have already approved the PR.

@oppiabot
Copy link

oppiabot bot commented Jun 28, 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
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 Jun 28, 2021

Unassigning @srijanreddy98 since they have already approved the PR.

@oppiabot
Copy link

oppiabot bot commented Jun 29, 2021

Unassigning @darksun27 since they have already approved the PR.

@mridul-netizen
Copy link
Contributor Author

@DubeySandeep PTAL

@@ -22,7 +22,8 @@
import { LoggerService } from 'services/contextual/logger.service';

export class Stopwatch {
startTime;
// Start time is null initially .
startTime: number | null;
Copy link
Member

Choose a reason for hiding this comment

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

that's not the startTime, right? Also, I'm not sure how the service is used if the startTime is set to null in the constructor? Do you see any use case of setting startTime to null in the constructor?

@oppiabot
Copy link

oppiabot bot commented Jun 30, 2021

Unassigning @DubeySandeep since the review is done.

@oppiabot
Copy link

oppiabot bot commented Jun 30, 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!

@oppiabot
Copy link

oppiabot bot commented Jul 3, 2021

Unassigning @DubeySandeep since they have already approved the PR.

@oppiabot oppiabot bot added the PR: LGTM label Jul 3, 2021
@oppiabot
Copy link

oppiabot bot commented Jul 3, 2021

Hi @mridul-netizen, this PR is ready to be merged. Please address any remaining comments prior to merging, and feel free to merge this PR once the CI checks pass and you're happy with it. Thanks!

@mridul-netizen mridul-netizen merged commit 462e812 into oppia:develop Jul 3, 2021
@mridul-netizen mridul-netizen deleted the st-6 branch July 3, 2021 06:40
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.

None yet

7 participants