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 #9749: Migrate I18nFooter Directive #12925

Merged
merged 13 commits into from
Jun 1, 2021

Conversation

ashutoshc8101
Copy link
Contributor

@ashutoshc8101 ashutoshc8101 commented May 26, 2021

Overview

  1. This PR fixes part of Migrate directives/controllers to Angular components #9749.
  2. This PR does the following: Migrate I18nFooter Directive.

Note: This PR is independent of #12790.

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

i18n-footer-2021-05-26_20.43.42.mp4

The Follow Us text in the footer belongs to an angular component whereas about, teach and contribute sections belong to an angular js directive.

So, this works in both.

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 May 26, 2021

Assigning @srijanreddy98 for the first-pass review of this pull request. Thanks!

@oppiabot
Copy link

oppiabot bot commented May 26, 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 May 27, 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

@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 -- thanks @ashutoshc8101!

@srijanreddy98 srijanreddy98 removed their assignment May 28, 2021
@oppiabot
Copy link

oppiabot bot commented May 28, 2021

Assigning @vojtechjelinek, @kevintab95, @DubeySandeep, @jameesjohn, @darksun27 for code owner reviews. Thanks!

@ashutoshc8101
Copy link
Contributor Author

@DubeySandeep Thank You for your review.
I have made the suggested changes and addressed a comment.
PTAL

@oppiabot oppiabot bot assigned DubeySandeep and unassigned ashutoshc8101 May 30, 2021
@oppiabot
Copy link

oppiabot bot commented May 30, 2021

Unassigning @ashutoshc8101 since a re-review was requested. @ashutoshc8101, please make sure you have addressed all review comments. 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.

Thanks! Left a few comments.

Comment on lines 27 to 29
readonly id: string,
readonly text: string,
readonly direction: string
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
readonly id: string,
readonly text: string,
readonly direction: string
readonly id: string;
readonly text: string;
readonly direction: string;

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

Comment on lines 113 to 114
async updatePreferredSiteLanguageAsync(currentLanguageCode: string):
Promise<Object> {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
async updatePreferredSiteLanguageAsync(currentLanguageCode: string):
Promise<Object> {
async updatePreferredSiteLanguageAsync(
currentLanguageCode: string
): Promise<Object> {

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

@vojtechjelinek vojtechjelinek removed their assignment May 30, 2021
@oppiabot
Copy link

oppiabot bot commented May 30, 2021

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

@ashutoshc8101
Copy link
Contributor Author

@vojtechjelinek Thank you for your review.
I have made the suggested changes.
PTAL

@oppiabot oppiabot bot assigned vojtechjelinek and unassigned ashutoshc8101 May 30, 2021
@oppiabot
Copy link

oppiabot bot commented May 30, 2021

Unassigning @ashutoshc8101 since a re-review was requested. @ashutoshc8101, please make sure you have addressed all review comments. 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! (Left one nit comment, PTAL!)

@@ -57,16 +57,17 @@ export interface UserContributionRightsDataBackendDict {
providedIn: 'root'
})
export class UserBackendApiService {
constructor(private http: HttpClient) {}
constructor(private httpClient: HttpClient) {}
Copy link
Member

Choose a reason for hiding this comment

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

why this change? (I think we have the old pattern everywhere in the codebase)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh! I have been doing this in all of my PRs. Following the convention of the first letter lowercase for the object name.
Looking deeply into the codebase, looks like we are going with http in most places. Reverting this change.

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 May 30, 2021

Unassigning @DubeySandeep since they have already approved the PR.

@oppiabot
Copy link

oppiabot bot commented May 31, 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!

@ashutoshc8101
Copy link
Contributor Author

@vojtechjelinek PTAL

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!

@vojtechjelinek vojtechjelinek removed their assignment Jun 1, 2021
@ashutoshc8101 ashutoshc8101 enabled auto-merge (squash) June 1, 2021 10:28
@ashutoshc8101 ashutoshc8101 merged commit 3dc78ce into oppia:develop Jun 1, 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

7 participants