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

Migrate signup page to angular router. #13582

Merged
merged 7 commits into from
Aug 12, 2021

Conversation

ashutoshc8101
Copy link
Contributor

@ashutoshc8101 ashutoshc8101 commented Aug 5, 2021

Overview

  1. This PR fixes or fixes part of NA
  2. This PR does the following: Migrate signup page to angular router.

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

signup-page-2021-08-05_14.49.35.mp4

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.

@oppiabot
Copy link

oppiabot bot commented Aug 5, 2021

Hi @ashutoshc8101, can you complete the following:

  1. 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 Aug 5, 2021

Hi, @ashutoshc8101, this pull request does not have a "CHANGELOG: ..." label as mentioned in the PR pointers. Assigning @ashutoshc8101 to add the required 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
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.

LGTM!

@oppiabot
Copy link

oppiabot bot commented Aug 5, 2021

Unassigning @vojtechjelinek since they have already approved the PR.

@ashutoshc8101 ashutoshc8101 requested a review from a team August 5, 2021 15:15
@oppiabot
Copy link

oppiabot bot commented Aug 6, 2021

Unassigning @nithusha21 since they have already approved the PR.

@oppiabot
Copy link

oppiabot bot commented Aug 7, 2021

Hi @ashutoshc8101, 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 Aug 7, 2021

Hi @ashutoshc8101. 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

@DubeySandeep DubeySandeep 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 the codeowner file main.py left or comment, PTAL!

URLS.append(
get_redirect_route(
r'/%s' % page['ROUTE'], oppia_root.OppiaRootPage))
if not 'MANUALLY_REGISTERED_WITH_BACKEND' in page:
Copy link
Member

Choose a reason for hiding this comment

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

Can you explain what's MANUALLY_REGISTERED_WITH_BACKEND and why it is introduced? :)

Copy link
Contributor Author

@ashutoshc8101 ashutoshc8101 Aug 9, 2021

Choose a reason for hiding this comment

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

Some URLs contain URL fragments and they have different syntax for angular router and backend.
eg.
Url for backend: /learn/<classroom_url_fragment>
url for angular router: /learn/:classroom_url_fragment

So, I have used the second case in constant.ts (so, it works directly with the angular router).

And manually registered these routes with fragments in the backend.
That's why I am excluding these routes in this loop.

This explanation is for other pages with URL fragments in PR #13533.

For, /signup route, it does not use the common Handler OppiaRootPage unlike others. It uses SignupPageHandler as it performs additional checks too.

@ashutoshc8101
Copy link
Contributor Author

@DubeySandeep PTAL

@oppiabot oppiabot bot unassigned darksun27 Aug 9, 2021
@oppiabot
Copy link

oppiabot bot commented Aug 9, 2021

Unassigning @darksun27 since they have already approved the PR.

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

oppiabot bot commented Aug 9, 2021

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

@ashutoshc8101 ashutoshc8101 reopened this Aug 10, 2021
@oppiabot oppiabot bot removed the PR: don't merge - STALE BUILD The build on this PR is stale and should be restarted. label Aug 10, 2021
@oppiabot
Copy link

oppiabot bot commented Aug 11, 2021

Unassigning @DubeySandeep since they have already approved the PR.

@srijanreddy98 srijanreddy98 merged commit 75232af into oppia:develop Aug 12, 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.

None yet

6 participants