-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 #12910 use app.constants.ts instead of constants.ts #17084
Conversation
Hi @462702985, can you complete the following:
|
Hi @vojtechjelinek, @seanlip -- could one of you please add the appropriate changelog label to this pull request? Thanks! |
There was a problem hiding this 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.
core/templates/app.constants.ajs.ts
Outdated
import constants from 'assets/constants'; | ||
|
||
for (var constantName in constants) { | ||
angular.module('oppia').constant(constantName, constants[constantName]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is fine to keep import constants from 'assets/constants';
here, so that we do not need to create commonConstants
in AppConstants
. But add an explanatory comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
core/templates/app.constants.ts
Outdated
@@ -20,6 +20,7 @@ import commonConstants from 'assets/constants'; | |||
|
|||
export const AppConstants = { | |||
...commonConstants, | |||
commonConstants, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
import { AppConstants } from 'app.constants'; | ||
|
||
const subtopicValidationConstants = AppConstants.commonConstants; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, use AppConstants
directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
import { AppConstants } from 'app.constants'; | ||
const newStoryConstants = AppConstants.commonConstants; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, use AppConstants
directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
const topicConstants = AppConstants.commonConstants; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, use AppConstants
directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
const splashConstants = AppConstants.commonConstants; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, use AppConstants
directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
import { AppConstants } from 'app.constants'; | ||
|
||
const newChapterConstants = AppConstants.commonConstants; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, use AppConstants
directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
import { AppConstants } from 'app.constants'; | ||
|
||
const storyNodeConstants = AppConstants.commonConstants; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, use AppConstants
directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto elsewhere, also you can probably remove the comment starting with TODO(#9186):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto elsewhere, also you can probably remove the comment starting with
TODO(#9186):
All comments addressed
Hi, one frontend time out Disconnected, can you rerun the tests again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
Assigning @kevintab95, @BenHenning, @heyimShivam for code owner reviews. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @462702985. Approved for platform parameters code owners.
@vojtechjelinek @kevintab95 @heyimShivam Please review for codeowners. Thanks! |
@462702985 Please do not close the comments from reviewers yourself. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Unassigning @heyimShivam since they have already approved the PR. |
Unassigning @kevintab95 since they have already approved the PR. |
…7084) * use app.constants.ts instead of constants.ts * delete commonConstants in AppConstants * remove TODO(oppia#9186) * address comments * linter checks * Update core/templates/pages/contributor-dashboard-page/opportunities-list-item/opportunities-list-item.component.ts Co-authored-by: Vojtěch Jelínek <vojtech.jelinek@hey.com> * Update core/templates/pages/contributor-dashboard-page/services/contribution-opportunities-backend-api.service.ts Co-authored-by: Vojtěch Jelínek <vojtech.jelinek@hey.com> * delete unnecessary changes * minor bug * minor bug * minor change --------- Co-authored-by: Vojtěch Jelínek <vojtech.jelinek@hey.com>
Overview
Essential Checklist
Proof that changes are correct
Proof of changes on mobile phone
Proof of changes in Arabic language
PR Pointers