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

Remove base controller from HTML tag to after Angular bootstrap and convert I18NFooter and Thanks to component directives. #7283

Merged
merged 15 commits into from
Aug 5, 2019

Conversation

YashJipkate
Copy link
Contributor

@YashJipkate YashJipkate commented Aug 3, 2019

Explanation

This PR:

  • Converts Thanks and I18NFooter to component directives.
  • Moves Base controller from HTML tag to inside the body tag after the Angular bootstrap.

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 PR explanation includes the words "Fixes #bugnum: ..." (or "Fixes part of #bugnum" if the PR only partially fixes an issue).
  • The linter/Karma presubmit checks have passed.
    • These should run automatically, but if not, you can manually trigger them locally using python scripts/pre_commit_linter.py and bash scripts/run_frontend_tests.sh.
  • The PR is made from a branch that's not called "develop".
  • The PR has an appropriate "PROJECT: ..." label (Please add this label for the first-pass review of the PR).
  • The PR has an appropriate "CHANGELOG: ..." label (If you are unsure of which label to add, ask the reviewers for guidance).
  • The PR follows the style guide.
  • The PR addresses the points mentioned in the codeowner checks for the files/folders changed. (See the codeowner's wiki page.)
  • The PR is assigned to an appropriate reviewer.
    • If you're a new contributor, please ask on Gitter for someone to assign a reviewer and don't tick this checkbox.
    • If you're not sure who the appropriate reviewer is, please assign to the issue's "owner" -- see the "talk-to" label on the issue. Do not only request the review but also add the reviewer as an assignee.

Copy link
Contributor

@kevinlee12 kevinlee12 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, can you do a second pass?

@kevinlee12 kevinlee12 closed this Aug 4, 2019
@kevinlee12 kevinlee12 reopened this Aug 4, 2019
@kevinlee12
Copy link
Contributor

I tried closing and re-opening this PR to make it report the correct CircleCI setup status, but it looks like it doesn't. It does pass though: https://circleci.com/gh/YashJipkate/oppia/1118

@kevinlee12 kevinlee12 removed their assignment Aug 4, 2019
Copy link
Member

@seanlip seanlip left a comment

Choose a reason for hiding this comment

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

This looks good, thanks @YashJipkate. I'm fine with you making the changes I suggested in the next PR you do, so that we don't have to go through the Travis tests again. But if you decide to do that, please file an issue and assign it to yourself to keep track (and make sure the fixes happen in the very next PR).

One other question: this PR is fairly invasive. Have you tested each page carefully and does it work correctly? (and have you also verified manually that the meta tags get set correctly with the correct values?) Once you confirm this, we can merge.

Thanks!

}
});
};
}]};
Copy link
Member

Choose a reason for hiding this comment

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

The ']' should move to the next line to match the opening indentation.

The '}' should move to the line after that.

In general, when you see a gap that's too big between indentation levels, please fix it.

Copy link
Member

Choose a reason for hiding this comment

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

Addressed in #7066.

$window.document.documentElement.setAttribute(attribute, value);
}
};
}]);
Copy link
Member

Choose a reason for hiding this comment

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

Drop ]); to the next line.

Copy link
Member

Choose a reason for hiding this comment

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

Addressed in #7066.

});
}
};
}]);
Copy link
Member

Choose a reason for hiding this comment

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

Ditto.

Copy link
Member

Choose a reason for hiding this comment

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

Addressed in #7066.

@YashJipkate
Copy link
Contributor Author

Thanks @seanlip I have created #7292 to track the review comments.

I have also tested the meta tags and the HTML lang attribute and they are working fine.

Copy link
Contributor

@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 Aug 4, 2019
@seanlip seanlip merged commit a62d089 into oppia:develop Aug 5, 2019
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.

4 participants