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: Make typescript checks strict for few more files #16214

Merged
merged 86 commits into from
Nov 22, 2022

Conversation

JeeveshGarg
Copy link
Contributor

@JeeveshGarg JeeveshGarg commented Oct 5, 2022

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 few more files
Hidden list of completed Files
  1. core/templates/components/button-directives/hint-and-solution-buttons.component.spec.ts
  2. core/templates/components/button-directives/hint-and-solution-buttons.component.ts
  3. core/templates/components/entity-creation-services/topic-creation.service.spec.ts
  4. core/templates/components/entity-creation-services/topic-creation.service.ts
  5. core/templates/components/forms/custom-forms-directives/require-is-float.directive.spec.ts
  6. core/templates/components/forms/custom-forms-directives/require-is-float.directive.ts
  7. core/templates/components/forms/custom-forms-directives/select2-dropdown.directive.ts
  8. core/templates/components/forms/schema-viewers/schema-based-custom-viewer.directive.spec.ts
  9. core/templates/components/forms/schema-viewers/schema-based-dict-viewer.directive.spec.ts
  10. core/templates/components/forms/schema-viewers/schema-based-dict-viewer.directive.ts
  11. core/templates/components/forms/schema-viewers/schema-based-html-viewer.directive.spec.ts
  12. core/templates/components/forms/schema-viewers/schema-based-list-viewer.directive.spec.ts
  13. core/templates/components/forms/schema-viewers/schema-based-primitive-viewer.directive.spec.ts
  14. core/templates/components/forms/schema-viewers/schema-based-primitive-viewer.directive.ts
  15. core/templates/components/forms/schema-viewers/schema-based-unicode-viewer.directive.spec.ts
  16. core/templates/components/forms/schema-viewers/schema-based-viewer.directive.spec.ts
  17. core/templates/components/forms/validators/has-length-at-least.filter.ts
  18. core/templates/components/forms/validators/has-length-at-most.filter.ts
  19. core/templates/components/forms/validators/is-at-least.filter.spec.ts
  20. core/templates/components/forms/validators/is-at-least.filter.ts
  21. core/templates/components/forms/validators/is-at-most.filter.spec.ts
  22. core/templates/components/forms/validators/is-at-most.filter.ts
  23. core/templates/components/forms/validators/is-integer.filter.spec.ts
  24. core/templates/components/forms/validators/is-integer.filter.ts
  25. core/templates/components/forms/validators/is-nonempty.filter.spec.ts
  26. core/templates/components/forms/validators/is-nonempty.filter.ts
  27. core/templates/components/question-directives/question-editor/question-editor.component.spec.ts
  28. core/templates/components/question-directives/question-editor/question-editor.component.ts
  29. core/templates/components/question-directives/question-misconception-editor/tag-misconception-modal-component.spec.ts
  30. core/templates/components/question-directives/question-misconception-editor/tag-misconception-modal-component.ts
  31. core/templates/components/question-directives/question-player/question-player-concept-card-modal.component.spec.ts
  32. core/templates/components/question-directives/question-player/question-player.component.spec.ts
  33. core/templates/components/question-directives/question-player/question-player.component.ts
  34. core/templates/components/rubrics-editor/rubrics-editor.component.spec.ts
  35. core/templates/components/rubrics-editor/rubrics-editor.component.ts
  36. core/templates/components/state-editor/state-content-editor/state-content-editor.component.spec.ts
  37. core/templates/components/state-editor/state-content-editor/state-content-editor.component.ts
  38. core/templates/components/state-editor/state-responses-editor/state-responses.component.spec.ts
  39. core/templates/components/state-editor/state-responses-editor/state-responses.component.ts
  40. core/templates/components/version-diff-visualization/version-diff-visualization.component.spec.ts
  41. core/templates/components/version-diff-visualization/version-diff-visualization.component.ts
  42. core/templates/directives/focus-on.directive.spec.ts
  43. core/templates/domain/collection/editable-collection-backend-api.service.spec.ts
  44. core/templates/filters/convert-unicode-to-html.filter.spec.ts
  45. core/templates/filters/convert-unicode-to-html.filter.ts
  46. core/templates/filters/convert-unicode-with-params-to-html.filter.spec.ts
  47. core/templates/filters/convert-unicode-with-params-to-html.filter.ts
  48. core/templates/filters/format-rte-preview.filter.spec.ts
  49. core/templates/filters/format-rte-preview.filter.ts
  50. core/templates/filters/format-timer.filter.ts
  51. core/templates/filters/parameterize-rule-description.filter.spec.ts
  52. core/templates/filters/parameterize-rule-description.filter.ts
  53. core/templates/filters/parameterize-rule-description.pipe.spec.ts
  54. core/templates/filters/parameterize-rule-description.pipe.ts
  55. core/templates/filters/string-utility-filters/camel-case-to-hyphens.filter.spec.ts
  56. core/templates/filters/string-utility-filters/camel-case-to-hyphens.filter.ts
  57. core/templates/filters/string-utility-filters/get-abbreviated-text.filter.spec.ts
  58. core/templates/filters/string-utility-filters/get-abbreviated-text.filter.ts
  59. core/templates/filters/string-utility-filters/normalize-whitespace-punctuation-and-case.filter.ts
  60. core/templates/filters/string-utility-filters/normalize-whitespace.filter.spec.ts
  61. core/templates/filters/string-utility-filters/normalize-whitespace.filter.ts
  62. core/templates/filters/string-utility-filters/replace-inputs-with-ellipses.filter.spec.ts
  63. core/templates/filters/string-utility-filters/replace-inputs-with-ellipses.filter.ts
  64. core/templates/filters/string-utility-filters/truncate-and-capitalize.filter.spec.ts
  65. core/templates/filters/string-utility-filters/truncate-and-capitalize.filter.ts
  66. core/templates/filters/string-utility-filters/truncate-at-first-ellipsis.filter.spec.ts
  67. core/templates/filters/string-utility-filters/truncate-at-first-ellipsis.filter.ts
  68. core/templates/filters/string-utility-filters/truncate-at-first-line.filter.spec.ts
  69. core/templates/filters/string-utility-filters/truncate-at-first-line.filter.ts
  70. core/templates/filters/string-utility-filters/truncate.filter.spec.ts
  71. core/templates/filters/string-utility-filters/truncate.filter.ts
  72. core/templates/filters/string-utility-filters/underscores-to-camel-case.filter.spec.ts
  73. core/templates/filters/string-utility-filters/underscores-to-camel-case.filter.ts
  74. core/templates/filters/string-utility-filters/wrap-text-with-ellipsis.filter.spec.ts
  75. core/templates/filters/string-utility-filters/wrap-text-with-ellipsis.filter.ts
  76. core/templates/filters/summarize-nonnegative-number.filter.spec.ts
  77. core/templates/filters/summarize-nonnegative-number.filter.ts
  78. core/templates/filters/truncate-input-based-on-interaction-answer-type.filter.ts
  79. core/templates/pages/blog-dashboard-page/blog-dashboard-tile/blog-dashboard-tile.component.ts
  80. core/templates/pages/blog-dashboard-page/blog-post-editor/blog-post-editor.component.spec.ts
  81. core/templates/pages/blog-dashboard-page/blog-post-editor/blog-post-editor.component.ts
  82. core/templates/pages/blog-dashboard-page/modal-templates/blog-card-preview-modal.component.spec.ts
  83. core/templates/pages/blog-dashboard-page/modal-templates/blog-card-preview-modal.component.ts
  84. core/templates/pages/contributor-dashboard-page/contributor-dashboard-page.component.spec.ts
  85. core/templates/pages/contributor-dashboard-page/contributor-dashboard-page.component.ts
  86. core/templates/pages/contributor-dashboard-page/modal-templates/question-suggestion-editor-modal.component.spec.ts
  87. core/templates/pages/contributor-dashboard-page/modal-templates/question-suggestion-editor-modal.component.ts
  88. core/templates/pages/contributor-dashboard-page/modal-templates/question-suggestion-review-modal.component.spec.ts
  89. core/templates/pages/contributor-dashboard-page/modal-templates/question-suggestion-review-modal.component.ts
  90. core/templates/pages/contributor-dashboard-page/modal-templates/translation-modal.component.spec.ts
  91. core/templates/pages/contributor-dashboard-page/modal-templates/translation-modal.component.ts
  92. core/templates/pages/contributor-dashboard-page/question-opportunities/question-opportunities.component.spec.ts
  93. core/templates/pages/contributor-dashboard-page/question-opportunities/question-opportunities.component.ts
  94. core/templates/pages/contributor-dashboard-page/services/translate-text.service.spec.ts
  95. core/templates/pages/contributor-dashboard-page/translation-opportunities/translation-opportunities.component.spec.ts
  96. core/templates/pages/exploration-editor-page/changes-in-human-readable-form/changes-in-human-readable-form.component.spec.ts
  97. core/templates/pages/exploration-editor-page/editor-navigation/editor-navbar-breadcrumb.component.spec.ts
  98. core/templates/pages/exploration-editor-page/editor-navigation/editor-navbar-breadcrumb.component.ts
  99. core/templates/pages/exploration-editor-page/editor-navigation/editor-navigation.component.spec.ts
  100. core/templates/pages/exploration-editor-page/editor-navigation/editor-navigation.component.ts
  101. core/templates/pages/exploration-editor-page/editor-tab/graph-directives/exploration-graph.component.spec.ts
  102. core/templates/pages/exploration-editor-page/editor-tab/graph-directives/exploration-graph.component.ts
  103. core/templates/pages/exploration-editor-page/editor-tab/graph-directives/state-graph-visualization.component.spec.ts
  104. core/templates/pages/exploration-editor-page/editor-tab/services/responses.service.spec.ts
  105. core/templates/pages/exploration-editor-page/editor-tab/services/responses.service.ts
  106. core/templates/pages/exploration-editor-page/editor-tab/state-name-editor/state-name-editor.component.spec.ts
  107. core/templates/pages/exploration-editor-page/editor-tab/state-name-editor/state-name-editor.component.ts
  108. core/templates/pages/exploration-editor-page/editor-tab/state-param-changes-editor/state-param-changes-editor.component.spec.ts
  109. core/templates/pages/exploration-editor-page/editor-tab/state-param-changes-editor/state-param-changes-editor.component.ts
  110. core/templates/pages/exploration-editor-page/editor-tab/templates/modal-templates/exploration-graph-modal.component.spec.ts
  111. core/templates/pages/exploration-editor-page/editor-tab/templates/modal-templates/exploration-graph-modal.component.ts
  112. core/templates/pages/exploration-editor-page/editor-tab/templates/modal-templates/teach-oppia-modal.component.spec.ts
  113. core/templates/pages/exploration-editor-page/editor-tab/templates/modal-templates/teach-oppia-modal.component.ts
  114. core/templates/pages/exploration-editor-page/editor-tab/test-interaction-panel/test-interaction-panel.component.spec.ts
  115. core/templates/pages/exploration-editor-page/editor-tab/test-interaction-panel/test-interaction-panel.component.ts
  116. core/templates/pages/exploration-editor-page/editor-tab/training-panel/training-data-editor-panel-modal.component.spec.ts
  117. core/templates/pages/exploration-editor-page/editor-tab/training-panel/training-data-editor-panel-modal.component.ts
  118. core/templates/pages/exploration-editor-page/editor-tab/training-panel/training-data.service.spec.ts
  119. core/templates/pages/exploration-editor-page/editor-tab/training-panel/training-data.service.ts
  120. core/templates/pages/exploration-editor-page/editor-tab/training-panel/training-modal.service.spec.ts
  121. core/templates/pages/exploration-editor-page/editor-tab/training-panel/training-modal.service.ts
  122. core/templates/pages/exploration-editor-page/editor-tab/training-panel/training-panel.component.spec.ts
  123. core/templates/pages/exploration-editor-page/editor-tab/training-panel/training-panel.component.ts
  124. core/templates/pages/exploration-editor-page/editor-tab/unresolved-answers-overview/unresolved-answers-overview.component.spec.ts
  125. core/templates/pages/exploration-editor-page/editor-tab/unresolved-answers-overview/unresolved-answers-overview.component.ts
  126. core/templates/pages/exploration-editor-page/exploration-objective-editor/exploration-objective-editor.component.spec.ts
  127. core/templates/pages/exploration-editor-page/exploration-objective-editor/exploration-objective-editor.component.ts
  128. core/templates/pages/exploration-editor-page/exploration-title-editor/exploration-title-editor.component.spec.ts
  129. core/templates/pages/exploration-editor-page/exploration-title-editor/exploration-title-editor.component.ts
  130. core/templates/pages/exploration-editor-page/history-tab/services/compare-versions.service.spec.ts
  131. core/templates/pages/exploration-editor-page/history-tab/services/compare-versions.service.ts
  132. core/templates/pages/exploration-editor-page/improvements-tab/needs-guiding-responses-task.component.spec.ts
  133. core/templates/pages/exploration-editor-page/improvements-tab/needs-guiding-responses-task.component.ts
  134. core/templates/pages/exploration-editor-page/improvements-tab/services/improvement-modal.service.spec.ts
  135. core/templates/pages/exploration-editor-page/improvements-tab/services/improvement-modal.service.ts
  136. core/templates/pages/exploration-editor-page/modal-templates/exploration-metadata-modal.component.spec.ts
  137. core/templates/pages/exploration-editor-page/modal-templates/exploration-metadata-modal.component.ts
  138. core/templates/pages/exploration-editor-page/modal-templates/exploration-save-modal.component.spec.ts
  139. core/templates/pages/exploration-editor-page/modal-templates/exploration-save-modal.component.ts
  140. core/templates/pages/exploration-editor-page/preview-tab/preview-tab.component.spec.ts
  141. core/templates/pages/exploration-editor-page/preview-tab/preview-tab.component.ts
  142. core/templates/pages/exploration-editor-page/services/change-list.service.spec.ts
  143. core/templates/pages/exploration-editor-page/services/change-list.service.ts
  144. core/templates/pages/exploration-editor-page/services/exploration-automatic-text-to-speech.service.ts
  145. core/templates/pages/exploration-editor-page/services/exploration-correctness-feedback.service.ts
  146. core/templates/pages/exploration-editor-page/services/exploration-edits-allowed-backend-api.service.spec.ts
  147. core/templates/pages/exploration-editor-page/services/exploration-init-state-name.service.spec.ts
  148. core/templates/pages/exploration-editor-page/services/exploration-init-state-name.service.ts
  149. core/templates/pages/exploration-editor-page/services/exploration-language-code.service.spec.ts
  150. core/templates/pages/exploration-editor-page/services/exploration-language-code.service.ts
  151. core/templates/pages/exploration-editor-page/services/exploration-param-specs.service.ts
  152. core/templates/pages/exploration-editor-page/services/exploration-property.service.spec.ts
  153. core/templates/pages/exploration-editor-page/services/exploration-property.service.ts
  154. core/templates/pages/exploration-editor-page/services/exploration-rights.service.spec.ts
  155. core/templates/pages/exploration-editor-page/services/exploration-rights.service.ts
  156. core/templates/pages/exploration-editor-page/services/exploration-save.service.spec.ts
  157. core/templates/pages/exploration-editor-page/services/exploration-save.service.ts
  158. core/templates/pages/exploration-editor-page/services/exploration-tags.service.ts
  159. core/templates/pages/exploration-editor-page/services/exploration-warnings.service.spec.ts
  160. core/templates/pages/exploration-editor-page/services/exploration-warnings.service.ts
  161. core/templates/pages/exploration-editor-page/services/graph-data.service.ts
  162. core/templates/pages/exploration-editor-page/services/parameter-metadata.service.spec.ts
  163. core/templates/pages/exploration-editor-page/services/parameter-metadata.service.ts
  164. core/templates/pages/exploration-editor-page/services/router.service.spec.ts
  165. core/templates/pages/exploration-editor-page/services/router.service.ts
  166. core/templates/pages/exploration-editor-page/settings-tab/settings-tab.component.spec.ts
  167. core/templates/pages/exploration-editor-page/settings-tab/settings-tab.component.ts
  168. core/templates/pages/exploration-editor-page/settings-tab/templates/preview-summary-tile-modal.component.ts
  169. core/templates/pages/exploration-editor-page/statistics-tab/charts/pie-chart.component.spec.ts
  170. core/templates/pages/exploration-editor-page/statistics-tab/charts/pie-chart.component.ts
  171. core/templates/pages/exploration-editor-page/statistics-tab/statistics-tab.component.spec.ts
  172. core/templates/pages/exploration-editor-page/statistics-tab/statistics-tab.component.ts
  173. core/templates/pages/exploration-editor-page/statistics-tab/templates/state-stats-modal.component.spec.ts
  174. core/templates/pages/exploration-editor-page/statistics-tab/templates/state-stats-modal.component.ts
  175. core/templates/pages/exploration-editor-page/suggestion-modal-for-editor-view/suggestion-modal-for-exploration-editor.service.spec.ts
  176. core/templates/pages/exploration-editor-page/suggestion-modal-for-editor-view/suggestion-modal-for-exploration-editor.service.ts
  177. core/templates/pages/exploration-editor-page/translation-tab/modal-templates/add-audio-translation-modal.component.spec.ts
  178. core/templates/pages/exploration-editor-page/translation-tab/modal-templates/add-audio-translation-modal.component.ts
  179. core/templates/pages/exploration-editor-page/translation-tab/services/translation-status.service.spec.ts
  180. core/templates/pages/exploration-editor-page/translation-tab/services/translation-status.service.ts
  181. core/templates/pages/exploration-editor-page/translation-tab/services/translation-topic.service.spec.ts
  182. core/templates/pages/exploration-editor-page/translation-tab/services/voiceover-recording.service.ts
  183. core/templates/pages/exploration-editor-page/translation-tab/state-translation-status-graph/state-translation-status-graph.component.spec.ts
  184. core/templates/pages/exploration-editor-page/translation-tab/state-translation-status-graph/state-translation-status-graph.component.ts
  185. core/templates/pages/exploration-editor-page/translation-tab/translation-tab.component.spec.ts
  186. core/templates/pages/exploration-editor-page/translation-tab/translation-tab.component.ts
  187. core/templates/pages/exploration-editor-page/translation-tab/translator-overview/translator-overview.component.spec.ts
  188. core/templates/pages/exploration-editor-page/translation-tab/translator-overview/translator-overview.component.ts
  189. core/templates/pages/exploration-player-page/layout-directives/content-language-selector.component.spec.ts
  190. core/templates/pages/exploration-player-page/layout-directives/content-language-selector.component.ts
  191. core/templates/pages/exploration-player-page/layout-directives/feedback-popup.component.spec.ts
  192. core/templates/pages/exploration-player-page/layout-directives/feedback-popup.component.ts
  193. core/templates/pages/exploration-player-page/layout-directives/learner-local-nav.component.spec.ts
  194. core/templates/pages/exploration-player-page/layout-directives/learner-local-nav.component.ts
  195. core/templates/pages/exploration-player-page/layout-directives/progress-nav.component.spec.ts
  196. core/templates/pages/exploration-player-page/layout-directives/progress-nav.component.ts
  197. core/templates/pages/exploration-player-page/learner-experience/learner-answer-info-card.component.ts
  198. core/templates/pages/exploration-player-page/learner-experience/ratings-and-recommendations.component.spec.ts
  199. core/templates/pages/exploration-player-page/learner-experience/ratings-and-recommendations.component.ts
  200. core/templates/pages/exploration-player-page/learner-experience/tutor-card.component.spec.ts
  201. core/templates/pages/exploration-player-page/learner-experience/tutor-card.component.ts
  202. core/templates/pages/exploration-player-page/modals/refresher-exploration-confirmation-modal.component.ts
  203. core/templates/pages/exploration-player-page/services/exploration-player-state.service.spec.ts
  204. core/templates/pages/exploration-player-page/services/image-preloader.service.spec.ts
  205. core/templates/pages/exploration-player-page/services/image-preloader.service.ts
  206. core/templates/pages/exploration-player-page/services/learner-answer-info.service.spec.ts
  207. core/templates/pages/exploration-player-page/services/learner-answer-info.service.ts
  208. core/templates/pages/exploration-player-page/services/learner-view-rating.service.spec.ts
  209. core/templates/pages/exploration-player-page/services/learner-view-rating.service.ts
  210. core/templates/pages/exploration-player-page/services/state-classifier-mapping.service.spec.ts
  211. core/templates/pages/exploration-player-page/templates/lesson-information-card-modal.component.spec.ts
  212. core/templates/pages/exploration-player-page/templates/lesson-information-card-modal.component.ts
  213. core/templates/pages/learner-dashboard-page/learner-dashboard-page.component.ts
  214. core/templates/pages/practice-session-page/practice-session-page.component.spec.ts
  215. core/templates/pages/practice-session-page/practice-session-page.component.ts
  216. core/templates/pages/review-test-page/review-test-page.component.spec.ts
  217. core/templates/pages/review-test-page/review-test-page.component.ts
  218. core/templates/pages/skill-editor-page/editor-tab/skill-editor-main-tab.component.spec.ts
  219. core/templates/pages/skill-editor-page/editor-tab/skill-editor-main-tab.component.ts
  220. core/templates/pages/skill-editor-page/navbar/skill-editor-navbar.component.spec.ts
  221. core/templates/pages/skill-editor-page/navbar/skill-editor-navbar.component.ts
  222. core/templates/pages/skill-editor-page/questions-tab/skill-questions-tab.component.spec.ts
  223. core/templates/pages/skill-editor-page/questions-tab/skill-questions-tab.component.ts
  224. core/templates/pages/skill-editor-page/services/skill-editor-routing.service.spec.ts
  225. core/templates/pages/skill-editor-page/services/skill-editor-routing.service.ts
  226. core/templates/pages/skill-editor-page/skill-editor-page.component.spec.ts
  227. core/templates/pages/skill-editor-page/skill-preview-tab/skill-preview-tab.component.ts
  228. core/templates/pages/skill-editor-page/skill-preview-tab/skill-preview-tab.component.spec.ts
  229. core/templates/pages/story-editor-page/services/story-editor-state.service.spec.ts
  230. core/templates/pages/topic-editor-page/modal-templates/change-subtopic-assignment-modal.component.ts
  231. core/templates/pages/topic-editor-page/modal-templates/create-new-subtopic-modal.component.spec.ts
  232. core/templates/pages/topic-editor-page/modal-templates/create-new-subtopic-modal.component.ts
  233. core/templates/pages/topic-editor-page/navbar/topic-editor-navbar-breadcrumb.component.ts
  234. core/templates/pages/topic-editor-page/preview-tab/topic-preview-tab.component.spec.ts
  235. core/templates/pages/topic-editor-page/preview-tab/topic-preview-tab.component.ts
  236. core/templates/pages/topic-editor-page/questions-tab/topic-questions-tab.component.spec.ts
  237. core/templates/pages/topic-editor-page/questions-tab/topic-questions-tab.component.ts
  238. core/templates/pages/topic-editor-page/services/entity-creation.service.spec.ts
  239. core/templates/pages/topic-editor-page/services/entity-creation.service.ts
  240. core/templates/pages/topic-editor-page/services/subtopic-validation.service.ts
  241. core/templates/pages/topic-editor-page/services/topic-editor-routing.service.spec.ts
  242. core/templates/pages/topic-editor-page/services/topic-editor-routing.service.ts
  243. core/templates/pages/topic-editor-page/services/topic-editor-state.service.spec.ts
  244. core/templates/pages/topic-editor-page/services/topic-editor-state.service.ts
  245. core/templates/pages/topic-editor-page/services/topic-editor-staleness-detection.service.ts
  246. core/templates/pages/topic-editor-page/subtopic-editor/subtopic-preview-tab.component.spec.ts
  247. core/templates/pages/topic-editor-page/subtopic-editor/subtopic-preview-tab.component.ts
  248. core/templates/pages/topics-and-skills-dashboard-page/topics-and-skills-dashboard-page.component.spec.ts
  249. core/templates/pages/topics-and-skills-dashboard-page/topics-and-skills-dashboard-page.component.ts
  250. core/templates/services/exploration-features.service.spec.ts
  251. core/templates/services/exploration-improvements.service.spec.ts
  252. core/templates/services/exploration-improvements.service.ts
  253. core/templates/services/question-validation.service.spec.ts
  254. core/templates/services/state-interaction-stats.service.spec.ts
  255. core/templates/services/state-interaction-stats.service.ts
  256. core/templates/services/state-top-answers-stats.service.spec.ts
  257. core/templates/services/state-top-answers-stats.service.ts
  258. extensions/rich_text_components/Image/directives/oppia-noninteractive-image.component.spec.ts
  259. extensions/rich_text_components/Image/directives/oppia-noninteractive-image.component.ts
  260. extensions/rich_text_components/Math/directives/oppia-noninteractive-math.component.ts
  261. extensions/value_generators/templates/copier.component.ts
  262. extensions/value_generators/templates/random-selector.component.spec.ts
  263. extensions/value_generators/templates/random-selector.component.ts
  264. extensions/visualizations/oppia-visualization-enumerated-frequency-table.directive.spec.ts
  265. extensions/visualizations/oppia-visualization-enumerated-frequency-table.directive.ts
  266. extensions/visualizations/oppia-visualization-sorted-tiles.component.spec.ts
  267. extensions/visualizations/oppia-visualization-sorted-tiles.component.ts

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

