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 #13162: StateHitEventHandler #14326

Closed
wants to merge 38 commits into from

Conversation

anurag629
Copy link
Contributor

@anurag629 anurag629 commented Nov 27, 2021

Overview

  1. This PR fixes or fixes part of Write schemas for handler class arguments #13162.
  2. This PR does the following: This PR adds schema for 'StateHitEventHandler'

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

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.

srijanreddy98 and others added 3 commits November 26, 2021 23:19
…ppia#14263)

* Revert "Revert "Fix part of oppia#9749: Create a component that shows rte-output-display and use it instead of angular-html-bind. (oppia#13229)" (oppia#13361)"

This reverts commit 792de45.

* Fix issues

* Fix spelling mistakes in comment

* Merge with upstream/develop

* Address review comments:
  1. Move oppia-rte-output.spec from the list of ignored files for innerHTML check in eslintrc and move to inline disables.
  2. Change the CODEOWNER listing from oppia-rte-parser.service.ts to oppia-rte-parser.service*.ts to include the spec file.
  3. Add refernce to the note at the top of file for all value.replace ops.
  4. Miscellaneous changes.

Co-authored-by: Vasa Srijan Reddy <redvasa@amazon.com>
@oppiabot
Copy link

oppiabot bot commented Nov 27, 2021

Hi @anurag629, can you complete the following:

  1. The karma and linter checklist has not been checked, please make sure to run the frontend tests and lint tests before pushing.
  2. The proof that changes are correct has not been provided, please make sure to upload a image/video showing that the changes are correct. Or include a sentence saying "No proof of changes needed because" and the reason why proof of changes cannot be provided.
    Thanks!

@oppiabot
Copy link

oppiabot bot commented Nov 27, 2021

Hi @aks681, could you please add the appropriate changelog label to this pull request? Thanks!

@anurag629
Copy link
Contributor Author

@vojtechjelinek Please look through changes and suggest what to do next

@anurag629 anurag629 changed the title Anuragoppia2 Fix part of #13162: StateHitEventHandler Nov 28, 2021
@vojtechjelinek
Copy link
Member

@anurag629 The backend tests are failing, also you didn't remove the StateHitEventHandler from the schema constants.

@vojtechjelinek
Copy link
Member

@anurag629 The tests are still failing.

@anurag629
Copy link
Contributor Author

@anurag629 The tests are still failing.

@vojtechjelinek please help me in this

Copy link
Member

@vojtechjelinek vojtechjelinek left a comment

Choose a reason for hiding this comment

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

Left a few comments.

Comment on lines 477 to 484
'username': {
'schema': {
'type': 'basestring',
'validators': [{
'id': 'is_valid_username_string'
}]
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Why username? When the arg of the post function is exploration_id?

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

}
}
HANDLER_ARGS_SCHEMAS = {
'POST': {}
Copy link
Member

Choose a reason for hiding this comment

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

In the post there are other args that should be defined here.

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

@oppiabot
Copy link

oppiabot bot commented Nov 29, 2021

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

@anurag629
Copy link
Contributor Author

@vojtechjelinek Please help why checks are failing

@oppiabot oppiabot bot added the PR: don't merge - STALE BUILD The build on this PR is stale and should be restarted. label Dec 1, 2021
@vojtechjelinek
Copy link
Member

@anurag629 Please, do not resolve comments yourself, just reply with "Done" and then let the reviewer resolve it.

@nithinrdy
Copy link
Contributor

Hey @anurag629, a PR was recently merged that fixes a flake in the frontend tests (the same flake that is causing the frontend tests to fail on this PR). Please update the PR with the latest changes in develop. Thanks!

@anurag629
Copy link
Contributor Author

@vojtechjelinek from where I will get these extra elements. I searched in the codebase but I am unable to find these.
What should I do ??

Screenshot from 2022-01-14 13-56-59

@vojtechjelinek
Copy link
Member

@vojtechjelinek from where I will get these extra elements. I searched in the codebase but I am unable to find these. What should I do ??

Screenshot from 2022-01-14 13-56-59

This says that you need to remove these two from the constant at handler_schema_constants.py

@anurag629
Copy link
Contributor Author

@vojtechjelinek why the "End-to-End" test is failing. Previous they are not failing ???

@vojtechjelinek
Copy link
Member

@vojtechjelinek why the "End-to-End" test is failing. Previous they are not failing ???

They are sometimes flaky, I have restarted them.

Copy link
Member

@vojtechjelinek vojtechjelinek left a comment

Choose a reason for hiding this comment

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

Thanks! Took a pass.

Comment on lines +513 to +517
'old_params': {
'schema': {
'type': 'int',
}
},
Copy link
Member

Choose a reason for hiding this comment

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

Why is this int?

Comment on lines +508 to +512
'client_time_spent_in_secs': {
'schema': {
'type': 'int',
}
},
Copy link
Member

Choose a reason for hiding this comment

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

Should this have a minimal value of 0?

@anurag629
Copy link
Contributor Author

anurag629 commented Feb 8, 2022

Thanks! Took a pass.

hey, @vojtechjelinek I was not active in the past days. Can you help me in resolving errors? Thanks!

@vojtechjelinek
Copy link
Member

@anurag629 Can you address my comments first?

@oppiabot
Copy link

oppiabot bot commented Feb 15, 2022

Hi @anurag629, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 4 days, it will be automatically closed so that others can take up the issue.
If you are still working on this PR, please make a follow-up commit within 4 days (and submit it for review, if applicable). Please also let us know if you are stuck so we can help you!

@oppiabot oppiabot bot added the stale label Feb 15, 2022
@oppiabot oppiabot bot closed this Feb 19, 2022
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.

5 participants