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

code-health: Migrating hardcoded-strings #398

Closed
wants to merge 2 commits into from

Conversation

Ana2k
Copy link
Contributor

@Ana2k Ana2k commented Mar 28, 2021

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straighforward changes).

Fixes #379

Description
Migrate user-visible hard-coded string files

Alternative(s) considered
Have you considered any alternatives? And if so, why have you chosen the approach in this PR?

Type
Choose one: |Code-Health|

Screenshots (if applicable)
N/A

Checklist

  • I have read and acknowledge the Code of conduct
  • I have read How to Contribute
  • I have read the Developer's guide
  • I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA
  • I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach
  • I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project
  • I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally
  • I have built and run the reference app(s) to verify my change fixes the issue and/or does not break the reference app(s)

@Manikant25
Copy link
Contributor

@Ana2k Try to run ./gradlew spotlessApply and ./gradlew spotlessCheck. I think there is a problem in the coding style.

@Ana2k
Copy link
Contributor Author

Ana2k commented Mar 30, 2021

@Ana2k Try to run ./gradlew spotlessApply and ./gradlew spotlessCheck. I think there is a problem in the coding style.

@Manikant25 thanks for the advice, its currently WIP(work-in-progress). After I complete making all the changes I will surely. Thanks :)

@epicadk
Copy link
Contributor

epicadk commented Mar 30, 2021

@Ana2k Try to run ./gradlew spotlessApply and ./gradlew spotlessCheck. I think there is a problem in the coding style.

@Manikant25 thanks for the advice, its currently WIP(work-in-progress). After I complete making all the changes I will surely. Thanks :)

You can convert it to draft so people will know you are still working on it. No need to add WIP in the title.

@Ana2k
Copy link
Contributor Author

Ana2k commented Mar 30, 2021

@Ana2k Try to run ./gradlew spotlessApply and ./gradlew spotlessCheck. I think there is a problem in the coding style.

@Manikant25 thanks for the advice, its currently WIP(work-in-progress). After I complete making all the changes I will surely. Thanks :)

You can convert it to draft so people will know you are still working on it. No need to add WIP in the title.

Afaik WIP means Work In Progress, and I feel more comfortable doing this as seen in other open source orgs. Thanks for the suggestion!

@Ana2k Ana2k changed the title [WIP]: Migrating hardcoded-strings feat: Migrating hardcoded-strings Mar 30, 2021
@Ana2k
Copy link
Contributor Author

Ana2k commented Mar 30, 2021

@jingtang10 I have finished working on this issue. Please review pr. Thanks!

@epicadk
Copy link
Contributor

epicadk commented Mar 30, 2021

Afaik WIP means Work In Progress, and I feel more comfortable doing this as seen in other open source orgs. Thanks for the suggestion!

It was suggested by one of the maintainers here. : /
#386 (comment)

@Ana2k
Copy link
Contributor Author

Ana2k commented Mar 31, 2021

Afaik WIP means Work In Progress, and I feel more comfortable doing this as seen in other open source orgs. Thanks for the suggestion!

It was suggested by one of the maintainers here. : /
#386 (comment)

Yupp saw it. Thanks! :)

Copy link
Collaborator

@jingtang10 jingtang10 left a comment

Choose a reason for hiding this comment

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

  1. please don't put exception strings in resource files.
  2. please revert all changes in cqlreference module since the ui will change.

@jingtang10
Copy link
Collaborator

this is not a feature. this is code health. please update PR type and title.

@Ana2k Ana2k changed the title feat: Migrating hardcoded-strings Migrating hardcoded-strings Apr 4, 2021
@Ana2k Ana2k changed the title Migrating hardcoded-strings code-health: Migrating hardcoded-strings Apr 4, 2021
@Ana2k
Copy link
Contributor Author

Ana2k commented Apr 4, 2021

  1. please don't put exception strings in resource files.
  2. please revert all changes in cqlreference module since the ui will change.
  1. I can turn translatable as false for the exception message.
    Then I hope no issue with i10 or i18 translation will be there?
  2. Should I revert the Snackbars too?(they are in cqlreference non UI part)
  3. Since only minor changes are left for string and dimensions migration so I would prefer closing both the pr, and making a new pr, with those minor changes.

Please let me know your views
Thanks.

@jingtang10
Copy link
Collaborator

@Ana2k apologies but I'm going to close this because we're going to rewrite the UIs. Thanks again for your contribution!

@jingtang10 jingtang10 closed this Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Migrate hardcoded strings to strings.xml value file
4 participants