Proof of changes on desktop with slow/throttled network

Proof of changes on mobile phone

Proof of changes in Arabic language

PR Pointers

  • Make sure to follow the instructions for making a code change.
  • If you need a review or an answer to a question, and don't have permissions to assign people, leave a comment like the following: "{{Question/comment}} @{{reviewer_username}} PTAL". Oppiabot will help assign that person for you.
  • 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.
  • 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.

Sorry, something went wrong.

@oppiabot
Copy link

oppiabot bot commented Oct 5, 2022

Hi @JeeveshGarg please assign the required reviewer(s) for this PR. Thanks!

@oppiabot
Copy link

oppiabot bot commented Oct 6, 2022

Hi @JeeveshGarg. 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 Oct 8, 2022

Hi @JeeveshGarg, the build of this PR is stale and this could result in tests failing in develop. Please update this pull request with the latest changes from develop. Thanks!

@oppiabot
Copy link

oppiabot bot commented Oct 10, 2022

Hi @JeeveshGarg, there is a new change in develop which needs to be in your PR. Please update your branch with the latest changes in develop. For instructions, refer to this link. Thanks!

@oppiabot
Copy link

oppiabot bot commented Oct 11, 2022

Hi @JeeveshGarg, the build of this PR is stale and this could result in tests failing in develop. Please update this pull request with the latest changes from develop. Thanks!

@oppiabot
Copy link

oppiabot bot commented Oct 17, 2022

Hi @JeeveshGarg. 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 Oct 18, 2022

Hi @JeeveshGarg, there is a new change in develop which needs to be in your PR. Please update your branch with the latest changes in develop. For instructions, refer to this link. Thanks!

}

interface SkillRubrics {
difficulty: string;
explanations: string[] | string;
}

interface ActiveContributionDetailsDict {
export interface ActiveContributionDetailsDict {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this need to be exported now?

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, may be earlier use it in spec.

keyboard: false,
});
const skillId = this.suggestion.change.skill_id;
if (skillId) {
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
if (skillId) {
if (!skillId) {
return;
}

Allows us to unnest the following code.

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

@@ -242,7 +249,11 @@ export class QuestionSuggestionReviewModalComponent
this.showQuestion = false;
this.skippedContributionIds.push(this.currentSuggestionId);

this.currentSuggestionId = this.remainingContributionIdStack.pop();
let CurrentSuggestionId = this.remainingContributionIdStack.pop();
Copy link
Contributor

Choose a reason for hiding this comment

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

Not done? Note that the variable should be uncapitalized as well.

Copy link
Contributor

@sagangwee sagangwee left a comment

Choose a reason for hiding this comment

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

@JeeveshGarg Thanks, just a few comments.

Comment on lines 252 to 253
const CurrentSuggestionId = this.remainingContributionIdStack.pop();
if (CurrentSuggestionId === undefined) {
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
const CurrentSuggestionId = this.remainingContributionIdStack.pop();
if (CurrentSuggestionId === undefined) {
const currentSuggestionId = this.remainingContributionIdStack.pop();
if (currentSuggestionId === undefined) {

Copy link
Contributor Author

@JeeveshGarg JeeveshGarg Nov 21, 2022

Choose a reason for hiding this comment

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

Done, did by mistake.

@@ -397,19 +407,23 @@ export class TranslationModalComponent {
getElementAttributeTexts(
elements: HTMLCollectionOf<Element>, type: string): string[] {
const textWrapperLength = 6;
const attributes = Array.from(elements, function(element: Element) {
let attributes = Array.from(elements, function(element: Element) {
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
let attributes = Array.from(elements, function(element: Element) {
const attributes = Array.from(elements, function(element: Element) {

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

textWrapperLength, attribute.length - textWrapperLength);
const attribute = element.attributes[
type as keyof NamedNodeMap] as Attr;
const attributeValue = attribute.value;
Copy link
Contributor

Choose a reason for hiding this comment

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

I meant we can combine this statement with the above, but it's fine to leave as is.

@oppiabot
Copy link

oppiabot bot commented Nov 20, 2022

Unassigning @sagangwee since the review is done.

@oppiabot
Copy link

oppiabot bot commented Nov 20, 2022

Hi @JeeveshGarg, it looks like some changes were requested on this pull request by @sagangwee. PTAL. Thanks!

@JeeveshGarg
Copy link
Contributor Author

@sagangwee PTAL. Thanks.

@oppiabot oppiabot bot assigned sagangwee and unassigned JeeveshGarg Nov 21, 2022
@oppiabot
Copy link

oppiabot bot commented Nov 21, 2022

Unassigning @JeeveshGarg since a re-review was requested. @JeeveshGarg, please make sure you have addressed all review comments. Thanks!

Copy link
Contributor

@sagangwee sagangwee left a comment

Choose a reason for hiding this comment

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

@JeeveshGarg LGTM, thanks!

@oppiabot
Copy link

oppiabot bot commented Nov 21, 2022

Unassigning @sagangwee since they have already approved the PR.

@JeeveshGarg JeeveshGarg enabled auto-merge (squash) November 22, 2022 04:54
@JeeveshGarg
Copy link
Contributor Author

@oppia/lace-frontend-reviewers PTAL.

@JeeveshGarg JeeveshGarg disabled auto-merge November 22, 2022 05:27
@oppiabot oppiabot bot added the PR: LGTM label Nov 22, 2022
@oppiabot
Copy link

oppiabot bot commented Nov 22, 2022

Hi @JeeveshGarg, 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!

@oppiabot
Copy link

oppiabot bot commented Nov 22, 2022

Hi @JeeveshGarg, 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!

@JeeveshGarg JeeveshGarg merged commit a4b176c into oppia:develop Nov 22, 2022
@@ -196,7 +199,10 @@ export class QuestionEditorComponent implements OnInit, OnDestroy {
}
this.solutionValidityService.init(['question']);
const stateData = this.questionStateData;
stateData.interaction.defaultOutcome.setDestination(null);
const outcome = stateData.interaction.defaultOutcome;
if (outcome) {
Copy link
Member

Choose a reason for hiding this comment

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

Hi @JeeveshGarg -- you should probably be aware that this change has caused a significant regression in the contributor dashboard (#16973) that has completely blocked question reviewers from editing questions. This is because this code assigns a string value to outcome.dest, but question answer groups are not supposed to have destinations since they are not part of an exploration.

Could you please explain why you changed this to this.questionId instead of null, and what sort of testing you did for this component?

@seanlip
Copy link
Member

seanlip commented Dec 8, 2023

Note that this PR caused another serious regression in hints, which we are trying to fix with #19261.

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